Changeset 14009


Ignore:
Timestamp:
2009-01-13T03:02:56+01:00 (9 years ago)
Author:
nbd
Message:

add support for build-only packages which do not appear in menuconfig

Location:
trunk
Files:
4 edited

Legend:

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

    r13887 r14009  
    3232  TITLE:= 
    3333  KCONFIG:= 
     34  BUILDONLY:= 
    3435endef 
    3536 
  • trunk/include/package-dumpinfo.mk

    r9060 r14009  
    3131                echo "Type: $(if $(Package/$(1)/targets),$(Package/$(1)/targets),$(if $(PKG_TARGETS),$(PKG_TARGETS),ipkg))"; \ 
    3232                $(if $(KCONFIG),echo "Kernel-Config: $(KCONFIG)";) \ 
     33                $(if $(BUILDONLY),echo "Build-Only: $(BUILDONLY)";) \ 
    3334                echo -n "Description: "; \ 
    3435                getvar $(call shvar,Package/$(1)/description); \ 
  • trunk/scripts/metadata.pl

    r13877 r14009  
    399399                } 
    400400                next if $seen->{$depend}; 
     401                next if $package{$depend} and $package{$depend}->{buildonly}; 
    401402                $seen->{$depend} = 1; 
    402403                if ($vdep = $package{$depend}->{vdepends}) { 
     
    443444        foreach my $spkg (sort {uc($a) cmp uc($b)} keys %spkg) { 
    444445                foreach my $pkg (@{$spkg{$spkg}}) { 
     446                        next if $pkg->{buildonly}; 
    445447                        my $menu = $pkg->{submenu}; 
    446448                        if ($menu) { 
     
    544546                } 
    545547                if ($config) { 
     548                        $pkg->{buildonly} and $config = ""; 
    546549                        print "package-$config += $pkg->{subdir}$pkg->{src}\n"; 
    547550                        $pkg->{prereq} and print "prereq-$config += $pkg->{subdir}$pkg->{src}\n"; 
  • trunk/scripts/metadata.pm

    r12325 r14009  
    8989                }; 
    9090                /^Depends: \s*(.+)\s*$/ and $pkg->{depends} = [ split /\s+/, $1 ]; 
     91                /^Build-Only: \s*(.+)\s*$/ and $pkg->{buildonly} = 1; 
    9192                /^Build-Depends: \s*(.+)\s*$/ and $pkg->{builddepends} = [ split /\s+/, $1 ]; 
    9293                /^Category: \s*(.+)\s*$/ and do { 
Note: See TracChangeset for help on using the changeset viewer.