pkrootfs: copy board DTB to /boot/board.dtb when creating root package.
This commit is contained in:
parent
45078ae86b
commit
5951983d1e
@ -58,6 +58,11 @@ for d in dev boot etc; do
|
|||||||
$fakeroot -- chmod -vR 0644 "$cfg_dir_rootfs"/$d/*
|
$fakeroot -- chmod -vR 0644 "$cfg_dir_rootfs"/$d/*
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# Copy DTB.
|
||||||
|
if [ -n "$cfg_target_linux_dtb" ]; then
|
||||||
|
cp -v "$cfg_dir_toolchain/boot/$(basename $cfg_target_linux_dtb)" "$cfg_dir_rootfs/boot/board.dtb"
|
||||||
|
fi
|
||||||
|
|
||||||
# Write config vars.
|
# Write config vars.
|
||||||
set | sort | grep ^cfg_ | egrep -v '^cfg_dir|^cfg_target|^cfg_host_|^cfg_toolchain|^cfg_rootfs_tar|^cfg_partitions' > "$cfg_dir_rootfs/etc/config"
|
set | sort | grep ^cfg_ | egrep -v '^cfg_dir|^cfg_target|^cfg_host_|^cfg_toolchain|^cfg_rootfs_tar|^cfg_partitions' > "$cfg_dir_rootfs/etc/config"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user