Skip to content

Commit 43f4e42

Browse files
committed
Added command line source/build directory option
1 parent eaafc74 commit 43f4e42

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

workspace_tools/make.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@
5050
default=False, help="Verbose diagnostic output")
5151

5252
# Local run
53+
parser.add_option("--source", dest="input_dir",
54+
default=None, help="The source input directory")
55+
parser.add_option("--build", dest="output_dir",
56+
default=None, help="The binary output directory")
5357
parser.add_option("-d", "--disk", dest="disk",
5458
default=None, help="The mbed disk")
5559
parser.add_option("-s", "--serial", dest="serial",
@@ -108,6 +112,10 @@
108112
test.dependencies.append(RTOS_LIBRARIES)
109113

110114
build_dir = join(BUILD_DIR, "test", mcu, toolchain, test.id)
115+
if options.input_dir is not None:
116+
test.source_dir = options.input_dir
117+
if options.output_dir is not None:
118+
build_dir = options.output_dir
111119

112120
target = TARGET_MAP[mcu]
113121
try:

0 commit comments

Comments
 (0)