Skip to content

Commit a68eeb9

Browse files
committed
ARC: Edits of uImage target build.
"uImage" target now have proper dependency on "loader". "make uImage" works properly.
1 parent 9ad9f9c commit a68eeb9

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

arch/arc/boot/Makefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,25 @@ $(obj)/vmlinux.bin.gz: $(obj)/vmlinux.bin FORCE
3535
$(obj)/vmlinux.bin.lzma: $(obj)/vmlinux.bin FORCE
3636
$(call if_changed,lzma)
3737

38+
ifeq ($(CONFIG_ISA_ARCV3),y)
39+
$(obj)/uImage.bin: $(obj)/vmlinux.bin $(obj)/loader FORCE
40+
else
3841
$(obj)/uImage.bin: $(obj)/vmlinux.bin FORCE
42+
endif
3943
$(call if_changed,uimage,none)
4044

45+
ifeq ($(CONFIG_ISA_ARCV3),y)
46+
$(obj)/uImage.gz: $(obj)/vmlinux.bin.gz $(obj)/loader FORCE
47+
else
4148
$(obj)/uImage.gz: $(obj)/vmlinux.bin.gz FORCE
49+
endif
4250
$(call if_changed,uimage,gzip)
4351

52+
ifeq ($(CONFIG_ISA_ARCV3),y)
53+
$(obj)/uImage.lzma: $(obj)/vmlinux.bin.lzma $(obj)/loader FORCE
54+
else
4455
$(obj)/uImage.lzma: $(obj)/vmlinux.bin.lzma FORCE
56+
endif
4557
$(call if_changed,uimage,lzma)
4658

4759
$(obj)/loader.o: $(src)/loader.S $(obj)/vmlinux.bin

0 commit comments

Comments
 (0)