diff options
author | Christian Marangi <ansuelsmth@gmail.com> | 2024-10-26 22:57:46 +0200 |
---|---|---|
committer | Christian Marangi <ansuelsmth@gmail.com> | 2024-10-29 00:07:54 +0100 |
commit | 377b66990b9718ea2a508f86b5c9f520ea31639f (patch) | |
tree | 5d1025dade3c05a37ee5dc18db1932605b249f1a /scripts | |
parent | fb56a46246a6ef2b1dcfc42b0edc136bba0ed9d3 (diff) | |
download | openwrt-377b66990b9718ea2a508f86b5c9f520ea31639f.tar.gz openwrt-377b66990b9718ea2a508f86b5c9f520ea31639f.tar.bz2 openwrt-377b66990b9718ea2a508f86b5c9f520ea31639f.zip |
build: introduce support to declare skip package
It seems some target started declaring package in DEVICE_PACKAGES just
to call InstallDev and generate binary for the image firmware.
This is very much used by layerscape target where trusted-firmware-a and
dependency are called for final image generation.
This is problematic for APK since it's more sensible to non exisiting
package.
To handle this, introduce a prefix '~' for a package that will signal to
build the package but not install it in the final image.
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/target-metadata.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/target-metadata.pl b/scripts/target-metadata.pl index e1d4ef242b..0c17e2e327 100755 --- a/scripts/target-metadata.pl +++ b/scripts/target-metadata.pl @@ -146,7 +146,7 @@ sub merge_package_lists($$) { my %pkgs; foreach my $pkg (@$list1, @$list2) { - $pkgs{$pkg} = 1; + $pkgs{$pkg =~ s/^~//r} = 1; } foreach my $pkg (keys %pkgs) { push @l, $pkg unless ($pkg =~ /^-/ or $pkgs{"-$pkg"}); |