x86: Add "make tinyconfig" to configure the tiniest possible kernel
authorJosh Triplett <josh@joshtriplett.org>
Fri, 8 Aug 2014 23:25:47 +0000 (16:25 -0700)
committerJosh Triplett <josh@joshtriplett.org>
Fri, 8 Aug 2014 23:30:24 +0000 (16:30 -0700)
commit0da1d4a0b9516adb2acc4841e9f6da6618f47f4e
tree7542ef60dd821bf6aba92a5e747b7e0980f25504
parent3aaefce10351fecab348f5e06857f44cafc61a62
x86: Add "make tinyconfig" to configure the tiniest possible kernel

Since commit 5d2acfc7b974bbd3858b4dd3f2cdc6362dd8843a ("kconfig: make
allnoconfig disable options behind EMBEDDED and EXPERT") in 3.15-rc1,
"make allnoconfig" disables every possible config option.

However, a few configuration options (CC_OPTIMIZE_FOR_SIZE,
OPTIMIZE_INLINING) produce a smaller kernel when turned on, and a few
choices exist (compression, highmem, allocator) for which a non-default
option produces a smaller kernel.

Add a "tinyconfig" option, which starts from allnoconfig and then sets
these options to configure the tiniest possible kernel.  This provides a
better baseline for embedded systems or efforts to reduce kernel size.

Signed-off-by: Josh Triplett <josh@joshtriplett.org>
arch/x86/configs/tiny.config [new file with mode: 0644]
kernel/configs/tiny.config [new file with mode: 0644]
scripts/kconfig/Makefile