diff mbox series

[5/7] microblaze: add linux.bin* and simpleImage.* to PHONY

Message ID 1543823457-32478-6-git-send-email-yamada.masahiro@socionext.com
State New
Headers show
Series microblaze: fix various problems in building boot images | expand

Commit Message

Masahiro Yamada Dec. 3, 2018, 7:50 a.m. UTC
linux.bin, linux.bin.gz, and linux.bin.ub are phony targets to
generate a corresponding image under arch/microblaze/boot/.

simpleImage.% also works like a PHONY target, but a pattern that
contains '%' cannot be a PHONY target. I renamed it to equivalent
simpleImage.$(DTB).

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>

---

 arch/microblaze/Makefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

-- 
2.7.4

Comments

Michal Simek Dec. 5, 2018, 3:59 p.m. UTC | #1
On 03. 12. 18 8:50, Masahiro Yamada wrote:
> linux.bin, linux.bin.gz, and linux.bin.ub are phony targets to

> generate a corresponding image under arch/microblaze/boot/.

> 

> simpleImage.% also works like a PHONY target, but a pattern that

> contains '%' cannot be a PHONY target. I renamed it to equivalent

> simpleImage.$(DTB).

> 

> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>

> ---

> 

>  arch/microblaze/Makefile | 4 +++-

>  1 file changed, 3 insertions(+), 1 deletion(-)

> 

> diff --git a/arch/microblaze/Makefile b/arch/microblaze/Makefile

> index c5d5b0e..7a5df02 100644

> --- a/arch/microblaze/Makefile

> +++ b/arch/microblaze/Makefile

> @@ -79,11 +79,13 @@ all: linux.bin

>  archclean:

>  	$(Q)$(MAKE) $(clean)=$(boot)

>  

> +PHONY += linux.bin linux.bin.gz linux.bin.ub

>  linux.bin linux.bin.gz linux.bin.ub: vmlinux

>  	$(Q)$(MAKE) $(build)=$(boot) $(boot)/$@

>  	@echo 'Kernel: $(boot)/$@ is ready' ' (#'`cat .version`')'

>  

> -simpleImage.%: vmlinux

> +PHONY += simpleImage.$(DTB)

> +simpleImage.$(DTB): vmlinux

>  	$(Q)$(MAKE) $(build)=$(boot) simple_images

>  	@echo 'Kernel: $(boot)/$@ is ready' ' (#'`cat .version`')'

>  

> 


Acked-by: Michal Simek <michal.simek@xilinx.com>


Thanks,
Michal


-- 
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Xilinx Microblaze
Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs
U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP/Versal SoCs
diff mbox series

Patch

diff --git a/arch/microblaze/Makefile b/arch/microblaze/Makefile
index c5d5b0e..7a5df02 100644
--- a/arch/microblaze/Makefile
+++ b/arch/microblaze/Makefile
@@ -79,11 +79,13 @@  all: linux.bin
 archclean:
 	$(Q)$(MAKE) $(clean)=$(boot)
 
+PHONY += linux.bin linux.bin.gz linux.bin.ub
 linux.bin linux.bin.gz linux.bin.ub: vmlinux
 	$(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
 	@echo 'Kernel: $(boot)/$@ is ready' ' (#'`cat .version`')'
 
-simpleImage.%: vmlinux
+PHONY += simpleImage.$(DTB)
+simpleImage.$(DTB): vmlinux
 	$(Q)$(MAKE) $(build)=$(boot) simple_images
 	@echo 'Kernel: $(boot)/$@ is ready' ' (#'`cat .version`')'