Changeset 27344


Ignore:
Timestamp:
2011-07-02T08:49:09+02:00 (7 years ago)
Author:
nbd
Message:

add support for hidden packages that get selected/built but do not show up in menuconfig

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/package-defaults.mk

    r26491 r27344  
    4343  KCONFIG:= 
    4444  BUILDONLY:= 
     45  HIDDEN:= 
    4546  URL:= 
    4647  VARIANT:= 
  • trunk/include/package-dumpinfo.mk

    r26491 r27344  
    4646$(if $(KCONFIG),Kernel-Config: $(KCONFIG) 
    4747)$(if $(BUILDONLY),Build-Only: $(BUILDONLY) 
     48)$(if $(HIDDEN),Hidden: $(HIDDEN) 
    4849)Description: $(if $(Package/$(1)/description),$(Package/$(1)/description),$(TITLE)) 
    4950$(if $(URL),$(URL) 
  • trunk/scripts/metadata.pl

    r27267 r27344  
    526526                                $title .= ("." x $c). " ". $pkg->{title}; 
    527527                        } 
     528                        $title = "\"$title\""; 
    528529                        print "\t"; 
    529530                        $pkg->{menu} and print "menu"; 
    530531                        print "config PACKAGE_".$pkg->{name}."\n"; 
    531                         print "\t\t".($pkg->{tristate} ? 'tristate' : 'bool')." \"$title\"\n"; 
     532                        $pkg->{hidden} and $title = ""; 
     533                        print "\t\t".($pkg->{tristate} ? 'tristate' : 'bool')." $title\n"; 
    532534                        print "\t\tdefault y if DEFAULT_".$pkg->{name}."\n"; 
    533535                        foreach my $default (split /\s*,\s*/, $pkg->{default}) { 
  • trunk/scripts/metadata.pm

    r26491 r27344  
    115115                /^Menu-Depends: \s*(.+)\s*$/ and $pkg->{mdepends} = [ split /\s+/, $1 ]; 
    116116                /^Depends: \s*(.+)\s*$/ and $pkg->{depends} = [ split /\s+/, $1 ]; 
     117                /^Hidden: \s*(.+)\s*$/ and $pkg->{hidden} = 1; 
    117118                /^Build-Variant: \s*([\w\-]+)\s*/ and $pkg->{variant} = $1; 
    118119                /^Build-Only: \s*(.+)\s*$/ and $pkg->{buildonly} = 1; 
Note: See TracChangeset for help on using the changeset viewer.