diff --git a/rules/linux/default.bash b/rules/linux/default.bash index c32ba39..73acf04 100644 --- a/rules/linux/default.bash +++ b/rules/linux/default.bash @@ -101,6 +101,15 @@ build() fi } +host_install() +{ + # Device tree blobs. + if [ -n "$cfg_target_linux_dtb" ]; then + $cmd_mkdir "$cfg_dir_toolchain/boot" && + cp -v "$(dirname $cfg_target_linux_dtb)/"*.dtb "$cfg_dir_toolchain/boot" + fi +} + target_install() { kernel="$cfg_dir_base/${cfg_sys_family}/glued-${cfg_glued_version}-${cfg_sys_family}-kernel.bin" @@ -116,11 +125,6 @@ target_install() cp -v "$cfg_target_linux_kernel" "$cfg_dir_rootfs/boot/kernel" fi - # Device tree blob. - if [ -n "$cfg_target_linux_dtb" ]; then - cp -v "$cfg_target_linux_dtb" "$cfg_dir_rootfs/boot/board.dtb" - fi - $cmd_make \ CROSS_COMPILE="$cfg_target_canonical-" \ ARCH="$cfg_target_linux" \