Skip to content

Commit

Permalink
Merge pull request #1 from analogdevicesinc/feature/change-uImage-cmd…
Browse files Browse the repository at this point in the history
…-to-be-generated-from-Image-rather-than-zImage

Update Makefile to force generate uImage from Image rather than zImage
  • Loading branch information
davidgibsonadi authored Aug 27, 2020
2 parents e66a8a6 + 67f1bf5 commit ec5d3ee
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions arch/arm/boot/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ $(obj)/compressed/vmlinux: $(obj)/Image FORCE
$(obj)/zImage: $(obj)/compressed/vmlinux FORCE
$(call if_changed,objcopy)

$(obj)/Image-dtb.%: $(obj)/dts/%.dtb $(obj)/Image
cat $(obj)/Image $< > $@

endif

ifneq ($(LOADADDR),)
Expand All @@ -86,7 +89,11 @@ if [ $(words $(UIMAGE_LOADADDR)) -ne 1 ]; then \
false; \
fi

$(obj)/uImage: $(obj)/zImage FORCE
$(obj)/uImage: $(obj)/Image FORCE
@$(check_for_multiple_loadaddr)
$(call if_changed,uimage)

$(obj)/uImage-dtb.%: $(obj)/Image-dtb.% FORCE
@$(check_for_multiple_loadaddr)
$(call if_changed,uimage)

Expand All @@ -96,7 +103,7 @@ $(obj)/bootp/bootp: $(obj)/zImage initrd FORCE
$(obj)/bootpImage: $(obj)/bootp/bootp FORCE
$(call if_changed,objcopy)

PHONY += initrd install zinstall uinstall
PHONY += initrd FORCE
initrd:
@test "$(INITRD_PHYS)" != "" || \
(echo This machine does not support INITRD; exit -1)
Expand Down

0 comments on commit ec5d3ee

Please sign in to comment.