diff options
author | Tomasz Maciej Nowak <tmn505@gmail.com> | 2023-07-11 16:06:21 +0200 |
---|---|---|
committer | Christian Lamparter <chunkeey@gmail.com> | 2023-07-19 21:57:25 +0200 |
commit | 1c79f9381963976558d87cd6f2062082e034e6f2 (patch) | |
tree | 67badfdf1d7c3341577d83e02aa549533a9a2b8c /target/imagebuilder/files | |
parent | 8a1ba96e2dcec77f34a1b58458213e1de28a61a7 (diff) | |
download | upstream-1c79f9381963976558d87cd6f2062082e034e6f2.tar.gz upstream-1c79f9381963976558d87cd6f2062082e034e6f2.tar.bz2 upstream-1c79f9381963976558d87cd6f2062082e034e6f2.zip |
ib: split out processing user provided packages
Some device recipes remove default target packages. If user tries to add
them back they will be ignored, since packages list is processed in one
go. Process the device recipe packages first and do user ones later, so
additions won't get filtered out.
Signed-off-by: Tomasz Maciej Nowak <tmn505@gmail.com>
(cherry picked from commit e40b9a7fa002154e85459791101a0444d99dfb86)
Diffstat (limited to 'target/imagebuilder/files')
-rw-r--r-- | target/imagebuilder/files/Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/target/imagebuilder/files/Makefile b/target/imagebuilder/files/Makefile index 44b4a380c3..6b94aef391 100644 --- a/target/imagebuilder/files/Makefile +++ b/target/imagebuilder/files/Makefile @@ -110,9 +110,11 @@ _call_info: FORCE echo 'Available Profiles:' echo; $(PROFILE_LIST) -BUILD_PACKAGES:=$(USER_PACKAGES) $(sort $(DEFAULT_PACKAGES) $($(USER_PROFILE)_PACKAGES) kernel) +BUILD_PACKAGES:=$(sort $(DEFAULT_PACKAGES) $($(USER_PROFILE)_PACKAGES) kernel) # "-pkgname" in the package list means remove "pkgname" from the package list BUILD_PACKAGES:=$(filter-out $(filter -%,$(BUILD_PACKAGES)) $(patsubst -%,%,$(filter -%,$(BUILD_PACKAGES))),$(BUILD_PACKAGES)) +BUILD_PACKAGES:=$(USER_PACKAGES) $(BUILD_PACKAGES) +BUILD_PACKAGES:=$(filter-out $(filter -%,$(BUILD_PACKAGES)) $(patsubst -%,%,$(filter -%,$(BUILD_PACKAGES))),$(BUILD_PACKAGES)) PACKAGES:= _call_image: staging_dir/host/.prereq-build |