mirror of
https://github.com/vyos/vyos-build.git
synced 2025-10-01 20:28:40 +02:00
build: T7109: add support for includes_binary in flavors
This commit is contained in:
parent
16f9226b1f
commit
f11b5a3282
@ -590,6 +590,15 @@ DOCUMENTATION_URL="{build_config['documentation_url']}"
|
|||||||
with open(file_path, 'w') as f:
|
with open(file_path, 'w') as f:
|
||||||
f.write(i["data"])
|
f.write(i["data"])
|
||||||
|
|
||||||
|
if has_nonempty_key(build_config, "includes_binary"):
|
||||||
|
for i in build_config["includes_binary"]:
|
||||||
|
file_path = os.path.join(binary_includes_dir, i["path"])
|
||||||
|
if debug:
|
||||||
|
print(f"D: Creating binary image include file: {file_path}")
|
||||||
|
os.makedirs(os.path.dirname(file_path), exist_ok=True)
|
||||||
|
with open(file_path, 'w') as f:
|
||||||
|
f.write(i["data"])
|
||||||
|
|
||||||
## Create the default config
|
## Create the default config
|
||||||
## Technically it's just another includes.chroot entry,
|
## Technically it's just another includes.chroot entry,
|
||||||
## but it's special enough to warrant making it easier for flavor writers
|
## but it's special enough to warrant making it easier for flavor writers
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user