[openwrt/openwrt] scripts/target-metadata.pl: order features alphabetically

LEDE Commits lede-commits at lists.infradead.org
Fri Aug 6 15:31:13 PDT 2021


stintel pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/84c9570aaadec70b667586c3c84dd9fd095baa9e

commit 84c9570aaadec70b667586c3c84dd9fd095baa9e
Author: Stijn Tintel <stijn at linux-ipv6.be>
AuthorDate: Sat Aug 7 01:28:08 2021 +0300

    scripts/target-metadata.pl: order features alphabetically
    
    We generaly do this in many other places, so let's do it here also.
    
    Signed-off-by: Stijn Tintel <stijn at linux-ipv6.be>
---
 scripts/target-metadata.pl | 46 +++++++++++++++++++++++-----------------------
 1 file changed, 23 insertions(+), 23 deletions(-)

diff --git a/scripts/target-metadata.pl b/scripts/target-metadata.pl
index 990235182d..dff24998cd 100755
--- a/scripts/target-metadata.pl
+++ b/scripts/target-metadata.pl
@@ -10,42 +10,42 @@ sub target_config_features(@) {
 
 	while ($_ = shift @_) {
 		/^arm_v(\w+)$/ and $ret .= "\tselect arm_v$1\n";
-		/^broken$/ and $ret .= "\tdepends on BROKEN\n";
 		/^audio$/ and $ret .= "\tselect AUDIO_SUPPORT\n";
+		/^boot-part$/ and $ret .= "\tselect USES_BOOT_PART\n";
+		/^broken$/ and $ret .= "\tdepends on BROKEN\n";
+		/^cpiogz$/ and $ret .= "\tselect USES_CPIOGZ\n";
 		/^display$/ and $ret .= "\tselect DISPLAY_SUPPORT\n";
 		/^dt$/ and $ret .= "\tselect USES_DEVICETREE\n";
+		/^dt-overlay$/ and $ret .= "\tselect HAS_DT_OVERLAY_SUPPORT\n";
+		/^ext4$/ and $ret .= "\tselect USES_EXT4\n";
+		/^fpu$/ and $ret .= "\tselect HAS_FPU\n";
 		/^gpio$/ and $ret .= "\tselect GPIO_SUPPORT\n";
+		/^jffs2$/ and $ret .= "\tselect USES_JFFS2\n";
+		/^jffs2_nand$/ and $ret .= "\tselect USES_JFFS2_NAND\n";
+		/^low_mem$/ and $ret .= "\tselect LOW_MEMORY_FOOTPRINT\n";
+		/^minor$/ and $ret .= "\tselect USES_MINOR\n";
+		/^mips16$/ and $ret .= "\tselect HAS_MIPS16\n";
+		/^nand$/ and $ret .= "\tselect NAND_SUPPORT\n";
+		/^nommu$/ and $ret .= "\tselect NOMMU\n";
 		/^pci$/ and $ret .= "\tselect PCI_SUPPORT\n";
 		/^pcie$/ and $ret .= "\tselect PCIE_SUPPORT\n";
-		/^usb$/ and $ret .= "\tselect USB_SUPPORT\n";
-		/^usbgadget$/ and $ret .= "\tselect USB_GADGET_SUPPORT\n";
 		/^pcmcia$/ and $ret .= "\tselect PCMCIA_SUPPORT\n";
+		/^powerpc64$/ and $ret .= "\tselect powerpc64\n";
 		/^pwm$/ and $ret .= "\select PWM_SUPPORT\n";
+		/^ramdisk$/ and $ret .= "\tselect USES_INITRAMFS\n";
+		/^rfkill$/ and $ret .= "\tselect RFKILL_SUPPORT\n";
+		/^rootfs-part$/ and $ret .= "\tselect USES_ROOTFS_PART\n";
 		/^rtc$/ and $ret .= "\tselect RTC_SUPPORT\n";
+		/^separate_ramdisk$/ and $ret .= "\tselect USES_INITRAMFS\n\tselect USES_SEPARATE_INITRAMFS\n";
+		/^small_flash$/ and $ret .= "\tselect SMALL_FLASH\n";
+		/^spe_fpu$/ and $ret .= "\tselect HAS_SPE_FPU\n";
 		/^squashfs$/ and $ret .= "\tselect USES_SQUASHFS\n";
-		/^jffs2$/ and $ret .= "\tselect USES_JFFS2\n";
-		/^jffs2_nand$/ and $ret .= "\tselect USES_JFFS2_NAND\n";
-		/^ext4$/ and $ret .= "\tselect USES_EXT4\n";
 		/^targz$/ and $ret .= "\tselect USES_TARGZ\n";
-		/^cpiogz$/ and $ret .= "\tselect USES_CPIOGZ\n";
-		/^minor$/ and $ret .= "\tselect USES_MINOR\n";
+		/^testing-kernel$/ and $ret .= "\tselect HAS_TESTING_KERNEL\n";
 		/^ubifs$/ and $ret .= "\tselect USES_UBIFS\n";
-		/^fpu$/ and $ret .= "\tselect HAS_FPU\n";
-		/^spe_fpu$/ and $ret .= "\tselect HAS_SPE_FPU\n";
-		/^ramdisk$/ and $ret .= "\tselect USES_INITRAMFS\n";
-		/^separate_ramdisk$/ and $ret .= "\tselect USES_INITRAMFS\n\tselect USES_SEPARATE_INITRAMFS\n";
-		/^powerpc64$/ and $ret .= "\tselect powerpc64\n";
-		/^nommu$/ and $ret .= "\tselect NOMMU\n";
-		/^mips16$/ and $ret .= "\tselect HAS_MIPS16\n";
-		/^rfkill$/ and $ret .= "\tselect RFKILL_SUPPORT\n";
-		/^low_mem$/ and $ret .= "\tselect LOW_MEMORY_FOOTPRINT\n";
-		/^small_flash$/ and $ret .= "\tselect SMALL_FLASH\n";
-		/^nand$/ and $ret .= "\tselect NAND_SUPPORT\n";
+		/^usb$/ and $ret .= "\tselect USB_SUPPORT\n";
+		/^usbgadget$/ and $ret .= "\tselect USB_GADGET_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";
-		/^testing-kernel$/ and $ret .= "\tselect HAS_TESTING_KERNEL\n";
-		/^dt-overlay$/ and $ret .= "\tselect HAS_DT_OVERLAY_SUPPORT\n";
 	}
 	return $ret;
 }



More information about the lede-commits mailing list