mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
lirc: fix cross compilation
Make sure lirc uses kernel headers from target, not the build host, when generating input_map.inc.
This commit is contained in:
parent
7305d58ddb
commit
f63efba4e9
@ -37,6 +37,12 @@ PKG_CONFIGURE_OPTS_TARGET="ac_cv_func_forkpty=no \
|
|||||||
--with-gnu-ld \
|
--with-gnu-ld \
|
||||||
--without-x"
|
--without-x"
|
||||||
|
|
||||||
|
pre_configure_target() {
|
||||||
|
# patch lirc-make-devinput to use target kernel include
|
||||||
|
sed -e "s|/usr/include/linux/|${SYSROOT_PREFIX}/usr/include/linux/|g" \
|
||||||
|
-i ${ROOT}/${PKG_BUILD}/tools/lirc-make-devinput
|
||||||
|
}
|
||||||
|
|
||||||
post_makeinstall_target() {
|
post_makeinstall_target() {
|
||||||
rm -rf $INSTALL/usr/lib/systemd
|
rm -rf $INSTALL/usr/lib/systemd
|
||||||
rm -rf $INSTALL/lib
|
rm -rf $INSTALL/lib
|
||||||
|
Loading…
x
Reference in New Issue
Block a user