X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/08faa98372f084b2eef9c0bb982da6c7147a5cd6..0201c4a9a8b2ec9e4037fbbb7529f3e7206a5a84:/rules.mk diff --git a/rules.mk b/rules.mk index a0ceca8c2..6684c93c1 100644 --- a/rules.mk +++ b/rules.mk @@ -220,7 +220,9 @@ else endif endif RSTRIP:= \ - export CROSS="$(TARGET_CROSS)" $(if $(CONFIG_KERNEL_KALLSYMS),NO_RENAME=1); \ + export CROSS="$(TARGET_CROSS)" \ + $(if $(CONFIG_KERNEL_KALLSYMS),NO_RENAME=1) \ + $(if $(CONFIG_KERNEL_PROFILING),KEEP_SYMBOLS=1); \ NM="$(TARGET_CROSS)nm" \ STRIP="$(STRIP)" \ STRIP_KMOD="$(SCRIPT_DIR)/strip-kmod.sh" \