config: add a small_flash feature
authorJohn Crispin <john@phrozen.org>
Mon, 13 Jun 2016 19:35:03 +0000 (21:35 +0200)
committerJohn Crispin <john@phrozen.org>
Mon, 13 Jun 2016 20:51:43 +0000 (22:51 +0200)
this causes KALLSYMS to be off by default

Signed-off-by: John Crispin <john@phrozen.org>
config/Config-kernel.in
scripts/target-metadata.pl
target/Config.in

index 4c191f0955baf0e083017391ddaea1ea24ceff7f..b05ff23694cf5c2597b49106200d0c6377a4a7ae 100644 (file)
@@ -62,7 +62,7 @@ config KERNEL_PROFILING
 
 config KERNEL_KALLSYMS
        bool "Compile the kernel with symbol table information"
-       default y
+       default y if !SMALL_FLASH
        help
          This will give you more information in stack traces from kernel oopses.
 
index 34a7c22ce62dfe3223c9ab939195ccf92a8535c3..ea6462c94fea62d1b64e8ebe0f4954c163260234 100755 (executable)
@@ -36,6 +36,7 @@ sub target_config_features(@) {
                /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";
        }
        return $ret;
index 3dc8655252af723067ecf6aabf51919499293e13..843fbeeb8897cb90d36cce8a5f09b256a20d5b2e 100644 (file)
@@ -70,6 +70,9 @@ config USES_UBIFS
 config LOW_MEMORY_FOOTPRINT
        bool
 
+config SMALL_FLASH
+       bool
+
 config NOMMU
        bool