Skip to content

Commit 1df5518

Browse files
dcpleungdkalowsk
authored andcommitted
scripts: gen_app_partitions: only parse known arguments
Since compiler options are unconditionally passed to the script, we may pass arguments that are not recognized. So we change to only parse known arguments. Currently, it only cares about -l, which is related to linking libraries. Signed-off-by: Daniel Leung <daniel.leung@intel.com>
1 parent db3c344 commit 1df5518

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/build/gen_app_partitions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ def parse_args():
472472
parser.add_argument("--pinpartitions", action="store", required=False, default="",
473473
help="Comma separated names of partitions to be pinned in physical memory")
474474

475-
args = parser.parse_args()
475+
args, _ = parser.parse_known_args()
476476

477477

478478
def main():

0 commit comments

Comments
 (0)