diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile index 2d49aea0f..42c1a1410 100644 --- a/arch/arm64/Makefile +++ b/arch/arm64/Makefile @@ -159,8 +159,12 @@ endif all: $(notdir $(KBUILD_IMAGE)) +DTBS := rk35*-nanopi*.dtb Image vmlinuz.efi: vmlinux $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ + $(Q)scripts/mkkrnlimg $(objtree)/arch/arm64/boot/Image $(objtree)/kernel.img >/dev/null + @echo ' Image: kernel.img is ready' + $(Q)$(srctree)/scripts/mkimg --dtb $(DTBS) Image.%: Image $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ diff --git a/scripts/Makefile b/scripts/Makefile index e89179759..a5e21778b 100644 --- a/scripts/Makefile +++ b/scripts/Makefile @@ -9,6 +9,7 @@ hostprogs-always-$(CONFIG_BUILDTIME_TABLE_SORT) += sorttable hostprogs-always-$(CONFIG_ASN1) += asn1_compiler hostprogs-always-$(CONFIG_MODULE_SIG_FORMAT) += sign-file hostprogs-always-$(CONFIG_SYSTEM_EXTRA_CERTIFICATE) += insert-sys-cert +hostprogs-always-$(CONFIG_ARM64) += resource_tool mkkrnlimg always-$(CONFIG_RUST) += target.json filechk_rust_target = $< < include/config/auto.conf