[openwrt/openwrt] bpf-headers: fix llvm invocation

LEDE Commits lede-commits at lists.infradead.org
Fri Sep 13 03:20:28 PDT 2024


robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/844701f1c045bf7d9bd06014a4b0cf9dd3d6a29d

commit 844701f1c045bf7d9bd06014a4b0cf9dd3d6a29d
Author: Konstantin Demin <rockdrilla at gmail.com>
AuthorDate: Thu Jun 13 20:56:06 2024 +0300

    bpf-headers: fix llvm invocation
    
    - specify CC target explicitly
    - define KBUILD_SYM32=n to select "native" build format (if building with 64-bit arch)
    - rewrap lines (for good)
    
    Signed-off-by: Konstantin Demin <rockdrilla at gmail.com>
    Link: https://github.com/openwrt/openwrt/pull/15702
    Signed-off-by: Robert Marko <robimarko at gmail.com>
---
 package/kernel/bpf-headers/Makefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/package/kernel/bpf-headers/Makefile b/package/kernel/bpf-headers/Makefile
index 5efd2e1cf0..e75da738e6 100644
--- a/package/kernel/bpf-headers/Makefile
+++ b/package/kernel/bpf-headers/Makefile
@@ -53,7 +53,9 @@ KERNEL_MAKE := \
 	$(MAKE) -C $(PKG_BUILD_DIR) \
 		ARCH=$(BPF_KARCH) \
 		CROSS_COMPILE=$(BPF_ARCH)-linux- \
-		LLVM=1 CC="$(CLANG)" LD="$(TARGET_CROSS)ld" \
+		LLVM=1 KBUILD_SYM32=n \
+		CC="$(CLANG) --target=$(BPF_TARGET)" \
+		LD="$(TARGET_CROSS)ld" \
 		HOSTCC="$(HOSTCC)" \
 		HOSTCXX="$(HOSTCXX)" \
 		KBUILD_HOSTLDLIBS="-L$(STAGING_DIR_HOST)/lib" \




More information about the lede-commits mailing list