aboutsummaryrefslogtreecommitdiffstats
path: root/config/Config-kernel.in
diff options
context:
space:
mode:
authorAlex Maclean <monkeh@monkeh.net>2018-07-09 18:09:05 +0100
committerMathias Kresin <dev@kresin.me>2018-07-12 18:15:33 +0200
commit11d6547455e848efb4fac0b983a07b11be5caf25 (patch)
tree08ede3d8b5518b22a361a8e7f46806b383361349 /config/Config-kernel.in
parentcf7154db07c0b8746be290c9e11dcab3c91d237e (diff)
downloadupstream-11d6547455e848efb4fac0b983a07b11be5caf25.tar.gz
upstream-11d6547455e848efb4fac0b983a07b11be5caf25.tar.bz2
upstream-11d6547455e848efb4fac0b983a07b11be5caf25.zip
config: extend small_flash feature
Extend the small_flash feature to disable swap, core dumps, and kernel debug info, and change the squashfs block size to 1024KiB. Also change squashfs fragment cache to 2 for small_flash to ease memory usage. Signed-off-by: Alex Maclean <monkeh@monkeh.net>
Diffstat (limited to 'config/Config-kernel.in')
-rw-r--r--config/Config-kernel.in11
1 files changed, 8 insertions, 3 deletions
diff --git a/config/Config-kernel.in b/config/Config-kernel.in
index 58f7d60094..f38cc792dd 100644
--- a/config/Config-kernel.in
+++ b/config/Config-kernel.in
@@ -31,7 +31,7 @@ config KERNEL_CRASHLOG
config KERNEL_SWAP
bool "Support for paging of anonymous memory (swap)"
- default y
+ default y if !SMALL_FLASH
config KERNEL_DEBUG_FS
bool "Compile the kernel with debug filesystem enabled"
@@ -133,7 +133,7 @@ config KERNEL_DEBUG_KERNEL
config KERNEL_DEBUG_INFO
bool "Compile the kernel with debug information"
- default y
+ default y if !SMALL_FLASH
select KERNEL_DEBUG_KERNEL
help
This will compile your kernel and modules with debug information.
@@ -226,7 +226,7 @@ config KERNEL_COREDUMP
config KERNEL_ELF_CORE
bool "Enable process core dump support"
select KERNEL_COREDUMP
- default y
+ default y if !SMALL_FLASH
config KERNEL_PROVE_LOCKING
bool "Enable kernel lock checking"
@@ -807,6 +807,11 @@ config KERNEL_DEVKMEM
/dev/kmem device is rarely used, but can be used for certain
kind of kernel debugging operations.
+config KERNEL_SQUASHFS_FRAGMENT_CACHE_SIZE
+ int "Number of squashfs fragments cached"
+ default 2 if (SMALL_FLASH && !LOW_MEMORY_FOOTPRINT)
+ default 3
+
#
# compile optimiziation setting
#