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

Signed-off-by: Matthias Reichl <hias@horus.com>
This commit is contained in:
Matthias Reichl 2019-04-03 09:56:21 +02:00
parent 628d20b940
commit 3bb574cbcc

View File

@ -974,6 +974,9 @@ kernel_config_path() {
}
kernel_make() {
(
setup_pkg_config_host
LDFLAGS="" make CROSS_COMPILE=$TARGET_KERNEL_PREFIX \
ARCH="$TARGET_KERNEL_ARCH" \
HOSTCC="$TOOLCHAIN/bin/host-gcc" \
@ -983,6 +986,7 @@ kernel_make() {
HOSTCXXFLAGS="$HOST_CXXFLAGS" \
DEPMOD="$TOOLCHAIN/bin/depmod" \
"$@"
)
}
# get kernel module dir