* [Buildroot] [PATCH 0/3] package/pkg-kconfig: fixes for per-package-directory
@ 2024-07-29 16:19 Brandon Maier via buildroot
2024-07-29 16:19 ` [Buildroot] [PATCH 1/3] package/pkg-kconfig: fix *-savedefconfig under ppd Brandon Maier via buildroot
` (3 more replies)
0 siblings, 4 replies; 8+ messages in thread
From: Brandon Maier via buildroot @ 2024-07-29 16:19 UTC (permalink / raw)
To: buildroot; +Cc: Nathaniel Roach, Brandon Maier
Signed-off-by: Brandon Maier <brandon.maier@collins.com>
---
Brandon Maier (3):
package/pkg-kconfig: fix *-savedefconfig under ppd
package/pkg-kconfig: fix *-diff-config under ppd
package/pkg-kconfig: cleanup savedefconfig MAKE
package/pkg-kconfig.mk | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
base-commit: 520ca083dfec4ad5ce7977bed478e2285ce93b07
change-id: 20240729-pkg-kconfig-ppd-5fc44df6ddf1
Best regards,
--
Brandon Maier <brandon.maier@collins.com>
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 8+ messages in thread* [Buildroot] [PATCH 1/3] package/pkg-kconfig: fix *-savedefconfig under ppd
2024-07-29 16:19 [Buildroot] [PATCH 0/3] package/pkg-kconfig: fixes for per-package-directory Brandon Maier via buildroot
@ 2024-07-29 16:19 ` Brandon Maier via buildroot
2024-09-02 10:19 ` Peter Korsgaard
2024-07-29 16:19 ` [Buildroot] [PATCH 2/3] package/pkg-kconfig: fix *-diff-config " Brandon Maier via buildroot
` (2 subsequent siblings)
3 siblings, 1 reply; 8+ messages in thread
From: Brandon Maier via buildroot @ 2024-07-29 16:19 UTC (permalink / raw)
To: buildroot; +Cc: Nathaniel Roach, Brandon Maier
The 'linux-savedefconfig' target fails with the below error when
PER_PACKAGE_DIRECTORIES is enabled and the 'host-finalize' target hasn't
run yet.
scripts/Kconfig.include:39: C compiler '.../buildroot/output/host/bin/arm-buildroot-linux-gnueabihf-gcc' not found
The 'PPD' variable isn't defined for this target, so 'BR_PATH' falls
back to the final host directory.
Reported-by: Nathaniel Roach <nroach44@gmail.com>
Signed-off-by: Brandon Maier <brandon.maier@collins.com>
---
package/pkg-kconfig.mk | 1 +
1 file changed, 1 insertion(+)
diff --git a/package/pkg-kconfig.mk b/package/pkg-kconfig.mk
index f4f35bf96a..6bf3d6b4be 100644
--- a/package/pkg-kconfig.mk
+++ b/package/pkg-kconfig.mk
@@ -270,6 +270,7 @@ $(1)-check-configuration-done:
ifeq ($$($(2)_KCONFIG_SUPPORTS_DEFCONFIG),YES)
.PHONY: $(1)-savedefconfig
+$(1)-savedefconfig: PKG=$(2)
$(1)-savedefconfig: $(1)-check-configuration-done
$$(call kconfig-package-savedefconfig,$(2))
endif
--
2.45.2
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 8+ messages in thread* [Buildroot] [PATCH 2/3] package/pkg-kconfig: fix *-diff-config under ppd
2024-07-29 16:19 [Buildroot] [PATCH 0/3] package/pkg-kconfig: fixes for per-package-directory Brandon Maier via buildroot
2024-07-29 16:19 ` [Buildroot] [PATCH 1/3] package/pkg-kconfig: fix *-savedefconfig under ppd Brandon Maier via buildroot
@ 2024-07-29 16:19 ` Brandon Maier via buildroot
2024-09-02 10:19 ` Peter Korsgaard
2024-07-29 16:19 ` [Buildroot] [PATCH 3/3] package/pkg-kconfig: cleanup savedefconfig MAKE Brandon Maier via buildroot
2024-07-29 18:10 ` [Buildroot] [PATCH 0/3] package/pkg-kconfig: fixes for per-package-directory Thomas Petazzoni via buildroot
3 siblings, 1 reply; 8+ messages in thread
From: Brandon Maier via buildroot @ 2024-07-29 16:19 UTC (permalink / raw)
To: buildroot; +Cc: Brandon Maier
The 'linux-diff-config' target fails with the below error when
PER_PACKAGE_DIRECTORIES is enabled and the 'host-finalize' target hasn't
run yet.
scripts/Kconfig.include:39: C compiler '.../buildroot/output/host/bin/arm-buildroot-linux-gnueabihf-gcc' not found
The 'PPD' variable isn't defined for this target, so 'BR_PATH' falls
back to the final host directory.
Signed-off-by: Brandon Maier <brandon.maier@collins.com>
---
package/pkg-kconfig.mk | 1 +
1 file changed, 1 insertion(+)
diff --git a/package/pkg-kconfig.mk b/package/pkg-kconfig.mk
index 6bf3d6b4be..684342bcef 100644
--- a/package/pkg-kconfig.mk
+++ b/package/pkg-kconfig.mk
@@ -301,6 +301,7 @@ endif
# defconfig + fragments (if any) and the current configuration.
# Note: it preserves the timestamp of the current configuration when moving it
# around.
+$(1)-diff-config: PKG=$(2)
$(1)-diff-config: $(1)-check-configuration-done
$$(Q)cp -a $$($(2)_DIR)/$$($(2)_KCONFIG_DOTCONFIG) $$($(2)_DIR)/.config.dc.bak
$$(call kconfig-package-merge-config,$(2),$$($(2)_DIR)/$$($(2)_KCONFIG_DOTCONFIG),\
--
2.45.2
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [Buildroot] [PATCH 3/3] package/pkg-kconfig: cleanup savedefconfig MAKE
2024-07-29 16:19 [Buildroot] [PATCH 0/3] package/pkg-kconfig: fixes for per-package-directory Brandon Maier via buildroot
2024-07-29 16:19 ` [Buildroot] [PATCH 1/3] package/pkg-kconfig: fix *-savedefconfig under ppd Brandon Maier via buildroot
2024-07-29 16:19 ` [Buildroot] [PATCH 2/3] package/pkg-kconfig: fix *-diff-config " Brandon Maier via buildroot
@ 2024-07-29 16:19 ` Brandon Maier via buildroot
2024-09-02 10:19 ` Peter Korsgaard
2024-07-29 18:10 ` [Buildroot] [PATCH 0/3] package/pkg-kconfig: fixes for per-package-directory Thomas Petazzoni via buildroot
3 siblings, 1 reply; 8+ messages in thread
From: Brandon Maier via buildroot @ 2024-07-29 16:19 UTC (permalink / raw)
To: buildroot; +Cc: Brandon Maier
The kconfig infra defines a 'PKG_KCONFIG_MAKE' var that wraps all the
standard kconfig options. Switch to this so we aren't duplicating the
logic.
Signed-off-by: Brandon Maier <brandon.maier@collins.com>
---
package/pkg-kconfig.mk | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/package/pkg-kconfig.mk b/package/pkg-kconfig.mk
index 684342bcef..8000de16c4 100644
--- a/package/pkg-kconfig.mk
+++ b/package/pkg-kconfig.mk
@@ -33,8 +33,7 @@ PKG_KCONFIG_COMMON_OPTS = \
# Macro to save the defconfig file
# $(1): the name of the package in upper-case letters
define kconfig-package-savedefconfig
- $($(1)_MAKE_ENV) $($(1)_MAKE) -C $($(1)_DIR) \
- $(PKG_KCONFIG_COMMON_OPTS) $($(1)_KCONFIG_OPTS) savedefconfig
+ $($(1)_KCONFIG_MAKE) savedefconfig
endef
# The correct way to regenerate a .config file is to use 'make olddefconfig'.
--
2.45.2
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [Buildroot] [PATCH 0/3] package/pkg-kconfig: fixes for per-package-directory
2024-07-29 16:19 [Buildroot] [PATCH 0/3] package/pkg-kconfig: fixes for per-package-directory Brandon Maier via buildroot
` (2 preceding siblings ...)
2024-07-29 16:19 ` [Buildroot] [PATCH 3/3] package/pkg-kconfig: cleanup savedefconfig MAKE Brandon Maier via buildroot
@ 2024-07-29 18:10 ` Thomas Petazzoni via buildroot
3 siblings, 0 replies; 8+ messages in thread
From: Thomas Petazzoni via buildroot @ 2024-07-29 18:10 UTC (permalink / raw)
To: Brandon Maier via buildroot; +Cc: Nathaniel Roach, Brandon Maier
On Mon, 29 Jul 2024 16:19:07 +0000
Brandon Maier via buildroot <buildroot@buildroot.org> wrote:
> Brandon Maier (3):
> package/pkg-kconfig: fix *-savedefconfig under ppd
> package/pkg-kconfig: fix *-diff-config under ppd
> package/pkg-kconfig: cleanup savedefconfig MAKE
Thanks a lot, series applied!
I'm wondering how many other custom make targets like that we have that
would be missing the definition of PKG :-/
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2024-09-02 10:19 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-29 16:19 [Buildroot] [PATCH 0/3] package/pkg-kconfig: fixes for per-package-directory Brandon Maier via buildroot
2024-07-29 16:19 ` [Buildroot] [PATCH 1/3] package/pkg-kconfig: fix *-savedefconfig under ppd Brandon Maier via buildroot
2024-09-02 10:19 ` Peter Korsgaard
2024-07-29 16:19 ` [Buildroot] [PATCH 2/3] package/pkg-kconfig: fix *-diff-config " Brandon Maier via buildroot
2024-09-02 10:19 ` Peter Korsgaard
2024-07-29 16:19 ` [Buildroot] [PATCH 3/3] package/pkg-kconfig: cleanup savedefconfig MAKE Brandon Maier via buildroot
2024-09-02 10:19 ` Peter Korsgaard
2024-07-29 18:10 ` [Buildroot] [PATCH 0/3] package/pkg-kconfig: fixes for per-package-directory Thomas Petazzoni via buildroot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.