diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2014-08-05 11:24:24 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2014-08-05 11:24:24 +0000 |
commit | fdb795c3e4e73747ff722d60f2368e79b5214007 (patch) | |
tree | eae1a8c8b2fa7b37e5785012f1f98202d9410338 /scripts/metadata.pl | |
parent | 2f757bc989540acb986031b0b69d1274a922ef0f (diff) | |
download | upstream-fdb795c3e4e73747ff722d60f2368e79b5214007.tar.gz upstream-fdb795c3e4e73747ff722d60f2368e79b5214007.tar.bz2 upstream-fdb795c3e4e73747ff722d60f2368e79b5214007.zip |
build: introduce per feed repository support
This changeset implements a new menuconfig option to generate separate
repositories for each enabled package feed instead of one monolithic one.
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42002 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'scripts/metadata.pl')
-rwxr-xr-x | scripts/metadata.pl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/metadata.pl b/scripts/metadata.pl index e408beb507..79f930c5ea 100755 --- a/scripts/metadata.pl +++ b/scripts/metadata.pl @@ -848,6 +848,16 @@ sub gen_package_source() { } } +sub gen_package_feeds() { + parse_package_metadata($ARGV[0]) or exit 1; + foreach my $name (sort {uc($a) cmp uc($b)} keys %package) { + my $pkg = $package{$name}; + if ($pkg->{name} && $pkg->{feed}) { + print "Package/$name/feed = $pkg->{feed}\n"; + } + } +} + sub parse_command() { my $cmd = shift @ARGV; for ($cmd) { @@ -856,6 +866,7 @@ sub parse_command() { /^package_config$/ and return gen_package_config(); /^kconfig/ and return gen_kconfig_overrides(); /^package_source$/ and return gen_package_source(); + /^package_feeds$/ and return gen_package_feeds(); } print <<EOF Available Commands: @@ -864,6 +875,7 @@ Available Commands: $0 package_config [file] Package metadata in Kconfig format $0 kconfig [file] [config] Kernel config overrides $0 package_source [file] Package source file information + $0 package_feeds [file] Package feed information in makefile format EOF } |