mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [PATCH] common: make BOOTM_SHOW_TYPE depend on UIMAGE
Date: Fri,  9 Aug 2024 16:18:08 +0200	[thread overview]
Message-ID: <20240809141808.312818-1-a.fatoum@pengutronix.de> (raw)

The config option only controls whether some extra uImage tags are
displayed extracted by calling functions in image.c.

Rename image.c to uimage_types.c to make clear that it is
uImage-specific and hide the option when UIMAGE is not enabled.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 common/Kconfig                     | 4 ++--
 common/Makefile                    | 2 +-
 common/{image.c => uimage_types.c} | 0
 3 files changed, 3 insertions(+), 3 deletions(-)
 rename common/{image.c => uimage_types.c} (100%)

diff --git a/common/Kconfig b/common/Kconfig
index 4500feb66c92..e505032e14d1 100644
--- a/common/Kconfig
+++ b/common/Kconfig
@@ -573,8 +573,8 @@ menuconfig BOOTM
 
 config BOOTM_SHOW_TYPE
 	bool
-	depends on BOOTM
-	prompt "show image information"
+	depends on BOOTM && UIMAGE
+	prompt "show uImage information"
 	help
 	  Displays some tags from the uImage:
 
diff --git a/common/Makefile b/common/Makefile
index e88f60b6d762..e66dc04bd874 100644
--- a/common/Makefile
+++ b/common/Makefile
@@ -69,7 +69,7 @@ obj-$(CONFIG_SHELL_SIMPLE)	+= parser.o
 obj-$(CONFIG_STATE)		+= state/
 obj-$(CONFIG_RATP)		+= ratp/
 obj-$(CONFIG_BOOTCHOOSER)	+= bootchooser.o
-obj-$(CONFIG_UIMAGE)		+= image.o uimage.o
+obj-$(CONFIG_UIMAGE)		+= uimage_types.o uimage.o
 obj-$(CONFIG_FITIMAGE)		+= image-fit.o
 obj-$(CONFIG_MENUTREE)		+= menutree.o
 lwl-$(CONFIG_IMD)		+= imd-barebox.o
diff --git a/common/image.c b/common/uimage_types.c
similarity index 100%
rename from common/image.c
rename to common/uimage_types.c
-- 
2.39.2




             reply	other threads:[~2024-08-09 14:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-09 14:18 Ahmad Fatoum [this message]
2024-08-14  8:26 ` Sascha Hauer

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=20240809141808.312818-1-a.fatoum@pengutronix.de \
    --to=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /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