Browse Source

build: add a feature flag for low-memory systems

Signed-off-by: Felix Fietkau <[email protected]>

SVN-Revision: 40980
Felix Fietkau 11 năm trước cách đây
mục cha
commit
b24897ee5c
2 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 1 0
      scripts/metadata.pl
  2. 3 0
      target/Config.in

+ 1 - 0
scripts/metadata.pl

@@ -183,6 +183,7 @@ sub target_config_features(@) {
 		/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";
 	}
 	return $ret;
 }

+ 3 - 0
target/Config.in

@@ -69,6 +69,9 @@ config USES_UBIFS
 config PROFILE_KCONFIG
 	bool
 
+config LOW_MEMORY_FOOTPRINT
+	bool
+
 config NOMMU
 	bool