From 1104145fdae0a1e31970f5a9642e25d722ca0111 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 2 Oct 2023 01:22:48 +0200 Subject: examples: rename rootfs.yml to image.yml --- examples/recipes/image.yml | 56 +++++++++++++++++++++++++++++++++++++++++++++ examples/recipes/rootfs.yml | 56 --------------------------------------------- 2 files changed, 56 insertions(+), 56 deletions(-) create mode 100644 examples/recipes/image.yml delete mode 100644 examples/recipes/rootfs.yml diff --git a/examples/recipes/image.yml b/examples/recipes/image.yml new file mode 100644 index 0000000..883fa3b --- /dev/null +++ b/examples/recipes/image.yml @@ -0,0 +1,56 @@ +tasks: + rootfs: + args: + host: 'platform' + depends: + - recipe: 'busybox' + task: 'install' + - recipe: 'toolchain' + task: 'build_depends' + args: + target: 'host' + output: + default: {} + run: | + mkdir -p \ + {{destdir}}/dev \ + {{destdir}}/proc \ + {{destdir}}/sys \ + {{destdir}}/root \ + {{destdir}}/run \ + {{destdir}}/var \ + {{destdir}}/usr/bin \ + {{destdir}}/usr/lib + + ln -s bin {{destdir}}/usr/sbin + ln -s usr/bin {{destdir}}/bin + ln -s usr/bin {{destdir}}/sbin + ln -s usr/lib {{destdir}}/lib + ln -s ../run {{destdir}}/var/run + + rsync -aHAXK {{sysroot}}/ {{destdir}} + + + ext4: + args: + host: 'platform' + build_depends: + - recipe: 'e2fsprogs' + task: 'install' + - recipe: 'make_ext4fs' + task: 'install' + depends: + - task: 'rootfs' + output: + default: {} + run: | + IMAGE={{destdir}}/{{pn}}.ext4 + UUID="$( + python3 \ + -c 'import sys; import uuid; print(uuid.UUID(hex=sys.argv[1][:32], version=4))' \ + "$INPUT_HASH" + )" + + mkdir {{destdir}} + make_ext4fs -l 2G -T "$SOURCE_DATE_EPOCH" -L root "$IMAGE" {{sysroot}} + E2FSPROGS_FAKE_TIME="$SOURCE_DATE_EPOCH" tune2fs -U "$UUID" "$IMAGE" diff --git a/examples/recipes/rootfs.yml b/examples/recipes/rootfs.yml deleted file mode 100644 index 03b52d6..0000000 --- a/examples/recipes/rootfs.yml +++ /dev/null @@ -1,56 +0,0 @@ -tasks: - install: - args: - host: 'platform' - depends: - - recipe: 'busybox' - task: 'install' - - recipe: 'toolchain' - task: 'build_depends' - args: - target: 'host' - output: - default: {} - run: | - mkdir -p \ - {{destdir}}/dev \ - {{destdir}}/proc \ - {{destdir}}/sys \ - {{destdir}}/root \ - {{destdir}}/run \ - {{destdir}}/var \ - {{destdir}}/usr/bin \ - {{destdir}}/usr/lib - - ln -s bin {{destdir}}/usr/sbin - ln -s usr/bin {{destdir}}/bin - ln -s usr/bin {{destdir}}/sbin - ln -s usr/lib {{destdir}}/lib - ln -s ../run {{destdir}}/var/run - - rsync -aHAXK {{sysroot}}/ {{destdir}} - - - image-ext4: - args: - host: 'platform' - build_depends: - - recipe: 'e2fsprogs' - task: 'install' - - recipe: 'make_ext4fs' - task: 'install' - depends: - - task: 'install' - output: - default: {} - run: | - IMAGE={{destdir}}/{{pn}}.ext4 - UUID="$( - python3 \ - -c 'import sys; import uuid; print(uuid.UUID(hex=sys.argv[1][:32], version=4))' \ - "$INPUT_HASH" - )" - - mkdir {{destdir}} - make_ext4fs -l 2G -T "$SOURCE_DATE_EPOCH" -L root "$IMAGE" {{sysroot}} - E2FSPROGS_FAKE_TIME="$SOURCE_DATE_EPOCH" tune2fs -U "$UUID" "$IMAGE" -- cgit v1.2.3