mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-27 12:46:53 +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,15 +989,19 @@ kernel_config_path() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
kernel_make() {
|
kernel_make() {
|
||||||
LDFLAGS="" make CROSS_COMPILE=$TARGET_KERNEL_PREFIX \
|
(
|
||||||
ARCH="$TARGET_KERNEL_ARCH" \
|
setup_pkg_config_host
|
||||||
HOSTCC="$TOOLCHAIN/bin/host-gcc" \
|
|
||||||
HOSTCXX="$TOOLCHAIN/bin/host-g++" \
|
LDFLAGS="" make CROSS_COMPILE=$TARGET_KERNEL_PREFIX \
|
||||||
HOSTCFLAGS="$HOST_CFLAGS" \
|
ARCH="$TARGET_KERNEL_ARCH" \
|
||||||
HOSTLDFLAGS="$HOST_LDFLAGS" \
|
HOSTCC="$TOOLCHAIN/bin/host-gcc" \
|
||||||
HOSTCXXFLAGS="$HOST_CXXFLAGS" \
|
HOSTCXX="$TOOLCHAIN/bin/host-g++" \
|
||||||
DEPMOD="$TOOLCHAIN/bin/depmod" \
|
HOSTCFLAGS="$HOST_CFLAGS" \
|
||||||
"$@"
|
HOSTLDFLAGS="$HOST_LDFLAGS" \
|
||||||
|
HOSTCXXFLAGS="$HOST_CXXFLAGS" \
|
||||||
|
DEPMOD="$TOOLCHAIN/bin/depmod" \
|
||||||
|
"$@"
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
# get kernel module dir
|
# get kernel module dir
|
||||||
|
Loading…
x
Reference in New Issue
Block a user