[PATCH 1/5] build: add GRAND_FLASH feature

Petr Štetiar ynezz at true.cz
Thu Jun 15 07:32:08 PDT 2023


So we can mark targets which have enough flash space to accomodate
certain features.

Signed-off-by: Petr Štetiar <ynezz at true.cz>
---
 scripts/target-metadata.pl | 1 +
 target/Config.in           | 3 +++
 2 files changed, 4 insertions(+)

diff --git a/scripts/target-metadata.pl b/scripts/target-metadata.pl
index e1d4ef242b86..aa81301dc5f2 100755
--- a/scripts/target-metadata.pl
+++ b/scripts/target-metadata.pl
@@ -21,6 +21,7 @@ sub target_config_features(@) {
 		/^ext4$/ and $ret .= "\tselect USES_EXT4\n";
 		/^fpu$/ and $ret .= "\tselect HAS_FPU\n";
 		/^gpio$/ and $ret .= "\tselect GPIO_SUPPORT\n";
+		/^grand_flash$/ and $ret .= "\tselect GRAND_FLASH\n";
 		/^jffs2$/ and $ret .= "\tselect USES_JFFS2\n";
 		/^jffs2_nand$/ and $ret .= "\tselect USES_JFFS2_NAND\n";
 		/^legacy-sdcard$/ and $ret .= "\tselect LEGACY_SDCARD_SUPPORT\n";
diff --git a/target/Config.in b/target/Config.in
index ac0f1f9826bf..b1c99b63000a 100644
--- a/target/Config.in
+++ b/target/Config.in
@@ -88,6 +88,9 @@ config LOW_MEMORY_FOOTPRINT
 config SMALL_FLASH
 	bool
 
+config GRAND_FLASH
+	bool
+
 config NOMMU
 	bool
 



More information about the openwrt-devel mailing list