adb: fix missing PKG_MIRROR_HASH
[openwrt/openwrt.git] / scripts / target-metadata.pl
index cbc3403a057086bb5eba57a565601ae4e8b62c28..4e4bc73d9183905a7fcf3f4604efba9754848e1e 100755 (executable)
@@ -40,6 +40,8 @@ sub target_config_features(@) {
                /^small_flash$/ and $ret .= "\tselect SMALL_FLASH\n";
                /^nand$/ and $ret .= "\tselect NAND_SUPPORT\n";
                /^virtio$/ and $ret .= "\tselect VIRTIO_SUPPORT\n";
+               /^rootfs-part$/ and $ret .= "\tselect USES_ROOTFS_PART\n";
+               /^boot-part$/ and $ret .= "\tselect USES_BOOT_PART\n";
        }
        return $ret;
 }
@@ -420,6 +422,10 @@ sub gen_profile_mk() {
                print "PROFILE_NAMES = ".join(" ", map { $_->{id} } @{$cur->{profiles}})."\n";
                foreach my $profile (@{$cur->{profiles}}) {
                        print $profile->{id}.'_NAME:='.$profile->{name}."\n";
+                       print $profile->{id}.'_HAS_IMAGE_METADATA:='.$profile->{has_image_metadata}."\n";
+                       if (@{$profile->{supported_devices}} > 0) {
+                               print $profile->{id}.'_SUPPORTED_DEVICES:='.join(' ', @{$profile->{supported_devices}})."\n";
+                       }
                        print $profile->{id}.'_PACKAGES:='.join(' ', @{$profile->{packages}})."\n";
                }
        }