mirror of
https://github.com/openwrt/openwrt.git
synced 2025-08-07 22:30:33 +08:00
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>
This commit is contained in:
@ -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"});
|
||||
|
Reference in New Issue
Block a user