mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Update install/update script
Added build scripts for building different releases (in cross-compile) Added new releases for rpi/imx6/wetek/x32/x64 Former-commit-id: 2025f1e3e8663d733b60a18944c6097da4ee371b
This commit is contained in:
43
bin/create_all_releases.sh
Normal file
43
bin/create_all_releases.sh
Normal file
@@ -0,0 +1,43 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Create the x64 build
|
||||
mkdir build-x64
|
||||
cd build-x64
|
||||
cmake -DENABLE_DISPMANX=OFF -DENABLE_X11=ON ..
|
||||
make -j 4
|
||||
cd ..
|
||||
|
||||
# Create the x32 build
|
||||
mkdir build-x32
|
||||
cd build-x32
|
||||
cmake -DIMPORT_PROTOC=../build-x64/protoc_export.cmake -DENABLE_DISPMANX=OFF -DENABLE_X11=ON ..
|
||||
make -j 4
|
||||
cd ..
|
||||
|
||||
# Create the RPI build
|
||||
mkdir build-rpi
|
||||
cd build-rpi
|
||||
cmake -DCMAKE_TOOLCHAIN_FILE="../Toolchain-rpi.cmake" -DIMPORT_PROTOC=../build-x64/protoc_export.cmake ..
|
||||
make -j 4
|
||||
cd ..
|
||||
|
||||
# Create the WETEK build
|
||||
mkdir build-wetek
|
||||
cd build-wetek
|
||||
cmake -DCMAKE_TOOLCHAIN_FILE="../Toolchain-rpi.cmake" -DIMPORT_PROTOC=../build-x64/protoc_export.cmake -DENABLE_DISPMANX=OFF -DENABLE_FB=ON -DENABLE_AMLOGIC=ON ..
|
||||
make -j 4
|
||||
cd ..
|
||||
|
||||
# Create the IMX6 build
|
||||
mkdir build-imx6
|
||||
cd build-imx6
|
||||
cmake -DCMAKE_TOOLCHAIN_FILE="../Toolchain-imx6.cmake" -DIMPORT_PROTOC=../build-x64/protoc_export.cmake -DENABLE_DISPMANX=OFF -DENABLE_FB=ON ..
|
||||
make -j 4
|
||||
cd ..
|
||||
|
||||
bin/create_release.sh . x64
|
||||
bin/create_release.sh . x32
|
||||
bin/create_release.sh . rpi
|
||||
bin/create_release.sh . wetek
|
||||
bin/create_release.sh . imx6
|
||||
|
27
bin/create_oe_depedencies.sh
Normal file
27
bin/create_oe_depedencies.sh
Normal file
@@ -0,0 +1,27 @@
|
||||
#!/bin/sh
|
||||
|
||||
RPI_ROOTFS=/home/tvdzwan/hummingboard/rootfs
|
||||
IMX6_ROOTFS=/home/tvdzwan/hummingboard/rootfs
|
||||
outfile=hyperion.deps.openelec-imx6.tar.gz
|
||||
|
||||
tar --create --verbose --gzip --absolute-names --show-transformed-names --dereference \
|
||||
--file "$outfile" \
|
||||
"$IMX6_ROOTFS/usr/lib/arm-linux-gnueabihf/libaudio.so.2" \
|
||||
"$IMX6_ROOTFS/usr/lib/arm-linux-gnueabihf/libffi.so.6" \
|
||||
"$IMX6_ROOTFS/usr/lib/arm-linux-gnueabihf/libICE.so.6" \
|
||||
"$IMX6_ROOTFS/lib/arm-linux-gnueabihf/libpcre.so.3" \
|
||||
"$IMX6_ROOTFS/usr/lib/arm-linux-gnueabihf/libpng12.so.0" \
|
||||
"$IMX6_ROOTFS/usr/lib/arm-linux-gnueabihf/libQtCore.so.4" \
|
||||
"$IMX6_ROOTFS/usr/lib/arm-linux-gnueabihf/libQtGui.so.4" \
|
||||
"$IMX6_ROOTFS/usr/lib/arm-linux-gnueabihf/libQtNetwork.so.4" \
|
||||
"$IMX6_ROOTFS/usr/lib/arm-linux-gnueabihf/libSM.so.6" \
|
||||
"$IMX6_ROOTFS/usr/lib/arm-linux-gnueabihf/libX11.so.6" \
|
||||
"$IMX6_ROOTFS/usr/lib/arm-linux-gnueabihf/libXau.so.6" \
|
||||
"$IMX6_ROOTFS/usr/lib/arm-linux-gnueabihf/libxcb.so.1" \
|
||||
"$IMX6_ROOTFS/usr/lib/arm-linux-gnueabihf/libXdmcp.so.6" \
|
||||
"$IMX6_ROOTFS/usr/lib/arm-linux-gnueabihf/libXext.so.6" \
|
||||
"$IMX6_ROOTFS/usr/lib/arm-linux-gnueabihf/libXrender.so.1" \
|
||||
"$IMX6_ROOTFS/usr/lib/arm-linux-gnueabihf/libXt.so.6" \
|
||||
"./hyperiond.sh" \
|
||||
"./hyperion-remote.sh"
|
||||
|
35
bin/create_release.sh
Normal file
35
bin/create_release.sh
Normal file
@@ -0,0 +1,35 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ "$#" -ne 2 ] || ! [ -d "$1" ]; then
|
||||
echo "Usage: $0 <REPO-DIR> <BUILD-ID>" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
repodir="$1"
|
||||
buildid="$2"
|
||||
builddir=$repodir/build-$buildid
|
||||
echo build directory = $builddir
|
||||
echo repository root dirrectory = $repodir
|
||||
if ! [ -d "$builddir" ]; then
|
||||
echo "Could not find build director"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
outfile="$repodir/deploy/hyperion_$buildid.tar.gz"
|
||||
echo create $outfile
|
||||
|
||||
tar --create --verbose --gzip --absolute-names --show-transformed-names --ignore-failed-read\
|
||||
--file "$outfile" \
|
||||
--transform "s:$builddir/bin/:hyperion/bin/:" \
|
||||
--transform "s:$repodir/effects/:hyperion/effects/:" \
|
||||
--transform "s:$repodir/config/:hyperion/config/:" \
|
||||
--transform "s:$repodir/bin/hyperion.init.sh:hyperion/init.d/hyperion.init.sh:" \
|
||||
--transform "s://:/:g" \
|
||||
"$builddir/bin/hyperiond" \
|
||||
"$builddir/bin/hyperion-remote" \
|
||||
"$builddir/bin/hyperion-v4l2" \
|
||||
"$builddir/bin/dispmanx2png" \
|
||||
"$repodir/effects/"* \
|
||||
"$repodir/bin/hyperion.init.sh" \
|
||||
"$repodir/config/hyperion.config.json"
|
||||
|
Reference in New Issue
Block a user