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 4c191f0..b05ff23 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 34a7c22..ea6462c 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 3dc8655..843fbee 100644 (file)
@@ -70,6 +70,9 @@ config USES_UBIFS
 config LOW_MEMORY_FOOTPRINT
        bool
 
+config SMALL_FLASH
+       bool
+
 config NOMMU
        bool