Skip to contentSkip to conversation

nios2: add FORCE for vmlinuz.gz

PATCH In review Randy Dunlap 2 participants 3 messages Nov 24, 2022 – Nov 26, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nios2: add FORCE for vmlinuz.gz

Add FORCE to placate a warning from make:

arch/nios2/boot/Makefile:24: FORCE prerequisite is missing

Fixes 2fc8483fdcde ("nios2: Build infrastructure")
Cc Dinh Nguyen <[email protected]>
Cc Masahiro Yamada <[email protected]>
---
 arch/nios2/boot/Makefile |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/nios2/boot/Makefile +1 -1
diff -- a/arch/nios2/boot/Makefile b/arch/nios2/boot/Makefile
@@ -20,7 +20,7 @@ $(obj)/vmlinux.bin: vmlinux FORCE
 $(obj)/vmlinux.gz: $(obj)/vmlinux.bin FORCE
 	$(call if_changed,gzip)
 
-$(obj)/vmImage: $(obj)/vmlinux.gz
+$(obj)/vmImage: $(obj)/vmlinux.gz FORCE
 	$(call if_changed,uimage)
 	@$(kecho) 'Kernel: $@ is ready'
 
Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · Randy Dunlap

Add FORCE to placate a warning from make:

arch/nios2/boot/Makefile:24: FORCE prerequisite is missing

Fixes 2fc8483fdcde ("nios2: Build infrastructure")
Cc Dinh Nguyen <[email protected]>
Cc Masahiro Yamada <[email protected]>

Assuming this will go to the NIOS2 tree,

Please let me know if I should apply this to kbuild tree.

Quoted 16 lines
---
 arch/nios2/boot/Makefile |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -- a/arch/nios2/boot/Makefile b/arch/nios2/boot/Makefile

arch/nios2/boot/Makefile +1 -1
@@ -20,7 +20,7 @@ $(obj)/vmlinux.bin: vmlinux FORCE
 $(obj)/vmlinux.gz: $(obj)/vmlinux.bin FORCE
        $(call if_changed,gzip)
 
-$(obj)/vmImage: $(obj)/vmlinux.gz
+$(obj)/vmImage: $(obj)/vmlinux.gz FORCE
        $(call if_changed,uimage)
        @$(kecho) 'Kernel: $@ is ready'
 
Signature · 2 lines
Best Regards
Masahiro Yamada
#2 lore raw
Quoted 14 lines · Masahiro Yamada
Quoted 10 lines · Randy Dunlap

Add FORCE to placate a warning from make:

arch/nios2/boot/Makefile:24: FORCE prerequisite is missing

Fixes 2fc8483fdcde ("nios2: Build infrastructure")
Cc Dinh Nguyen <[email protected]>
Cc Masahiro Yamada <[email protected]>
Quoted 8 lines

Assuming this will go to the NIOS2 tree,

Please let me know if I should apply this to kbuild tree.

I changed my mind and applied this to linux-kbuild/fixes.

I have another chance to send a pull request soon.

Thanks.

Signature · 2 lines
Best Regards
Masahiro Yamada