1234567891011121314151617181920212223242526272829 |
- From fd66884da2f96d2a7ea73f58b1b86251b959a913 Mon Sep 17 00:00:00 2001
- From: Felix Fietkau <[email protected]>
- Date: Fri, 7 Jul 2017 16:56:19 +0200
- Subject: kernel: strip unnecessary symbol table information from kernel modules
- reduces default squashfs size on ar71xx by about 4k
- lede-commit: 058d331a39077f159ca8922f1f422a1346d6aa67
- Signed-off-by: Felix Fietkau <[email protected]>
- ---
- Makefile | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
- diff --git a/Makefile b/Makefile
- index a40b373eba3a..984eb5907d00 100644
- --- a/Makefile
- +++ b/Makefile
- @@ -407,7 +407,7 @@ KBUILD_CFLAGS_KERNEL :=
- KBUILD_AFLAGS := -D__ASSEMBLY__ $(call cc-option,-fno-PIE)
- KBUILD_AFLAGS_MODULE := -DMODULE
- KBUILD_CFLAGS_MODULE := -DMODULE
- -KBUILD_LDFLAGS_MODULE := -T $(srctree)/scripts/module-common.lds
- +KBUILD_LDFLAGS_MODULE = -T $(srctree)/scripts/module-common.lds $(if $(CONFIG_PROFILING),,-s)
-
- # Read KERNELRELEASE from include/config/kernel.release (if it exists)
- KERNELRELEASE = $(shell cat include/config/kernel.release 2> /dev/null)
- --
- 2.11.0
|