diff options
Diffstat (limited to 'elements/initramfs/initramfs-gz.bst')
-rw-r--r-- | elements/initramfs/initramfs-gz.bst | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/elements/initramfs/initramfs-gz.bst b/elements/initramfs/initramfs-gz.bst new file mode 100644 index 00000000..383e9603 --- /dev/null +++ b/elements/initramfs/initramfs-gz.bst @@ -0,0 +1,26 @@ +kind: script +description: The compressed initramfs + +depends: +- filename: initramfs/initramfs.bst + type: build +- filename: gnu-toolchain.bst + type: build + +variables: + cwd: "%{build-root}" + +config: + layout: + - element: gnu-toolchain.bst + destination: / + - element: initramfs/initramfs.bst + destination: "%{build-root}" + + commands: + - mkdir -p %{install-root}/boot + # We need to ensure exec permissions here. + # See: https://gitlab.com/BuildStream/buildstream/issues/84 + - chmod +x ./sbin/init ./sbin/shutdown + - (find . -print0 | cpio -0 -H newc -o) | + gzip -c > %{install-root}/boot/initramfs.gz |