diff options
author | Felix Fietkau <nbd@openwrt.org> | 2009-01-13 02:02:56 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2009-01-13 02:02:56 +0000 |
commit | 042d715f2b8d9e2dc86e5367e6796fc5bdef0b8e (patch) | |
tree | 492c64e722d8f793eb8a9437baaa3ceed497d48b /scripts | |
parent | 9950f248701c89ce2e21e6716b9a290d2d3d4664 (diff) | |
download | upstream-042d715f2b8d9e2dc86e5367e6796fc5bdef0b8e.tar.gz upstream-042d715f2b8d9e2dc86e5367e6796fc5bdef0b8e.tar.bz2 upstream-042d715f2b8d9e2dc86e5367e6796fc5bdef0b8e.zip |
add support for build-only packages which do not appear in menuconfig
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14009 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/metadata.pl | 3 | ||||
-rw-r--r-- | scripts/metadata.pm | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/scripts/metadata.pl b/scripts/metadata.pl index f000e9db9a..da29fdd895 100755 --- a/scripts/metadata.pl +++ b/scripts/metadata.pl @@ -398,6 +398,7 @@ sub mconf_depends { $depend = $2; } next if $seen->{$depend}; + next if $package{$depend} and $package{$depend}->{buildonly}; $seen->{$depend} = 1; if ($vdep = $package{$depend}->{vdepends}) { $depend = join("||", map { "PACKAGE_".$_ } @$vdep); @@ -442,6 +443,7 @@ sub print_package_config_category($) { foreach my $spkg (sort {uc($a) cmp uc($b)} keys %spkg) { foreach my $pkg (@{$spkg{$spkg}}) { + next if $pkg->{buildonly}; my $menu = $pkg->{submenu}; if ($menu) { $menu_dep{$menu} or $menu_dep{$menu} = $pkg->{submenudep}; @@ -543,6 +545,7 @@ sub gen_package_mk() { $config = "\$(CONFIG_PACKAGE_$name)" } if ($config) { + $pkg->{buildonly} and $config = ""; print "package-$config += $pkg->{subdir}$pkg->{src}\n"; $pkg->{prereq} and print "prereq-$config += $pkg->{subdir}$pkg->{src}\n"; } diff --git a/scripts/metadata.pm b/scripts/metadata.pm index a527d68f8f..9486c66cb3 100644 --- a/scripts/metadata.pm +++ b/scripts/metadata.pm @@ -88,6 +88,7 @@ sub parse_package_metadata($) { } }; /^Depends: \s*(.+)\s*$/ and $pkg->{depends} = [ split /\s+/, $1 ]; + /^Build-Only: \s*(.+)\s*$/ and $pkg->{buildonly} = 1; /^Build-Depends: \s*(.+)\s*$/ and $pkg->{builddepends} = [ split /\s+/, $1 ]; /^Category: \s*(.+)\s*$/ and do { $pkg->{category} = $1; |