Desktop-extras for Jessie-desktop
This commit is contained in:
parent
dd35dec17e
commit
7d09f4f6da
BIN
bin/sunxi-debs/Packages.gz
Normal file
BIN
bin/sunxi-debs/Packages.gz
Normal file
Binary file not shown.
BIN
bin/sunxi-debs/debhelper_9.20160115ubuntu2_all.deb
Normal file
BIN
bin/sunxi-debs/debhelper_9.20160115ubuntu2_all.deb
Normal file
Binary file not shown.
BIN
bin/sunxi-debs/dpkg-dev_1.18.4ubuntu1_all.deb
Normal file
BIN
bin/sunxi-debs/dpkg-dev_1.18.4ubuntu1_all.deb
Normal file
Binary file not shown.
BIN
bin/sunxi-debs/dpkg_1.18.4ubuntu1_armhf.deb
Normal file
BIN
bin/sunxi-debs/dpkg_1.18.4ubuntu1_armhf.deb
Normal file
Binary file not shown.
Binary file not shown.
BIN
bin/sunxi-debs/dselect_1.18.4ubuntu1_armhf.deb
Normal file
BIN
bin/sunxi-debs/dselect_1.18.4ubuntu1_armhf.deb
Normal file
Binary file not shown.
Binary file not shown.
BIN
bin/sunxi-debs/ffmpeg-dbg_2.8.6-1ubuntu1_armhf.deb
Normal file
BIN
bin/sunxi-debs/ffmpeg-dbg_2.8.6-1ubuntu1_armhf.deb
Normal file
Binary file not shown.
BIN
bin/sunxi-debs/ffmpeg-doc_2.8.6-1ubuntu1_all.deb
Normal file
BIN
bin/sunxi-debs/ffmpeg-doc_2.8.6-1ubuntu1_all.deb
Normal file
Binary file not shown.
BIN
bin/sunxi-debs/ffmpeg_2.8.6-1ubuntu1_armhf.deb
Normal file
BIN
bin/sunxi-debs/ffmpeg_2.8.6-1ubuntu1_armhf.deb
Normal file
Binary file not shown.
BIN
bin/sunxi-debs/fontconfig-config_2.11.1-0ubuntu8_all.deb
Normal file
BIN
bin/sunxi-debs/fontconfig-config_2.11.1-0ubuntu8_all.deb
Normal file
Binary file not shown.
BIN
bin/sunxi-debs/fontconfig-udeb_2.11.1-0ubuntu8_armhf.udeb
Normal file
BIN
bin/sunxi-debs/fontconfig-udeb_2.11.1-0ubuntu8_armhf.udeb
Normal file
Binary file not shown.
BIN
bin/sunxi-debs/fontconfig_2.11.1-0ubuntu8_armhf.deb
Normal file
BIN
bin/sunxi-debs/fontconfig_2.11.1-0ubuntu8_armhf.deb
Normal file
Binary file not shown.
BIN
bin/sunxi-debs/libav-tools_2.8.6-1ubuntu1_all.deb
Normal file
BIN
bin/sunxi-debs/libav-tools_2.8.6-1ubuntu1_all.deb
Normal file
Binary file not shown.
BIN
bin/sunxi-debs/libavcodec-dev_2.8.6-1ubuntu1_armhf.deb
Normal file
BIN
bin/sunxi-debs/libavcodec-dev_2.8.6-1ubuntu1_armhf.deb
Normal file
Binary file not shown.
BIN
bin/sunxi-debs/libavcodec-extra_2.8.6-1ubuntu1_all.deb
Normal file
BIN
bin/sunxi-debs/libavcodec-extra_2.8.6-1ubuntu1_all.deb
Normal file
Binary file not shown.
Binary file not shown.
BIN
bin/sunxi-debs/libavcodec-ffmpeg56_2.8.6-1ubuntu1_armhf.deb
Normal file
BIN
bin/sunxi-debs/libavcodec-ffmpeg56_2.8.6-1ubuntu1_armhf.deb
Normal file
Binary file not shown.
BIN
bin/sunxi-debs/libavdevice-dev_2.8.6-1ubuntu1_armhf.deb
Normal file
BIN
bin/sunxi-debs/libavdevice-dev_2.8.6-1ubuntu1_armhf.deb
Normal file
Binary file not shown.
BIN
bin/sunxi-debs/libavdevice-ffmpeg56_2.8.6-1ubuntu1_armhf.deb
Normal file
BIN
bin/sunxi-debs/libavdevice-ffmpeg56_2.8.6-1ubuntu1_armhf.deb
Normal file
Binary file not shown.
BIN
bin/sunxi-debs/libavfilter-dev_2.8.6-1ubuntu1_armhf.deb
Normal file
BIN
bin/sunxi-debs/libavfilter-dev_2.8.6-1ubuntu1_armhf.deb
Normal file
Binary file not shown.
BIN
bin/sunxi-debs/libavfilter-ffmpeg5_2.8.6-1ubuntu1_armhf.deb
Normal file
BIN
bin/sunxi-debs/libavfilter-ffmpeg5_2.8.6-1ubuntu1_armhf.deb
Normal file
Binary file not shown.
BIN
bin/sunxi-debs/libavformat-dev_2.8.6-1ubuntu1_armhf.deb
Normal file
BIN
bin/sunxi-debs/libavformat-dev_2.8.6-1ubuntu1_armhf.deb
Normal file
Binary file not shown.
BIN
bin/sunxi-debs/libavformat-ffmpeg56_2.8.6-1ubuntu1_armhf.deb
Normal file
BIN
bin/sunxi-debs/libavformat-ffmpeg56_2.8.6-1ubuntu1_armhf.deb
Normal file
Binary file not shown.
BIN
bin/sunxi-debs/libavresample-dev_2.8.6-1ubuntu1_armhf.deb
Normal file
BIN
bin/sunxi-debs/libavresample-dev_2.8.6-1ubuntu1_armhf.deb
Normal file
Binary file not shown.
BIN
bin/sunxi-debs/libavresample-ffmpeg2_2.8.6-1ubuntu1_armhf.deb
Normal file
BIN
bin/sunxi-debs/libavresample-ffmpeg2_2.8.6-1ubuntu1_armhf.deb
Normal file
Binary file not shown.
BIN
bin/sunxi-debs/libavutil-dev_2.8.6-1ubuntu1_armhf.deb
Normal file
BIN
bin/sunxi-debs/libavutil-dev_2.8.6-1ubuntu1_armhf.deb
Normal file
Binary file not shown.
BIN
bin/sunxi-debs/libavutil-ffmpeg54_2.8.6-1ubuntu1_armhf.deb
Normal file
BIN
bin/sunxi-debs/libavutil-ffmpeg54_2.8.6-1ubuntu1_armhf.deb
Normal file
Binary file not shown.
Binary file not shown.
BIN
bin/sunxi-debs/libdpkg-dev_1.18.4ubuntu1_armhf.deb
Normal file
BIN
bin/sunxi-debs/libdpkg-dev_1.18.4ubuntu1_armhf.deb
Normal file
Binary file not shown.
BIN
bin/sunxi-debs/libdpkg-perl_1.18.4ubuntu1_all.deb
Normal file
BIN
bin/sunxi-debs/libdpkg-perl_1.18.4ubuntu1_all.deb
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
bin/sunxi-debs/libfontconfig1-dbg_2.11.1-0ubuntu8_armhf.deb
Normal file
BIN
bin/sunxi-debs/libfontconfig1-dbg_2.11.1-0ubuntu8_armhf.deb
Normal file
Binary file not shown.
BIN
bin/sunxi-debs/libfontconfig1-dev_2.11.1-0ubuntu8_armhf.deb
Normal file
BIN
bin/sunxi-debs/libfontconfig1-dev_2.11.1-0ubuntu8_armhf.deb
Normal file
Binary file not shown.
BIN
bin/sunxi-debs/libfontconfig1_2.11.1-0ubuntu8_armhf.deb
Normal file
BIN
bin/sunxi-debs/libfontconfig1_2.11.1-0ubuntu8_armhf.deb
Normal file
Binary file not shown.
BIN
bin/sunxi-debs/libpostproc-dev_2.8.6-1ubuntu1_armhf.deb
Normal file
BIN
bin/sunxi-debs/libpostproc-dev_2.8.6-1ubuntu1_armhf.deb
Normal file
Binary file not shown.
BIN
bin/sunxi-debs/libpostproc-ffmpeg53_2.8.6-1ubuntu1_armhf.deb
Normal file
BIN
bin/sunxi-debs/libpostproc-ffmpeg53_2.8.6-1ubuntu1_armhf.deb
Normal file
Binary file not shown.
BIN
bin/sunxi-debs/libswresample-dev_2.8.6-1ubuntu1_armhf.deb
Normal file
BIN
bin/sunxi-debs/libswresample-dev_2.8.6-1ubuntu1_armhf.deb
Normal file
Binary file not shown.
BIN
bin/sunxi-debs/libswresample-ffmpeg1_2.8.6-1ubuntu1_armhf.deb
Normal file
BIN
bin/sunxi-debs/libswresample-ffmpeg1_2.8.6-1ubuntu1_armhf.deb
Normal file
Binary file not shown.
BIN
bin/sunxi-debs/libswscale-dev_2.8.6-1ubuntu1_armhf.deb
Normal file
BIN
bin/sunxi-debs/libswscale-dev_2.8.6-1ubuntu1_armhf.deb
Normal file
Binary file not shown.
BIN
bin/sunxi-debs/libswscale-ffmpeg3_2.8.6-1ubuntu1_armhf.deb
Normal file
BIN
bin/sunxi-debs/libswscale-ffmpeg3_2.8.6-1ubuntu1_armhf.deb
Normal file
Binary file not shown.
BIN
bin/sunxi-debs/libump-dbg_3.0-0sunxi1_armhf.deb
Normal file
BIN
bin/sunxi-debs/libump-dbg_3.0-0sunxi1_armhf.deb
Normal file
Binary file not shown.
BIN
bin/sunxi-debs/libump-dev_3.0-0sunxi1_armhf.deb
Normal file
BIN
bin/sunxi-debs/libump-dev_3.0-0sunxi1_armhf.deb
Normal file
Binary file not shown.
BIN
bin/sunxi-debs/libump_3.0-0sunxi1_armhf.deb
Normal file
BIN
bin/sunxi-debs/libump_3.0-0sunxi1_armhf.deb
Normal file
Binary file not shown.
BIN
bin/sunxi-debs/libvdpau-dev_1.1.1-3ubuntu1_armhf.deb
Normal file
BIN
bin/sunxi-debs/libvdpau-dev_1.1.1-3ubuntu1_armhf.deb
Normal file
Binary file not shown.
BIN
bin/sunxi-debs/libvdpau-doc_1.1.1-3ubuntu1_all.deb
Normal file
BIN
bin/sunxi-debs/libvdpau-doc_1.1.1-3ubuntu1_all.deb
Normal file
Binary file not shown.
Binary file not shown.
BIN
bin/sunxi-debs/libvdpau1-dbg_1.1.1-3ubuntu1_armhf.deb
Normal file
BIN
bin/sunxi-debs/libvdpau1-dbg_1.1.1-3ubuntu1_armhf.deb
Normal file
Binary file not shown.
BIN
bin/sunxi-debs/libvdpau1_1.1.1-3ubuntu1_armhf.deb
Normal file
BIN
bin/sunxi-debs/libvdpau1_1.1.1-3ubuntu1_armhf.deb
Normal file
Binary file not shown.
BIN
bin/sunxi-debs/libvlc-dev_2.2.2-4_armhf.deb
Normal file
BIN
bin/sunxi-debs/libvlc-dev_2.2.2-4_armhf.deb
Normal file
Binary file not shown.
BIN
bin/sunxi-debs/libvlc5_2.2.2-4_armhf.deb
Normal file
BIN
bin/sunxi-debs/libvlc5_2.2.2-4_armhf.deb
Normal file
Binary file not shown.
BIN
bin/sunxi-debs/libvlccore-dev_2.2.2-4_armhf.deb
Normal file
BIN
bin/sunxi-debs/libvlccore-dev_2.2.2-4_armhf.deb
Normal file
Binary file not shown.
BIN
bin/sunxi-debs/libvlccore8_2.2.2-4_armhf.deb
Normal file
BIN
bin/sunxi-debs/libvlccore8_2.2.2-4_armhf.deb
Normal file
Binary file not shown.
BIN
bin/sunxi-debs/libx265-79_1.9-3_armhf.deb
Normal file
BIN
bin/sunxi-debs/libx265-79_1.9-3_armhf.deb
Normal file
Binary file not shown.
BIN
bin/sunxi-debs/libx265-dev_1.9-3_armhf.deb
Normal file
BIN
bin/sunxi-debs/libx265-dev_1.9-3_armhf.deb
Normal file
Binary file not shown.
BIN
bin/sunxi-debs/libx265-doc_1.9-3_all.deb
Normal file
BIN
bin/sunxi-debs/libx265-doc_1.9-3_all.deb
Normal file
Binary file not shown.
BIN
bin/sunxi-debs/mpv_0.16.0_armhf.deb
Normal file
BIN
bin/sunxi-debs/mpv_0.16.0_armhf.deb
Normal file
Binary file not shown.
BIN
bin/sunxi-debs/sunxi-mali-r3p0_4.0.0.0_armhf.deb
Normal file
BIN
bin/sunxi-debs/sunxi-mali-r3p0_4.0.0.0_armhf.deb
Normal file
Binary file not shown.
BIN
bin/sunxi-debs/vdpau-driver-all_1.1.1-3ubuntu1_armhf.deb
Normal file
BIN
bin/sunxi-debs/vdpau-driver-all_1.1.1-3ubuntu1_armhf.deb
Normal file
Binary file not shown.
BIN
bin/sunxi-debs/vlc-data_2.2.2-4_all.deb
Normal file
BIN
bin/sunxi-debs/vlc-data_2.2.2-4_all.deb
Normal file
Binary file not shown.
BIN
bin/sunxi-debs/vlc-nox_2.2.2-4_armhf.deb
Normal file
BIN
bin/sunxi-debs/vlc-nox_2.2.2-4_armhf.deb
Normal file
Binary file not shown.
BIN
bin/sunxi-debs/vlc-plugin-fluidsynth_2.2.2-4_armhf.deb
Normal file
BIN
bin/sunxi-debs/vlc-plugin-fluidsynth_2.2.2-4_armhf.deb
Normal file
Binary file not shown.
BIN
bin/sunxi-debs/vlc-plugin-jack_2.2.2-4_armhf.deb
Normal file
BIN
bin/sunxi-debs/vlc-plugin-jack_2.2.2-4_armhf.deb
Normal file
Binary file not shown.
BIN
bin/sunxi-debs/vlc-plugin-notify_2.2.2-4_armhf.deb
Normal file
BIN
bin/sunxi-debs/vlc-plugin-notify_2.2.2-4_armhf.deb
Normal file
Binary file not shown.
BIN
bin/sunxi-debs/vlc-plugin-samba_2.2.2-4_armhf.deb
Normal file
BIN
bin/sunxi-debs/vlc-plugin-samba_2.2.2-4_armhf.deb
Normal file
Binary file not shown.
BIN
bin/sunxi-debs/vlc-plugin-sdl_2.2.2-4_armhf.deb
Normal file
BIN
bin/sunxi-debs/vlc-plugin-sdl_2.2.2-4_armhf.deb
Normal file
Binary file not shown.
BIN
bin/sunxi-debs/vlc-plugin-svg_2.2.2-4_armhf.deb
Normal file
BIN
bin/sunxi-debs/vlc-plugin-svg_2.2.2-4_armhf.deb
Normal file
Binary file not shown.
BIN
bin/sunxi-debs/vlc-plugin-zvbi_2.2.2-4_armhf.deb
Normal file
BIN
bin/sunxi-debs/vlc-plugin-zvbi_2.2.2-4_armhf.deb
Normal file
Binary file not shown.
BIN
bin/sunxi-debs/vlc_2.2.2-4_armhf.deb
Normal file
BIN
bin/sunxi-debs/vlc_2.2.2-4_armhf.deb
Normal file
Binary file not shown.
BIN
bin/sunxi-debs/x265_1.9-3_armhf.deb
Normal file
BIN
bin/sunxi-debs/x265_1.9-3_armhf.deb
Normal file
Binary file not shown.
3
config/mpv.conf.sunxi
Normal file
3
config/mpv.conf.sunxi
Normal file
@ -0,0 +1,3 @@
|
||||
vo=vdpau
|
||||
hwdec=vdpau
|
||||
hwdec-codecs=all
|
||||
152
desktop.sh
152
desktop.sh
@ -69,61 +69,103 @@ sed "s/NODM_ENABLED=\(.*\)/NODM_ENABLED=false/g" -i $DEST/cache/sdcard/etc/defau
|
||||
if [[ $LINUXFAMILY == *sun* && $BRANCH == "default" ]]; then
|
||||
mkdir -p $DEST/cache/sdcard/etc/udev/rules.d
|
||||
cp $SRC/lib/config/sunxi-udev/* $DEST/cache/sdcard/etc/udev/rules.d/
|
||||
|
||||
grep "CONFIG_MALI is not set" $SOURCES/$LINUXSOURCEDIR/.config 2>&1 >/dev/null
|
||||
local error_num=$?
|
||||
grep "CONFIG_UMP is not set" $SOURCES/$LINUXSOURCEDIR/.config 2>&1 >/dev/null
|
||||
if [[ $? -eq 1 && $error_num -eq 1 ]]
|
||||
then
|
||||
error_num=0
|
||||
display_alert "Adding support for Mali - acceleration" "sunxi" "info"
|
||||
git clone -q https://github.com/WereCatf/armbian-debs.git $DEST/cache/sdcard/tmp/armbian-debs
|
||||
chroot $DEST/cache/sdcard /bin/bash -c "apt-get -y install mesa-utils-extra 2>&1 >/dev/null"
|
||||
chroot $DEST/cache/sdcard /bin/bash -c "apt-get -y install libdri2-1 libdri2-dev 2>&1 >/dev/null"
|
||||
if [ $? -gt 0 ]; then
|
||||
chroot $DEST/cache/sdcard /bin/bash -c "cd /tmp/armbian-debs && dpkg -i libdri2-1_1.0-1_armhf.deb 2>&1 >/dev/null"
|
||||
error_num=$(($error_num+$?))
|
||||
fi
|
||||
if [ $error_num -gt 0 ]; then display_alert "Installation failed" "Mali - libdri2-1" "err"; exit 1
|
||||
else
|
||||
chroot $DEST/cache/sdcard /bin/bash -c "cd /tmp/armbian-debs && dpkg -i libump_3.0-0sunxi1_armhf.deb libump-dev_3.0-0sunxi1_armhf.deb 2>&1 >/dev/null"
|
||||
error_num=$(($error_num+$?))
|
||||
if [ $error_num -gt 0 ]; then display_alert "Installation failed" "Mali - libump" "err"; exit 1
|
||||
else
|
||||
chroot $DEST/cache/sdcard /bin/bash -c "cd /tmp/armbian-debs && dpkg -i sunxi-mali-r3p0_4.0.0.0_armhf.deb 2>&1 >/dev/null"
|
||||
error_num=$(($error_num+$?))
|
||||
chroot $DEST/cache/sdcard /bin/bash -c "ldconfig"
|
||||
if [ $error_num -gt 0 ]; then display_alert "Installation failed" "Mali r3p0" "err"; exit 1;fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
display_alert "Compiling FB Turbo" "sunxi" "info"
|
||||
|
||||
error_num=0
|
||||
|
||||
# quemu bug walkaround
|
||||
git clone -q https://github.com/ssvb/xf86-video-fbturbo.git $DEST/cache/sdcard/tmp/xf86-video-fbturbo
|
||||
chroot $DEST/cache/sdcard /bin/bash -c "cd /tmp/xf86-video-fbturbo && autoreconf -vi >/dev/null 2>&1"
|
||||
error_num=$(($error_num+$?))
|
||||
chroot $DEST/cache/sdcard /bin/bash -c "cd /tmp/xf86-video-fbturbo && ./configure --prefix=/usr >/dev/null 2>&1"
|
||||
error_num=$(($error_num+$?))
|
||||
chroot $DEST/cache/sdcard /bin/bash -c "cd /tmp/xf86-video-fbturbo && make $CTHREADS && make install >/dev/null 2>&1"
|
||||
error_num=$(($error_num+$?))
|
||||
|
||||
# use Armbian prepared config
|
||||
cp $SRC/lib/config/xorg.conf.sunxi $DEST/cache/sdcard/etc/X11/xorg.conf
|
||||
|
||||
# compile video acceleration
|
||||
git clone -q https://github.com/linux-sunxi/libvdpau-sunxi.git $DEST/cache/sdcard/tmp/libvdpau-sunxi
|
||||
|
||||
# with temporaly fix
|
||||
chroot $DEST/cache/sdcard /bin/bash -c "cd /tmp/libvdpau-sunxi; git checkout 906c36ed45ceb53fecd5fc72e821c11849eeb1a3; make $CTHREADS" >/dev/null 2>&1
|
||||
error_num=$(($error_num+$?))
|
||||
|
||||
d=$DEST/cache/sdcard/usr/lib/arm-linux-gnueabihf/vdpau
|
||||
test -d "$d" || mkdir -p "$d" && cp $DEST/cache/sdcard/tmp/libvdpau-sunxi/libvdpau_sunxi.so.1 "$d"
|
||||
ln -s $d/libvdpau_sunxi.so.1 $d/libvdpau_sunxi.so
|
||||
|
||||
if [[ $RELEASE == "jessie" || $RELEASE == "xenial" ]]; then
|
||||
cp -R $SRC/lib/bin/sunxi-debs $DEST/cache/sdcard/tmp/debs
|
||||
error_num=0
|
||||
display_alert "Installing desktop-extras for sunxi" "sunxi" "info"
|
||||
chroot $DEST/cache/sdcard /bin/bash -c "apt-get -y install libdri2-1 2>&1 >/dev/null"
|
||||
if [ $? -gt 0 ]; then
|
||||
chroot $DEST/cache/sdcard /bin/bash -c "cd /tmp/debs && dpkg -i libdri2*.deb 2>&1 >/dev/null"
|
||||
error_num=$(($error_num+$?))
|
||||
fi
|
||||
chroot $DEST/cache/sdcard /bin/bash -c "apt-get -y install mesa-utils-extra 2>&1 >/dev/null"
|
||||
error_num=$(($error_num+$?))
|
||||
chroot $DEST/cache/sdcard /bin/bash -c "cd /tmp/debs && dpkg -i libump*.deb 2>&1 >/dev/null"
|
||||
error_num=$(($error_num+$?))
|
||||
chroot $DEST/cache/sdcard /bin/bash -c "cd /tmp/debs && dpkg -i libcedrus*.deb 2>&1 >/dev/null"
|
||||
error_num=$(($error_num+$?))
|
||||
chroot $DEST/cache/sdcard /bin/bash -c "cd /tmp/debs && dpkg -i libvdpau*.deb 2>&1 >/dev/null"
|
||||
error_num=$(($error_num+$?))
|
||||
chroot $DEST/cache/sdcard /bin/bash -c "cd /tmp/debs && dpkg -i sunxi-mali*.deb 2>&1 >/dev/null"
|
||||
error_num=$(($error_num+$?))
|
||||
chroot $DEST/cache/sdcard /bin/bash -c "cd /tmp/debs && dpkg -i fbturbo*.deb 2>&1 >/dev/null"
|
||||
error_num=$(($error_num+$?))
|
||||
chroot $DEST/cache/sdcard /bin/bash -c "cd /tmp/debs && dpkg -i mpv_*.deb 2>&1 >/dev/null"
|
||||
chroot $DEST/cache/sdcard /bin/bash -c "apt-get -y -f install 2>&1 >/dev/null"
|
||||
error_num=$(($error_num+$?))
|
||||
if [ $error_num -gt 0 ]; then display_alert "Installation failed" "desktop-extras for sunxi" "err"; exit 1;fi
|
||||
# Disable compositing by default
|
||||
sed 's/name="use_compositing" type="bool" value="true"/name="use_compositing" type="bool" value="false"/' -i $DEST/cache/sdcard/etc/skel/.config/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml
|
||||
sed 's/name="use_compositing" type="bool" value="true"/name="use_compositing" type="bool" value="false"/' -i $DEST/cache/sdcard/root/.config/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml
|
||||
cp $SRC/lib/config/mpv.conf.sunxi $DEST/cache/sdcard/etc/mpv/mpv.conf
|
||||
chroot $DEST/cache/sdcard /bin/bash -c "ldconfig"
|
||||
|
||||
else
|
||||
|
||||
grep "CONFIG_MALI is not set" $SOURCES/$LINUXSOURCEDIR/.config 2>&1 >/dev/null
|
||||
local error_num=$?
|
||||
grep "CONFIG_UMP is not set" $SOURCES/$LINUXSOURCEDIR/.config 2>&1 >/dev/null
|
||||
if [[ $? -eq 1 && $error_num -eq 1 ]]; then
|
||||
error_num=0
|
||||
display_alert "Adding support for Mali - acceleration" "sunxi" "info"
|
||||
git clone -q https://github.com/WereCatf/armbian-debs.git $DEST/cache/sdcard/tmp/armbian-debs
|
||||
chroot $DEST/cache/sdcard /bin/bash -c "apt-get -y install mesa-utils-extra 2>&1 >/dev/null"
|
||||
chroot $DEST/cache/sdcard /bin/bash -c "apt-get -y install libdri2-1 libdri2-dev 2>&1 >/dev/null"
|
||||
if [ $? -gt 0 ]; then
|
||||
chroot $DEST/cache/sdcard /bin/bash -c "cd /tmp/armbian-debs && dpkg -i libdri2-1_1.0-1_armhf.deb 2>&1 >/dev/null"
|
||||
error_num=$(($error_num+$?))
|
||||
fi
|
||||
if [ $error_num -gt 0 ]; then display_alert "Installation failed" "Mali - libdri2-1" "err"; exit 1
|
||||
else
|
||||
chroot $DEST/cache/sdcard /bin/bash -c "cd /tmp/armbian-debs && dpkg -i libump_3.0-0sunxi1_armhf.deb libump-dev_3.0-0sunxi1_armhf.deb 2>&1 >/dev/null"
|
||||
error_num=$(($error_num+$?))
|
||||
if [ $error_num -gt 0 ]; then display_alert "Installation failed" "Mali - libump" "err"; exit 1
|
||||
else
|
||||
chroot $DEST/cache/sdcard /bin/bash -c "cd /tmp/armbian-debs && dpkg -i sunxi-mali-r3p0_4.0.0.0_armhf.deb 2>&1 >/dev/null"
|
||||
error_num=$(($error_num+$?))
|
||||
chroot $DEST/cache/sdcard /bin/bash -c "ldconfig"
|
||||
if [ $error_num -gt 0 ]; then display_alert "Installation failed" "Mali r3p0" "err"; exit 1;fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
display_alert "Compiling FB Turbo" "sunxi" "info"
|
||||
error_num=0
|
||||
# quemu bug walkaround
|
||||
git clone -q https://github.com/ssvb/xf86-video-fbturbo.git $DEST/cache/sdcard/tmp/xf86-video-fbturbo
|
||||
chroot $DEST/cache/sdcard /bin/bash -c "cd /tmp/xf86-video-fbturbo && autoreconf -vi >/dev/null 2>&1"
|
||||
error_num=$(($error_num+$?))
|
||||
chroot $DEST/cache/sdcard /bin/bash -c "cd /tmp/xf86-video-fbturbo && ./configure --prefix=/usr >/dev/null 2>&1"
|
||||
error_num=$(($error_num+$?))
|
||||
chroot $DEST/cache/sdcard /bin/bash -c "cd /tmp/xf86-video-fbturbo && make $CTHREADS && make install >/dev/null 2>&1"
|
||||
error_num=$(($error_num+$?))
|
||||
# compile video acceleration
|
||||
git clone -q https://github.com/linux-sunxi/libvdpau-sunxi.git $DEST/cache/sdcard/tmp/libvdpau-sunxi
|
||||
# with temporaly fix
|
||||
chroot $DEST/cache/sdcard /bin/bash -c "cd /tmp/libvdpau-sunxi; git checkout 906c36ed45ceb53fecd5fc72e821c11849eeb1a3; make $CTHREADS" >/dev/null 2>&1
|
||||
error_num=$(($error_num+$?))
|
||||
|
||||
d=$DEST/cache/sdcard/usr/lib/arm-linux-gnueabihf/vdpau
|
||||
test -d "$d" || mkdir -p "$d" && cp $DEST/cache/sdcard/tmp/libvdpau-sunxi/libvdpau_sunxi.so.1 "$d"
|
||||
ln -s $d/libvdpau_sunxi.so.1 $d/libvdpau_sunxi.so
|
||||
# error check
|
||||
if [ $error_num -gt 0 ]; then display_alert "Compiling failed" "FB Turbo" "err"; exit 1; fi
|
||||
fi
|
||||
|
||||
# Set default audio-output to HDMI for desktop-images
|
||||
cat >> $DEST/cache/sdcard/etc/asound.conf << _EOF_
|
||||
pcm.!default {
|
||||
type hw
|
||||
card 1
|
||||
}
|
||||
|
||||
ctl.!default {
|
||||
type hw
|
||||
card 1
|
||||
}
|
||||
_EOF_
|
||||
|
||||
# That we can just play
|
||||
echo "export VDPAU_DRIVER=sunxi" >> $DEST/cache/sdcard/etc/profile
|
||||
@ -135,7 +177,5 @@ if [[ $LINUXFAMILY == *sun* && $BRANCH == "default" ]]; then
|
||||
# clean deb cache
|
||||
chroot $DEST/cache/sdcard /bin/bash -c "apt-get -y clean >/dev/null 2>&1"
|
||||
|
||||
# error chech
|
||||
if [ $error_num -gt 0 ]; then display_alert "Compiling failed" "FB Turbo" "err"; exit 1; fi
|
||||
fi
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user