aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2006-05-24 07:12:59 +0000
committerNicolas Thill <nico@openwrt.org>2006-05-24 07:12:59 +0000
commita89e0760a5e3de4a6a7fb75f2dbe6efd20d8f4f2 (patch)
treefd3e9774698c9230a3c415b01858458c7e63de2a /scripts
parent2639fcb22873f4a104972c496eeb8cc86847a0c4 (diff)
downloadupstream-a89e0760a5e3de4a6a7fb75f2dbe6efd20d8f4f2.tar.gz
upstream-a89e0760a5e3de4a6a7fb75f2dbe6efd20d8f4f2.tar.bz2
upstream-a89e0760a5e3de4a6a7fb75f2dbe6efd20d8f4f2.zip
add Build/InstallDev template to install dev files in STAGING_DIR,
introduce a NEEDS: package field to implement SELECT PACKAGE_foo in menuconfig. git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@3824 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/gen_menuconfig.pl7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/gen_menuconfig.pl b/scripts/gen_menuconfig.pl
index e282ee3ed2..e304f18813 100755
--- a/scripts/gen_menuconfig.pl
+++ b/scripts/gen_menuconfig.pl
@@ -28,6 +28,9 @@ sub print_category($) {
foreach my $depend (@{$pkg->{depends}}) {
print "\t\tdepends PACKAGE_$depend\n";
}
+ foreach my $need (@{$pkg->{needs}}) {
+ print "\t\tselect PACKAGE_$need\n";
+ }
print "\t\thelp\n";
print $pkg->{description};
print "\n";
@@ -63,6 +66,10 @@ while ($line = <>) {
my @dep = split /,\s*/, $1;
$pkg->{depends} = \@dep;
};
+ $line =~ /^Needs: \s*(.+)\s*$/ and do {
+ my @need = split /,\s*/, $1;
+ $pkg->{needs} = \@need;
+ };
$line =~ /^Category: \s*(.+)\s*$/ and do {
$pkg->{category} = $1;
defined $category{$1} or $category{$1} = {};