mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-27 04:36:40 +00:00
config/functions: build kernel with host pkg-config settings
Signed-off-by: Matthias Reichl <hias@horus.com>
This commit is contained in:
parent
142f59ab2c
commit
fdc31f7992
@ -989,6 +989,9 @@ kernel_config_path() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
kernel_make() {
|
kernel_make() {
|
||||||
|
(
|
||||||
|
setup_pkg_config_host
|
||||||
|
|
||||||
LDFLAGS="" make CROSS_COMPILE=$TARGET_KERNEL_PREFIX \
|
LDFLAGS="" make CROSS_COMPILE=$TARGET_KERNEL_PREFIX \
|
||||||
ARCH="$TARGET_KERNEL_ARCH" \
|
ARCH="$TARGET_KERNEL_ARCH" \
|
||||||
HOSTCC="$TOOLCHAIN/bin/host-gcc" \
|
HOSTCC="$TOOLCHAIN/bin/host-gcc" \
|
||||||
@ -998,6 +1001,7 @@ kernel_make() {
|
|||||||
HOSTCXXFLAGS="$HOST_CXXFLAGS" \
|
HOSTCXXFLAGS="$HOST_CXXFLAGS" \
|
||||||
DEPMOD="$TOOLCHAIN/bin/depmod" \
|
DEPMOD="$TOOLCHAIN/bin/depmod" \
|
||||||
"$@"
|
"$@"
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
# get kernel module dir
|
# get kernel module dir
|
||||||
|
Loading…
x
Reference in New Issue
Block a user