Skip to content

Commit

Permalink
Merge pull request #895 from vyos/T7109-binary-includes
Browse files Browse the repository at this point in the history
build: T7109: add support for includes_binary in flavors
  • Loading branch information
dmbaturin authored Feb 3, 2025
2 parents 946b7b2 + f11b5a3 commit c62327d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions scripts/image-build/build-vyos-image
Original file line number Diff line number Diff line change
Expand Up @@ -590,6 +590,15 @@ DOCUMENTATION_URL="{build_config['documentation_url']}"
with open(file_path, 'w') as f:
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
## Technically it's just another includes.chroot entry,
## but it's special enough to warrant making it easier for flavor writers
Expand Down

0 comments on commit c62327d

Please sign in to comment.