Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cdc02dd0 authored by Patrick Daly's avatar Patrick Daly
Browse files

ARM: Add option to build Image/dtb combo



Add a target Image-dtb which will build an uncompressed kernel with an
appended dtb image.

Change-Id: I2ede8fd935327d75d7378c2868d39c416d704724
Signed-off-by: default avatarPatrick Daly <pdaly@codeaurora.org>
parent edcfa65a
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -361,6 +361,10 @@ endif
zImage-dtb: vmlinux scripts dtbs
	$(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) DTSSUBDIR=$(DTSSUBDIR) $(boot)/$@

Image-dtb: vmlinux scripts dtbs
	$(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) DTSSUBDIR=$(DTSSUBDIR) $(boot)/$@


# We use MRPROPER_FILES and CLEAN_FILES now
archclean:
	$(Q)$(MAKE) $(clean)=$(boot)
+2 −0
Original line number Diff line number Diff line
@@ -3,3 +3,5 @@ zImage
xipImage
bootpImage
uImage
Image-dtb-hdr
Image-dtb
+8 −0
Original line number Diff line number Diff line
@@ -59,6 +59,14 @@ $(obj)/xipImage: FORCE
$(obj)/Image: vmlinux FORCE
	$(call if_changed,objcopy)

$(obj)/Image-dtb-hdr: $(obj)/Image FORCE
	echo -n 'UNCOMPRESSED_IMG' > $@ && \
	$(call size_append, $(filter-out FORCE,$^)) >> $@

$(obj)/Image-dtb: $(obj)/Image-dtb-hdr $(obj)/Image $(DTB_OBJS) FORCE
	$(call if_changed,cat)
	@echo '  Kernel: $@ is ready'

$(obj)/compressed/vmlinux: $(obj)/Image FORCE
	$(Q)$(MAKE) $(build)=$(obj)/compressed $@