mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 14:04:54 +02:00
rk: arm64: support build [z]boot.img from existing boot.img
The existing boot.img from $(BOOT_IMG). Change-Id: Iaf78185546200acb10ae13f541197722149624e1 Signed-off-by: Tao Huang <huangtao@rock-chips.com>
This commit is contained in:
parent
6f2dead304
commit
2c7e4e7fd3
|
|
@ -193,11 +193,26 @@ make_boot_img := \
|
|||
-o zboot.img && \
|
||||
echo ' Image: zboot.img (with Image.lz4 $(if $(RAMDISK_IMG),'ramdisk.img ')resource.img) is ready'
|
||||
|
||||
repack_boot_img := \
|
||||
$(srctree)/scripts/repack-bootimg \
|
||||
--boot_img $(BOOT_IMG) --out out \
|
||||
--kernel $(objtree)/arch/arm64/boot/Image \
|
||||
--second resource.img \
|
||||
-o boot.img && \
|
||||
echo ' Image: boot.img ($(BOOT_IMG) + Image + resource.img) is ready'; \
|
||||
$(srctree)/scripts/repack-bootimg \
|
||||
--boot_img $(BOOT_IMG) --out out \
|
||||
--kernel $(objtree)/arch/arm64/boot/Image.lz4 \
|
||||
--second resource.img \
|
||||
-o zboot.img && \
|
||||
echo ' Image: zboot.img ($(BOOT_IMG) + Image.lz4 + resource.img) is ready'
|
||||
|
||||
%.img: rockchip/%.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)scripts/resource_tool $(objtree)/arch/arm64/boot/dts/rockchip/$*.dtb $(LOGO) $(LOGO_KERNEL)
|
||||
@echo ' Image: resource.img (with $*.dtb $(LOGO) $(LOGO_KERNEL)) is ready'
|
||||
$(Q) if [ -x $(srctree)/scripts/mkbootimg ]; then $(make_boot_img); fi
|
||||
$(Q) if [ -f "$(BOOT_IMG)" -a -x $(srctree)/scripts/repack-bootimg ]; then $(repack_boot_img); elif [ -x $(srctree)/scripts/mkbootimg ]; then $(make_boot_img); fi
|
||||
|
||||
CLEAN_DIRS += out
|
||||
CLEAN_FILES += boot.img kernel.img resource.img zboot.img
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user