aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/package-metadata.pl
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2018-01-07 13:05:23 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2018-01-13 19:54:44 +0100
commit3abf663c22e32636306cfcdfd5fb29402a1c1a7f (patch)
tree813ad50fe70491c6408f38b42e25d52fae86e9f1 /scripts/package-metadata.pl
parent423ec18116f333bd51ff5264b0b5c9edc02945c6 (diff)
downloadupstream-3abf663c22e32636306cfcdfd5fb29402a1c1a7f.tar.gz
upstream-3abf663c22e32636306cfcdfd5fb29402a1c1a7f.tar.bz2
upstream-3abf663c22e32636306cfcdfd5fb29402a1c1a7f.zip
build: remove package preconfig feature
This feature has been unused for years, and its scope is too limited to be actually useful. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Diffstat (limited to 'scripts/package-metadata.pl')
-rwxr-xr-xscripts/package-metadata.pl36
1 files changed, 0 insertions, 36 deletions
diff --git a/scripts/package-metadata.pl b/scripts/package-metadata.pl
index 7bffb2374c..fe6e25b3c8 100755
--- a/scripts/package-metadata.pl
+++ b/scripts/package-metadata.pl
@@ -372,19 +372,6 @@ sub print_package_overrides() {
sub gen_package_config() {
parse_package_metadata($ARGV[0]) or exit 1;
print "menuconfig IMAGEOPT\n\tbool \"Image configuration\"\n\tdefault n\n";
- foreach my $preconfig (keys %preconfig) {
- foreach my $cfg (keys %{$preconfig{$preconfig}}) {
- my $conf = $preconfig{$preconfig}->{$cfg}->{id};
- $conf =~ tr/\.-/__/;
- print <<EOF
- config UCI_PRECONFIG_$conf
- string "$preconfig{$preconfig}->{$cfg}->{label}" if IMAGEOPT
- depends on PACKAGE_$preconfig
- default "$preconfig{$preconfig}->{$cfg}->{default}"
-
-EOF
- }
- }
print "source \"package/*/image-config.in\"\n";
if (scalar glob "package/feeds/*/*/image-config.in") {
print "source \"package/feeds/*/*/image-config.in\"\n";
@@ -579,29 +566,6 @@ sub gen_package_mk() {
if ($line ne "") {
print "\n$line";
}
- foreach my $preconfig (keys %preconfig) {
- my $cmds;
- foreach my $cfg (keys %{$preconfig{$preconfig}}) {
- my $conf = $preconfig{$preconfig}->{$cfg}->{id};
- $conf =~ tr/\.-/__/;
- $cmds .= "\techo \"uci set '$preconfig{$preconfig}->{$cfg}->{id}=\$(subst \",,\$(CONFIG_UCI_PRECONFIG_$conf))'\"; \\\n";
- }
- next unless $cmds;
- print <<EOF
-
-ifndef DUMP_TARGET_DB
-\$(TARGET_DIR)/etc/uci-defaults/$preconfig: FORCE
- ( \\
-$cmds \\
- ) > \$@
-
-ifneq (\$(IMAGEOPT)\$(CONFIG_IMAGEOPT),)
- package/preconfig: \$(TARGET_DIR)/etc/uci-defaults/$preconfig
-endif
-endif
-
-EOF
- }
}
sub gen_package_source() {