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>
This commit is contained in:
Daniel Leung 2025-05-27 12:11:58 -07:00 committed by Dan Kalowsky
commit 1df55181be

View file

@ -472,7 +472,7 @@ def parse_args():
parser.add_argument("--pinpartitions", action="store", required=False, default="",
help="Comma separated names of partitions to be pinned in physical memory")
args = parser.parse_args()
args, _ = parser.parse_known_args()
def main():