build: fix stale package install stamps for unselected variants

When a package variant changes from =y to =m, its .install stamp file
was not being cleaned up, causing both variants to appear in the
package install list.

Fix by making compile depend on prepare-package-install, ensuring
the stamp file is always cleared. Only =y packages recreate it.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
Felix Fietkau 2026-01-13 12:37:50 +00:00
parent 6d5c71f748
commit bb22a514dc

View file

@ -395,7 +395,7 @@ prepare-package-install:
$(PACKAGE_DIR):
mkdir -p $@
compile:
compile: prepare-package-install
.install: .compile
install: compile