History

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.

Josh Triplett committed 12 years ago

Commit 0da1d4a1 parent 3aaefce3 files · +10 −0Browse files

Unified · Split

3 files
  1. arch/x86/configs/tiny.config +1 −0
  2. kernel/configs/tiny.config +4 −0
  3. scripts/kconfig/Makefile +5 −0
arch/x86/configs/tiny.config+1−0
@@ -0,0 +1 @@
1CONFIG_NOHIGHMEM=y
kernel/configs/tiny.config+4−0
@@ -0,0 +1,4 @@
1CONFIG_CC_OPTIMIZE_FOR_SIZE=y
2CONFIG_KERNEL_XZ=y
3CONFIG_OPTIMIZE_INLINING=y
4CONFIG_SLOB=y
scripts/kconfig/Makefile+5−0
@@ -117,6 +117,10 @@ PHONY += kvmconfig · 116 unmodified lines
117kvmconfig:117kvmconfig:
118 $(call mergeconfig,kvm_guest)118 $(call mergeconfig,kvm_guest)
119 119
120PHONY += tinyconfig
121tinyconfig: allnoconfig
122 $(call mergeconfig,tiny)
123
120# Help text used by make help124# Help text used by make help
121help:125help:
122 @echo ' config - Update current config utilising a line-oriented program'126 @echo ' config - Update current config utilising a line-oriented program'
@@ -138,6 +142,7 @@ help: · 15 unmodified lines
138 @echo ' listnewconfig - List new options'142 @echo ' listnewconfig - List new options'
139 @echo ' olddefconfig - Same as silentoldconfig but sets new symbols to their default value'143 @echo ' olddefconfig - Same as silentoldconfig but sets new symbols to their default value'
140 @echo ' kvmconfig - Enable additional options for guest kernel support'144 @echo ' kvmconfig - Enable additional options for guest kernel support'
145 @echo ' tinyconfig - Configure the tiniest possible kernel'
141 146
142# lxdialog stuff147# lxdialog stuff
143check-lxdialog := $(srctree)/$(src)/lxdialog/check-lxdialog.sh148check-lxdialog := $(srctree)/$(src)/lxdialog/check-lxdialog.sh

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t