From 459762ace28f9685f40e68aab0fa66a4d84ecc6c Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 5 Apr 2011 19:03:51 +0000 Subject: add a new package metadata variable MDEPENDS for specifying local menuconfig dependencies that do not propagate to other packages SVN-Revision: 26491 --- scripts/metadata.pl | 1 + scripts/metadata.pm | 2 ++ 2 files changed, 3 insertions(+) (limited to 'scripts') diff --git a/scripts/metadata.pl b/scripts/metadata.pl index 7c60efbf4a..9cb846539f 100755 --- a/scripts/metadata.pl +++ b/scripts/metadata.pl @@ -530,6 +530,7 @@ sub print_package_config_category($) { print "\t\tdefault $default\n"; } print mconf_depends($pkg->{name}, $pkg->{depends}, 0); + print mconf_depends($pkg->{name}, $pkg->{mdepends}, 0); print "\t\thelp\n"; print $pkg->{description}; print "\n"; diff --git a/scripts/metadata.pm b/scripts/metadata.pm index 52ca9895e4..6d544c8833 100644 --- a/scripts/metadata.pm +++ b/scripts/metadata.pm @@ -66,6 +66,7 @@ sub parse_package_metadata($) { $pkg->{title} = ""; $pkg->{default} = "m if ALL"; $pkg->{depends} = []; + $pkg->{mdepends} = []; $pkg->{builddepends} = []; $pkg->{buildtypes} = []; $pkg->{subdir} = $subdir; @@ -111,6 +112,7 @@ sub parse_package_metadata($) { push @{$package{$vpkg}->{vdepends}}, $pkg->{name}; } }; + /^Menu-Depends: \s*(.+)\s*$/ and $pkg->{mdepends} = [ split /\s+/, $1 ]; /^Depends: \s*(.+)\s*$/ and $pkg->{depends} = [ split /\s+/, $1 ]; /^Build-Variant: \s*([\w\-]+)\s*/ and $pkg->{variant} = $1; /^Build-Only: \s*(.+)\s*$/ and $pkg->{buildonly} = 1; -- cgit v1.2.3