Skip to content
Permalink
Browse files

config/functions: build kernel with host pkg-config settings

Signed-off-by: Matthias Reichl <hias@horus.com>
  • Loading branch information...
HiassofT authored and adamg88 committed Apr 3, 2019
1 parent c67dce6 commit 0c09a18780e36ae1e4f91f59f8e4ba36b8453007
Showing with 13 additions and 9 deletions.
  1. +13 −9 config/functions
@@ -976,15 +976,19 @@ kernel_config_path() {
}

kernel_make() {
LDFLAGS="" make CROSS_COMPILE=$TARGET_KERNEL_PREFIX \
ARCH="$TARGET_KERNEL_ARCH" \
HOSTCC="$TOOLCHAIN/bin/host-gcc" \
HOSTCXX="$TOOLCHAIN/bin/host-g++" \
HOSTCFLAGS="$HOST_CFLAGS" \
HOSTLDFLAGS="$HOST_LDFLAGS" \
HOSTCXXFLAGS="$HOST_CXXFLAGS" \
DEPMOD="$TOOLCHAIN/bin/depmod" \
"$@"
(
setup_pkg_config_host

LDFLAGS="" make CROSS_COMPILE=$TARGET_KERNEL_PREFIX \
ARCH="$TARGET_KERNEL_ARCH" \
HOSTCC="$TOOLCHAIN/bin/host-gcc" \
HOSTCXX="$TOOLCHAIN/bin/host-g++" \
HOSTCFLAGS="$HOST_CFLAGS" \
HOSTLDFLAGS="$HOST_LDFLAGS" \
HOSTCXXFLAGS="$HOST_CXXFLAGS" \
DEPMOD="$TOOLCHAIN/bin/depmod" \
"$@"
)
}

# get kernel module dir

0 comments on commit 0c09a18

Please sign in to comment.
You can’t perform that action at this time.