alarm/kodi-rpi: add new header dep in prep of 19.1

This commit is contained in:
graysky 2021-04-29 05:46:07 -04:00
parent 8f07bbce1d
commit 3d2415ac72

View file

@ -108,12 +108,14 @@ build() {
# the build system expects to find /usr/include/drm/drm_fourcc.h however we provide this # the build system expects to find /usr/include/drm/drm_fourcc.h however we provide this
# in /usr/lib/modules/x.y.z-1-ARCH/build/include/uapi/drm/drm_fourcc.h # in /usr/lib/modules/x.y.z-1-ARCH/build/include/uapi/drm/drm_fourcc.h
# and with the release of 19.1, videodev2.h is required
# #
# credit to Kevin for the following hack: # credit to Kevin for the following hack:
_kernel_release="$(pacman -Q linux-raspberrypi4-headers | grep -Eo "[^\ ]+$")-ARCH" _kernel_release="$(pacman -Q linux-raspberrypi4-headers | grep -Eo "[^\ ]+$")-ARCH"
mkdir -p "$srcdir/uapi/drm" mkdir -p "$srcdir/uapi/drm" "$srcdir/uapi/linux"
ln -s /usr/lib/modules/$_kernel_release/build/include/uapi/drm/drm_fourcc.h "$srcdir/uapi/drm" ln -s /usr/lib/modules/"$_kernel_release"/build/include/uapi/drm/drm_fourcc.h "$srcdir/uapi/drm"
ln -s /usr/lib/modules/"$_kernel_release"/build/include/uapi/linux/videodev2.h "$srcdir/uapi/linux"
export CPPFLAGS+=" -I$srcdir/uapi" export CPPFLAGS+=" -I$srcdir/uapi"
# -march= defined in /etc/makepkg.conf will override the value for -mcpu we # -march= defined in /etc/makepkg.conf will override the value for -mcpu we
@ -204,7 +206,7 @@ package_kodi-rpi() {
# setup video drivers for kodi-gbm # setup video drivers for kodi-gbm
install -Dm0644 "$srcdir/kodi.config.txt" "$pkgdir/boot/kodi.config.txt" install -Dm0644 "$srcdir/kodi.config.txt" "$pkgdir/boot/kodi.config.txt"
# rpi4 wants 512 MB of memory # rpi4 wants 512 MB of memory
sed -i 's/@@@/512/' "$pkgdir/boot/kodi.config.txt" sed -i 's/@@@/512/' "$pkgdir/boot/kodi.config.txt"