Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] Makefile: ignore configs/ prefix on configuration events
@ 2025-06-30  2:38 James Knight
  2025-06-30  7:48 ` Edgar Bonet via buildroot
  2025-07-01  7:02 ` Arnout Vandecappelle via buildroot
  0 siblings, 2 replies; 6+ messages in thread
From: James Knight @ 2025-06-30  2:38 UTC (permalink / raw)
  To: buildroot; +Cc: James Knight

Allows accepting board configuration events that are prefixed with a
`configs/` path. This provides a convenience for users where it can be
slightly easier/quicker to utilize shell completion to prepare a build.
For example:

    make configs/qemu_sparc64_sun4u_defconfig

Would be equivalent to:

    make qemu_sparc64_sun4u_defconfig

Signed-off-by: James Knight <git@jdknight.me>
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index c581067320..46b246245b 100644
--- a/Makefile
+++ b/Makefile
@@ -1026,7 +1026,7 @@ defconfig: $(BUILD_DIR)/buildroot-config/conf outputmakefile
 		$(firstword \
 			$(foreach d, \
 				$(call reverse,$(TOPDIR) $(BR2_EXTERNAL_DIRS)), \
-				$(wildcard $(d)/configs/$@) \
+				$(wildcard $(d)/configs/$(@:configs/%=%)) \
 			) \
 		), \
 		$(error "Can't find $@") \
-- 
2.49.0.windows.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-07-07  1:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-30  2:38 [Buildroot] [PATCH 1/1] Makefile: ignore configs/ prefix on configuration events James Knight
2025-06-30  7:48 ` Edgar Bonet via buildroot
2025-07-01  7:04   ` Arnout Vandecappelle via buildroot
2025-07-01  7:51     ` Edgar Bonet via buildroot
2025-07-01  7:02 ` Arnout Vandecappelle via buildroot
2025-07-07  1:30   ` James Knight

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox