mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-31 08:25:29 +00:00
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@gmail.com> Link: https://github.com/openwrt/openwrt/pull/15702 Signed-off-by: Robert Marko <robimarko@gmail.com>
This commit is contained in:
parent
c4a9265160
commit
844701f1c0
@ -53,7 +53,9 @@ KERNEL_MAKE := \
|
|||||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||||
ARCH=$(BPF_KARCH) \
|
ARCH=$(BPF_KARCH) \
|
||||||
CROSS_COMPILE=$(BPF_ARCH)-linux- \
|
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)" \
|
HOSTCC="$(HOSTCC)" \
|
||||||
HOSTCXX="$(HOSTCXX)" \
|
HOSTCXX="$(HOSTCXX)" \
|
||||||
KBUILD_HOSTLDLIBS="-L$(STAGING_DIR_HOST)/lib" \
|
KBUILD_HOSTLDLIBS="-L$(STAGING_DIR_HOST)/lib" \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user