Skip to content

Commit

Permalink
bpf-headers: fix llvm invocation
Browse files Browse the repository at this point in the history
- 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 <[email protected]>
Link: openwrt#15702
Signed-off-by: Robert Marko <[email protected]>
  • Loading branch information
rockdrilla authored and robimarko committed Sep 13, 2024
1 parent c4a9265 commit 844701f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion package/kernel/bpf-headers/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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" \
Expand Down

0 comments on commit 844701f

Please sign in to comment.