Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add rkmpp support #160

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
25 changes: 25 additions & 0 deletions docker-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,29 @@ prepare_extra_common() {
popd
}

# Prepare extra headers, libs and drivers for arm-linux-gnu
prepare_extra_arm() {
# RKMPP
tandy-1000 marked this conversation as resolved.
Show resolved Hide resolved
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
Expand Down Expand Up @@ -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"
Expand All @@ -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"
Expand Down