Skip to content

Commit

Permalink
Add package strapping support as extras, and add ducky to everyone wh…
Browse files Browse the repository at this point in the history
…o supports it
  • Loading branch information
bill88t committed Feb 27, 2024
1 parent 059439e commit 93e52f4
Show file tree
Hide file tree
Showing 17 changed files with 23 additions and 1 deletion.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
24 changes: 23 additions & 1 deletion scripts/make_extras.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from os import system, mkdir, listdir, path, getcwd, environ
from os import system, mkdir, listdir, path, getcwd, environ, chdir
from sys import argv
from sys import path as spath
from shutil import copytree
Expand Down Expand Up @@ -105,6 +105,28 @@ def errexit():
else:
print("Use folders instead")
errexit()
elif i.endswith(".pkg"):
olddir = getcwd()
print("[-/-] Building package: " + i[:-4])
chdir("../packages/" + i[:-4])
system("make clean package")
chdir(olddir)
print("[-/-] Strapping package: " + i[:-4])
chdir("../scripts/jpkgstrap/")
target_root = boardpath + "/Beryllium"
if target_root.startswith("build"):
target_root = "../../source/" + target_root
target_root = path.abspath(target_root)
system(
"python3 jpkgstrap.py "
+ target_root
+ " -U ../../packages/"
+ i[:-4]
+ "/"
+ i[:-4]
+ ".jpk"
)
chdir(olddir)
else:
pass

Expand Down

0 comments on commit 93e52f4

Please sign in to comment.