mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-10-29 01:22:25 +00:00
47 lines
1.5 KiB
Diff
47 lines
1.5 KiB
Diff
From 6923e03f687b00c0394d34194364b56d04a79d8f Mon Sep 17 00:00:00 2001
|
|
From: Felix Fietkau <nbd@nbd.name>
|
|
Date: Wed, 17 Feb 2021 13:49:14 +0100
|
|
Subject: [PATCH 09/22] build: fix build with CONFIG_STRIP_KERNEL_EXPORTS
|
|
|
|
Only use symtab.h on the final kernel link
|
|
|
|
Signed-off-by: Felix Fietkau <nbd@nbd.name>
|
|
---
|
|
include/kernel-defaults.mk | 6 +++---
|
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/include/kernel-defaults.mk b/include/kernel-defaults.mk
|
|
index b069c1e671..93eed54ae1 100644
|
|
--- a/include/kernel-defaults.mk
|
|
+++ b/include/kernel-defaults.mk
|
|
@@ -3,7 +3,7 @@
|
|
# Copyright (C) 2006-2020 OpenWrt.org
|
|
|
|
ifdef CONFIG_STRIP_KERNEL_EXPORTS
|
|
- KERNEL_MAKEOPTS += \
|
|
+ KERNEL_MAKEOPTS_IMAGE += \
|
|
EXTRA_LDSFLAGS="-I$(KERNEL_BUILD_DIR) -include symtab.h"
|
|
endif
|
|
|
|
@@ -137,7 +137,7 @@ endef
|
|
|
|
define Kernel/CompileImage/Default
|
|
rm -f $(TARGET_DIR)/init
|
|
- +$(KERNEL_MAKE) $(if $(KERNELNAME),$(KERNELNAME),all)
|
|
+ +$(KERNEL_MAKE) $(KERNEL_MAKEOPTS_IMAGE) $(if $(KERNELNAME),$(KERNELNAME),all)
|
|
$(call Kernel/CopyImage)
|
|
endef
|
|
|
|
@@ -147,7 +147,7 @@ define Kernel/CompileImage/Initramfs
|
|
$(CP) $(GENERIC_PLATFORM_DIR)/other-files/init $(TARGET_DIR)/init
|
|
$(if $(SOURCE_DATE_EPOCH),touch -hcd "@$(SOURCE_DATE_EPOCH)" $(TARGET_DIR)/init)
|
|
rm -rf $(KERNEL_BUILD_DIR)/linux-$(LINUX_VERSION)/usr/initramfs_data.cpio*
|
|
- +$(KERNEL_MAKE) $(if $(KERNELNAME),$(KERNELNAME),all)
|
|
+ +$(KERNEL_MAKE) $(KERNEL_MAKEOPTS_IMAGE) $(if $(KERNELNAME),$(KERNELNAME),all)
|
|
$(call Kernel/CopyImage,-initramfs)
|
|
endef
|
|
else
|
|
--
|
|
2.25.1
|
|
|