[openwrt/openwrt] build: remove targetinfo invalidation based on .config
LEDE Commits
lede-commits at lists.infradead.org
Mon Dec 2 03:29:27 PST 2024
nbd pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/3b661cfcf9158a3dc5be6f7e1e1340339c9423b5
commit 3b661cfcf9158a3dc5be6f7e1e1340339c9423b5
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Mon Dec 2 12:27:35 2024 +0100
build: remove targetinfo invalidation based on .config
Target info no longer depends on config settings
Signed-off-by: Felix Fietkau <nbd at nbd.name>
---
include/toplevel.mk | 17 +----------------
1 file changed, 1 insertion(+), 16 deletions(-)
diff --git a/include/toplevel.mk b/include/toplevel.mk
index a52c56832e..092dff786c 100644
--- a/include/toplevel.mk
+++ b/include/toplevel.mk
@@ -75,22 +75,7 @@ endif
_ignore = $(foreach p,$(IGNORE_PACKAGES),--ignore $(p))
-# Config that will invalidate the .targetinfo as they will affect
-# DEFAULT_PACKAGES.
-# Keep DYNAMIC_DEF_PKG_CONF in sync with target.mk to reflect the same configs
-DYNAMIC_DEF_PKG_CONF := CONFIG_USE_APK CONFIG_SELINUX CONFIG_SMALL_FLASH CONFIG_USE_SECCOMP
-check-dynamic-def-pkg: FORCE
- @+DEF_PKG_CONFS=""; \
- if [ -f $(TOPDIR)/.config ]; then \
- for config in $(DYNAMIC_DEF_PKG_CONF); do \
- DEF_PKG_CONFS="$$DEF_PKG_CONFS "$$(grep "$$config"=y $(TOPDIR)/.config); \
- done; \
- fi; \
- [ ! -f tmp/.packagedynamicdefault ] || OLD_DEF_PKG_CONFS=$$(cat tmp/.packagedynamicdefault); \
- [ "$$DEF_PKG_CONFS" = "$$OLD_DEF_PKG_CONFS" ] || rm -rf tmp/info/.targetinfo*; \
- mkdir -p tmp && echo "$$DEF_PKG_CONFS" > tmp/.packagedynamicdefault;
-
-prepare-tmpinfo: check-dynamic-def-pkg FORCE
+prepare-tmpinfo: FORCE
@+$(MAKE) -r -s $(STAGING_DIR_HOST)/.prereq-build $(PREP_MK)
mkdir -p tmp/info feeds
[ -e $(TOPDIR)/feeds/base ] || ln -sf $(TOPDIR)/package $(TOPDIR)/feeds/base
More information about the lede-commits
mailing list