From 87043b406bebafa01653e5f0afd2780130310210 Mon Sep 17 00:00:00 2001 From: Yakir Yang Date: Mon, 1 Aug 2016 18:08:28 +0800 Subject: [PATCH] rk: arm: support build kernel.img and resource.img Change-Id: I651bb208c4304a2aeb7a03516238ac81cdc957d2 Signed-off-by: Yakir Yang --- arch/arm/Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm/Makefile b/arch/arm/Makefile index 88e479c8bcef..fb29c491f5a2 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile @@ -377,3 +377,15 @@ define archhelp echo ' install to $$(INSTALL_PATH) and run lilo' echo ' vdso_install - Install unstripped vdso.so to $$(INSTALL_MOD_PATH)/vdso' endef + +kernel.img: zImage + $(Q)$(srctree)/scripts/mkkrnlimg $(objtree)/arch/arm/boot/zImage $(objtree)/kernel.img >/dev/null + @echo ' Image: kernel.img is ready' + +LOGO := $(notdir $(wildcard $(srctree)/logo.bmp)) +LOGO_KERNEL := $(notdir $(wildcard $(srctree)/logo_kernel.bmp)) +%.img: %.dtb kernel.img $(LOGO) $(LOGO_KERNEL) + $(Q) if [ -f $(srctree)/$(LOGO) -a "$(srctree)" != "$(objtree)" ]; then cp -a $(srctree)/$(LOGO) $(objtree)/; fi + $(Q) if [ -f $(srctree)/$(LOGO_KERNEL) -a "$(srctree)" != "$(objtree)" ]; then cp -a $(srctree)/$(LOGO_KERNEL) $(objtree)/; fi + $(Q)$(srctree)/scripts/resource_tool $(objtree)/arch/arm/boot/dts/$*.dtb $(LOGO) $(LOGO_KERNEL) + @echo ' Image: resource.img (with $*.dtb $(LOGO) $(LOGO_KERNEL)) is ready' -- 2.34.1