diff --git a/debian/rules b/debian/rules index daef3b0c00e..6f99c4d8ecf 100755 --- a/debian/rules +++ b/debian/rules @@ -44,6 +44,7 @@ CONFIG := --prefix=${TARGET_DIR} \ CONFIG_ARM_COMMON := --toolchain=hardened \ --enable-cross-compile \ + --enable-rkmpp \ CONFIG_ARM := ${CONFIG_ARM_COMMON} \ --arch=armhf \ diff --git a/docker-build.sh b/docker-build.sh index 0452efbb6e8..b4161c44245 100755 --- a/docker-build.sh +++ b/docker-build.sh @@ -133,6 +133,29 @@ prepare_extra_common() { popd } +# Prepare extra headers, libs and drivers for arm-linux-gnu +prepare_extra_arm() { + # RKMPP + pushd ${SOURCE_DIR} + git clone https://github.com/rockchip-linux/mpp + pushd mpp + mkdir build_mpp + pushd build_mpp + cmake \ + ${CMAKE_TOOLCHAIN_OPT} \ + -DCMAKE_INSTALL_PREFIX=${TARGET_DIR} \ + -DCMAKE_BUILD_TYPE=Release \ + -DBUILD_SHARED_LIBS=ON \ + -DBUILD_TEST=OFF \ + -DHAVE_DRM=ON \ + .. + make -j$(nproc) && make install && make install DESTDIR=${SOURCE_DIR}/rkmpp + echo "rkmpp${TARGET_DIR}/lib/librockchip* usr/lib/jellyfin-ffmpeg/lib" >> ${DPKG_INSTALL_LIST} + popd + popd + popd +} + # Prepare extra headers, libs and drivers for x86_64-linux-gnu prepare_extra_amd64() { # SVT-AV1 @@ -568,6 +591,7 @@ case ${ARCH} in ln -s /usr/bin/arm-linux-gnueabihf-gcc-ar-${GCC_VER} /usr/bin/arm-linux-gnueabihf-gcc-ar ln -s /usr/bin/arm-linux-gnueabihf-g++-${GCC_VER} /usr/bin/arm-linux-gnueabihf-g++ prepare_extra_common + prepare_extra_arm CONFIG_SITE="/etc/dpkg-cross/cross-config.${ARCH}" DEP_ARCH_OPT="--host-arch armhf" BUILD_ARCH_OPT="-aarmhf" @@ -578,6 +602,7 @@ case ${ARCH} in ln -s /usr/bin/aarch64-linux-gnu-gcc-ar-${GCC_VER} /usr/bin/aarch64-linux-gnu-gcc-ar ln -s /usr/bin/aarch64-linux-gnu-g++-${GCC_VER} /usr/bin/aarch64-linux-gnu-g++ prepare_extra_common + prepare_extra_arm CONFIG_SITE="/etc/dpkg-cross/cross-config.${ARCH}" DEP_ARCH_OPT="--host-arch arm64" BUILD_ARCH_OPT="-aarm64"