X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fopenwrt.git;a=blobdiff_plain;f=scripts%2Ftarget-metadata.pl;h=07160dc4ea2c890886a2401a0ba1b597b0337afb;hp=7e7d26bac93147f2652abd549509269b29362174;hb=f2102b484ba17bcfcf3f1cff4f19c077431c25cf;hpb=f4ce133ccf3ac4d4f520399feba75aaee08317af diff --git a/scripts/target-metadata.pl b/scripts/target-metadata.pl index 7e7d26bac9..07160dc4ea 100755 --- a/scripts/target-metadata.pl +++ b/scripts/target-metadata.pl @@ -39,6 +39,7 @@ sub target_config_features(@) { /low_mem/ and $ret .= "\tselect LOW_MEMORY_FOOTPRINT\n"; /small_flash/ and $ret .= "\tselect SMALL_FLASH\n"; /nand/ and $ret .= "\tselect NAND_SUPPORT\n"; + /virtio/ and $ret .= "\tselect VIRTIO_SUPPORT\n"; } return $ret; } @@ -262,7 +263,7 @@ EOF foreach my $profile (@{$target->{profiles}}) { next unless $profile->{id} =~ /^DEVICE_/; print <{conf}_$profile->{id} +menuconfig TARGET_DEVICE_$target->{conf}_$profile->{id} bool "$profile->{name}" depends on TARGET_$target->{conf} default y if TARGET_ALL_PROFILES @@ -273,6 +274,17 @@ EOF print "\tselect MODULE_DEFAULT_$pkg if TARGET_PER_DEVICE_ROOTFS\n"; $defaults{$pkg} = 1; } + + print <{conf}_$profile->{id} + string "$profile->{name} additional packages" + default "" + depends on TARGET_PER_DEVICE_ROOTFS + depends on TARGET_DEVICE_$target->{conf}_$profile->{id} + +EOF } }