diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-10-07 08:51:59 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-10-07 08:51:59 -0400 |
| commit | 74da38631a874b5a3ffc4ace6f813a975c55130b (patch) | |
| tree | 5570e7df2288333c4285a9e0f97df928a7da7353 /scripts | |
| parent | bfe01a5ba2490f299e1d2d5508cbbbadd897bbe9 (diff) | |
| parent | 3cf6b0151ba584714f6eafb99bc66d7326efeed7 (diff) | |
Merge tag 'tiny/for-3.18' of git://git.kernel.org/pub/scm/linux/kernel/git/josh/linux
Pull "tinification" patches from Josh Triplett.
Work on making smaller kernels.
* tag 'tiny/for-3.18' of git://git.kernel.org/pub/scm/linux/kernel/git/josh/linux:
bloat-o-meter: Ignore syscall aliases SyS_ and compat_SyS_
mm: Support compiling out madvise and fadvise
x86: Support compiling out human-friendly processor feature names
x86: Drop support for /proc files when !CONFIG_PROC_FS
x86, boot: Don't compile early_serial_console.c when !CONFIG_EARLY_PRINTK
x86, boot: Don't compile aslr.c when !CONFIG_RANDOMIZE_BASE
x86, boot: Use the usual -y -n mechanism for objects in vmlinux
x86: Add "make tinyconfig" to configure the tiniest possible kernel
x86, platform, kconfig: move kvmconfig functionality to a helper
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/bloat-o-meter | 2 | ||||
| -rw-r--r-- | scripts/kconfig/Makefile | 19 |
2 files changed, 21 insertions, 0 deletions
diff --git a/scripts/bloat-o-meter b/scripts/bloat-o-meter index 549d0ab8c662..23e78dcd12bf 100755 --- a/scripts/bloat-o-meter +++ b/scripts/bloat-o-meter | |||
| @@ -20,6 +20,8 @@ def getsizes(file): | |||
| 20 | if type in "tTdDbBrR": | 20 | if type in "tTdDbBrR": |
| 21 | # strip generated symbols | 21 | # strip generated symbols |
| 22 | if name.startswith("__mod_"): continue | 22 | if name.startswith("__mod_"): continue |
| 23 | if name.startswith("SyS_"): continue | ||
| 24 | if name.startswith("compat_SyS_"): continue | ||
| 23 | if name == "linux_banner": continue | 25 | if name == "linux_banner": continue |
| 24 | # statics and some other optimizations adds random .NUMBER | 26 | # statics and some other optimizations adds random .NUMBER |
| 25 | name = re.sub(r'\.[0-9]+', '', name) | 27 | name = re.sub(r'\.[0-9]+', '', name) |
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile index 9c4d2412fb72..ebf40f6edb4d 100644 --- a/scripts/kconfig/Makefile +++ b/scripts/kconfig/Makefile | |||
| @@ -104,6 +104,23 @@ endif | |||
| 104 | %_defconfig: $(obj)/conf | 104 | %_defconfig: $(obj)/conf |
| 105 | $(Q)$< --defconfig=arch/$(SRCARCH)/configs/$@ $(Kconfig) | 105 | $(Q)$< --defconfig=arch/$(SRCARCH)/configs/$@ $(Kconfig) |
| 106 | 106 | ||
| 107 | configfiles=$(wildcard $(srctree)/kernel/configs/$(1).config $(srctree)/arch/$(SRCARCH)/configs/$(1).config) | ||
| 108 | |||
| 109 | define mergeconfig | ||
| 110 | $(if $(wildcard $(objtree)/.config),, $(error You need an existing .config for this target)) | ||
| 111 | $(if $(call configfiles,$(1)),, $(error No configuration exists for this target on this architecture)) | ||
| 112 | $(Q)$(CONFIG_SHELL) $(srctree)/scripts/kconfig/merge_config.sh -m -O $(objtree) $(objtree)/.config $(call configfiles,$(1)) | ||
| 113 | $(Q)yes "" | $(MAKE) -f $(srctree)/Makefile oldconfig | ||
| 114 | endef | ||
| 115 | |||
| 116 | PHONY += kvmconfig | ||
| 117 | kvmconfig: | ||
| 118 | $(call mergeconfig,kvm_guest) | ||
| 119 | |||
| 120 | PHONY += tinyconfig | ||
| 121 | tinyconfig: allnoconfig | ||
| 122 | $(call mergeconfig,tiny) | ||
| 123 | |||
| 107 | # Help text used by make help | 124 | # Help text used by make help |
| 108 | help: | 125 | help: |
| 109 | @echo ' config - Update current config utilising a line-oriented program' | 126 | @echo ' config - Update current config utilising a line-oriented program' |
| @@ -124,6 +141,8 @@ help: | |||
| 124 | @echo ' randconfig - New config with random answer to all options' | 141 | @echo ' randconfig - New config with random answer to all options' |
| 125 | @echo ' listnewconfig - List new options' | 142 | @echo ' listnewconfig - List new options' |
| 126 | @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' |
| 144 | @echo ' kvmconfig - Enable additional options for guest kernel support' | ||
| 145 | @echo ' tinyconfig - Configure the tiniest possible kernel' | ||
| 127 | 146 | ||
| 128 | # lxdialog stuff | 147 | # lxdialog stuff |
| 129 | check-lxdialog := $(srctree)/$(src)/lxdialog/check-lxdialog.sh | 148 | check-lxdialog := $(srctree)/$(src)/lxdialog/check-lxdialog.sh |
