From 37d815cbf48762f2a5d66b3f352c5b4612c9867e Mon Sep 17 00:00:00 2001 From: Brandon Maier Date: Mon, 29 Jul 2024 16:19:08 +0000 Subject: [PATCH] package/pkg-kconfig: fix *-savedefconfig under ppd 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 Signed-off-by: Brandon Maier Signed-off-by: Thomas Petazzoni (cherry picked from commit de11afaa3458eae781582e61e0de6a91e9e48d0e) Signed-off-by: Peter Korsgaard --- 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