mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +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
628d20b940
commit
3bb574cbcc
@ -974,15 +974,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
|
||||
|
Loading…
x
Reference in New Issue
Block a user