From: Masahiro Yamada <masahiroy@kernel.org>
To: Michal Simek <monstr@monstr.eu>
Cc: linux-kernel@vger.kernel.org, Masahiro Yamada <masahiroy@kernel.org>
Subject: [PATCH 2/4] microblaze: merge build rules for linux.bin and simpleImage.$(DTB)
Date: Wed, 15 Jan 2025 03:13:52 +0900 [thread overview]
Message-ID: <20250114181359.4192564-2-masahiroy@kernel.org> (raw)
In-Reply-To: <20250114181359.4192564-1-masahiroy@kernel.org>
The build rules for $(obj)/linux.bin and $(obj)/simpleImage.$(DTB)
are identical.
The build rules for $(obj)/linux.bin.ub and $(obj)/simpleImage.$(DTB).ub
are also identical.
This commit consolidates the identical build rules.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
---
arch/microblaze/boot/Makefile | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/arch/microblaze/boot/Makefile b/arch/microblaze/boot/Makefile
index 2b42c370d574..9e3fec78f084 100644
--- a/arch/microblaze/boot/Makefile
+++ b/arch/microblaze/boot/Makefile
@@ -7,12 +7,6 @@ targets := linux.bin linux.bin.gz linux.bin.ub simpleImage.*
OBJCOPYFLAGS := -R .note -R .comment -R .note.gnu.build-id -O binary
-$(obj)/linux.bin: vmlinux FORCE
- $(call if_changed,objcopy)
-
-$(obj)/linux.bin.ub: $(obj)/linux.bin FORCE
- $(call if_changed,uimage)
-
$(obj)/linux.bin.gz: $(obj)/linux.bin FORCE
$(call if_changed,gzip)
@@ -22,10 +16,10 @@ quiet_cmd_strip = STRIP $< $@$2
UIMAGE_LOADADDR = $(CONFIG_KERNEL_BASE_ADDR)
-$(obj)/simpleImage.$(DTB): vmlinux FORCE
+$(obj)/linux.bin $(obj)/simpleImage.$(DTB): vmlinux FORCE
$(call if_changed,objcopy)
-$(obj)/simpleImage.$(DTB).ub: $(obj)/simpleImage.$(DTB) FORCE
+$(obj)/linux.bin.ub $(obj)/simpleImage.$(DTB).ub: %.ub: % FORCE
$(call if_changed,uimage)
$(obj)/simpleImage.$(DTB).unstrip: vmlinux FORCE
--
2.43.0
next prev parent reply other threads:[~2025-01-14 18:15 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-14 18:13 [PATCH 1/4] microblaze: fix 'FORCE prerequisite is missing' warning Masahiro Yamada
2025-01-14 18:13 ` Masahiro Yamada [this message]
2025-01-14 18:13 ` [PATCH 3/4] microblaze: prevent linux.bin from containing a built-in DTB Masahiro Yamada
2025-01-14 18:13 ` [PATCH 4/4] microblaze: remove unnecessary system.dts Masahiro Yamada
2025-01-31 22:25 ` Rob Herring
2025-02-01 3:42 ` Masahiro Yamada
2025-02-03 11:17 ` Michal Simek
2025-05-13 4:50 ` Masahiro Yamada
2025-06-10 7:49 ` Michal Simek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250114181359.4192564-2-masahiroy@kernel.org \
--to=masahiroy@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=monstr@monstr.eu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox