8000 tools/manifestfile.py: Add --unix-ffi option. · micropython/micropython@1ef2944 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1ef2944

Browse files
projectgusdpgeorge
authored andcommitted
tools/manifestfile.py: Add --unix-ffi option.
Follow up to 35dd959, allows explicitly adding the unix-ffi library path from the command line. This option is needed when building unix-ffi manifests in micropython-lib CI. This work was funded through GitHub Sponsors. Signed-off-by: Angus Gratton <angus@redyak.com.au>
1 parent def6ad4 commit 1ef2944

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tools/manifestfile.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,9 @@ def main():
603603
default=os.path.join(os.path.dirname(__file__), "../lib/micropython-lib"),
604604
help="path to micropython-lib repo",
605605
)
606+
cmd_parser.add_argument(
607+
"--unix-ffi", action="store_true", help="prepend unix-ffi to the library path"
608+
)
606609
cmd_parser.add_argument("--port", default=None, help="path to port dir")
607610
cmd_parser.add_argument("--board", default=None, help="path to board dir")
608611
cmd_parser.add_argument(
@@ -632,6 +635,8 @@ def main():
632635
exit(1)
633636

634637
m = ManifestFile(mode, path_vars)
638+
if args.unix_ffi:
639+
m.add_library("unix-ffi", os.path.join("$(MPY_LIB_DIR)", "unix-ffi"), prepend=True)
635640
for manifest_file in args.files:
636641
try:
637642
m.execute(manifest_file)

0 commit comments

Comments
 (0)
0