Skip to content

Commit

Permalink
feat: compile dtbs
Browse files Browse the repository at this point in the history
Compiles the device-tree blobs required by SoC ARM64 boards.

Signed-off-by: Andrew Rynhard <andrew@rynhard.io>
  • Loading branch information
andrewrynhard authored and talos-bot committed Nov 19, 2020
1 parent 7a64952 commit cf5cc34
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions kernel/kernel/pkg.yaml
Expand Up @@ -18,6 +18,10 @@ steps:
- |
make -j $(nproc)
make -j $(nproc) modules
if [[ "${ARCH}" == "arm64" ]]; then
echo "Compiling device-tree blobs"
make -j $(nproc) dtbs
fi
install:
- |
mkdir -p /rootfs/boot
Expand All @@ -29,6 +33,14 @@ steps:
arm64)
mv arch/arm64/boot/Image /rootfs/boot/vmlinuz
mv vmlinux /rootfs/boot/vmlinux
mkdir /rootfs/dtb
cd ./arch/arm64/boot/dts
for vendor in $(find . -not -path . -type d); do
dest="/rootfs/dtb/$vendor"
mkdir -v $dest
find ./$vendor/* -type f -name "*.dtb" -exec cp {} $dest \;
done
cd -
;;
*)
echo "unsupported arch ${ARCH}"
Expand Down

0 comments on commit cf5cc34

Please sign in to comment.