You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
663 B
33 lines
663 B
'''
|
|
KED Builder Script
|
|
'''
|
|
import sys
|
|
import os
|
|
|
|
|
|
|
|
def build():
|
|
argvLen = len(sys.argv)
|
|
if argvLen < 2:
|
|
print('please enter a valid target device')
|
|
print('currently available target devices...')
|
|
os.chdir(os.getcwd() + '\\csl')
|
|
# get top level folder names in csl which represent all available target devices
|
|
dirlist = next(os.walk('.'))[1]
|
|
|
|
for dir in dirlist:
|
|
print(dir)
|
|
else:
|
|
print('todo')
|
|
|
|
def autoBuild():
|
|
return
|
|
|
|
scriptDirectory = os.getcwd()
|
|
projectDirectory = scriptDirectory + '\\..'
|
|
buildDirectory = projectDirectory + '\\ked_build'
|
|
|
|
os.chdir(scriptDirectory)
|
|
|
|
build()
|