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 committed by MilhouseVH
parent 142f59ab2c
commit fdc31f7992

View File

@ -989,6 +989,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" \
@ -998,6 +1001,7 @@ kernel_make() {
HOSTCXXFLAGS="$HOST_CXXFLAGS" \
DEPMOD="$TOOLCHAIN/bin/depmod" \
"$@"
)
}
# get kernel module dir