Skip to content

Commit

Permalink
Merge pull request #40 from osmc/master
Browse files Browse the repository at this point in the history
Update
  • Loading branch information
French77 authored Apr 22, 2019
2 parents 6955da3 + 0ce1989 commit 5b220bc
Show file tree
Hide file tree
Showing 353 changed files with 58,675 additions and 2,675,079 deletions.
5 changes: 0 additions & 5 deletions filesystem/osmc-vero1-filesystem/Makefile

This file was deleted.

116 changes: 0 additions & 116 deletions filesystem/osmc-vero1-filesystem/build.sh

This file was deleted.

4 changes: 2 additions & 2 deletions installer/noobs/os-pi1.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "OSMC_Pi1",
"url": "https://osmc.tv",
"version": "2018.12-1",
"release_date": "2018-12-31",
"version": "2019.04-1",
"release_date": "2019-04-21",
"kernel": "4.14.78",
"description": "A fast and feature filled open source media center",
"username": "osmc",
Expand Down
4 changes: 2 additions & 2 deletions installer/noobs/os-pi2.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "OSMC_Pi2",
"url": "https://osmc.tv",
"version": "2018.12-1",
"release_date": "2018-12-31",
"version": "2019.04-1",
"release_date": "2019-04-21",
"kernel": "4.14.78",
"description": "A fast and feature filled open source media center",
"username": "osmc",
Expand Down
8 changes: 1 addition & 7 deletions installer/target/Makefile
Original file line number Diff line number Diff line change
@@ -1,24 +1,18 @@
all:
@echo "Specify a target:\nmake rbp1\nmake rbp2\nmake vero1\nmake appletv\nmake vero2\nmake vero3"
@echo "Specify a target:\nmake rbp1\nmake rbp2\nmake vero2\nmake vero3"

rbp1:
sudo bash build.sh "rbp1"

rbp2:
sudo bash build.sh "rbp2"

vero1:
sudo bash build.sh "vero1"

vero2:
sudo bash build.sh "vero2"

vero3:
sudo bash build.sh "vero3"

appletv:
sudo bash build.sh "appletv"

clean:
sudo rm -rf buildroot*/ > /dev/null 2>&1
sudo rm -f filesystem.tar.xz >/dev/null 2>&1
Expand Down
15 changes: 1 addition & 14 deletions installer/target/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ else
fi
if [ ! -f ../../../filesystem.tar.xz ]; then echo -e "No filesystem available for target" && exit 1; fi
echo -e "Building disk image"
if [ "$1" == "rbp1" ] || [ "$1" == "rbp2" ] || [ "$1" == "vero1" ] || [ "$1" == "vero2" ] || [ "$1" == "vero3" ]; then size=256; fi
if [ "$1" == "rbp1" ] || [ "$1" == "rbp2" ] || [ "$1" == "vero2" ] || [ "$1" == "vero3" ]; then size=256; fi
date=$(date +%Y%m%d)
if [ "$1" == "rbp1" ] || [ "$1" == "rbp2" ] || [ "$1" == "vero1" ] || [ "$1" == "vero2" ] || [ "$1" == "vero3" ]
then
Expand All @@ -88,13 +88,6 @@ then
mv *.dtb /mnt
mv overlays /mnt
fi
if [ "$1" == "vero1" ]
then
echo -e "Installing Vero files"
mv zImage /mnt
mv *.dtb /mnt
echo "mmcargs=setenv bootargs console=tty1 root=/dev/ram0 quiet init=/init loglevel=2 osmcdev=vero1 video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24,bpp=32" > /mnt/uEnv.txt
fi
if [ "$1" == "vero2" ]
then
echo -e "Installing Vero 2 files"
Expand All @@ -112,12 +105,6 @@ mv $(pwd)/../../../filesystem.tar.xz /mnt/
umount /mnt
sync
kpartx -d OSMC_TGT_${1}_${date}.img
if [ "$1" == "vero1" ]
then
echo -e "Flashing bootloader"
dd conv=notrunc if=SPL of=OSMC_TGT_${1}_${date}.img bs=1K seek=1
dd conv=notrunc if=u-boot.img of=OSMC_TGT_${1}_${date}.img bs=1K seek=42
fi
echo -e "Compressing image"
gzip OSMC_TGT_${1}_${date}.img
md5sum OSMC_TGT_${1}_${date}.img.gz > OSMC_TGT_${1}_${date}.md5
Expand Down
6 changes: 5 additions & 1 deletion installer/target/qt_target/qt_target_installer/extractworker.cpp
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ void ExtractWorker::extract()
process = new QProcess();
connect(process, SIGNAL(readyReadStandardOutput()), this, SLOT(readFromStdOut()));
connect(process, SIGNAL(readyReadStandardError()), this, SLOT(readFromStdErr()));
process->start("/bin/sh -c \"/usr/bin/pv -n " + sourceName + " | tar xJf - -C " + destName + "\"");
if (sourceName.endsWith("xz"))
process->start("/bin/sh -c \"/usr/bin/pv -n " + sourceName + " | tar xJf - -C " + destName + "\"");
else
process->start("/bin/sh -c \"/usr/bin/pv -n " + sourceName + " | tar xf - -C " + destName + "\"");

process->waitForFinished(-1);
if (process->exitCode() != 0)
{
Expand Down
13 changes: 13 additions & 0 deletions installer/target/qt_target/qt_target_installer/init
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,19 @@ then
esac
done

preferred=$(busybox grep \* /sys/class/amhdmitx/amhdmitx0/disp_cap | busybox sed 's/\*//g')
if echo $hdmimode | busybox grep -q force
then
hdmimode=$(echo $hdmimode | /bin/busybox sed 's/force//g')
echo "$hdmimode" > /sys/class/display/mode
else
if [ "$preferred" ] && [ "$hdmimode" != "$preferred" ]
then
hdmimode="$preferred"
echo "$hdmimode" > /sys/class/display/mode
fi
fi

# Configure framebuffer X and Y size

case $hdmimode in
Expand Down
10 changes: 7 additions & 3 deletions installer/target/qt_target/qt_target_installer/mainwindow.cpp
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,16 @@ void MainWindow::install()
haltInstall("could not mount bootfs");
return;
}
/* Sanity check: need filesystem.tar.xz */
/* Sanity check: need filesystem.tar.xz or filesystem.tar */
QFile fileSystem(QString(MNT_BOOT) + "/filesystem.tar.xz");
if (! fileSystem.exists())
{
haltInstall("no filesystem found");
return;
QFile fileSystem(QString(MNT_BOOT) + "/filesystem.tar");
if (! fileSystem.exists())
{
haltInstall("no filesystem found");
return;
}
}
/* Load in preseeded values */
preseed = new PreseedParser();
Expand Down
2 changes: 1 addition & 1 deletion package/base-files-osmc/files/DEBIAN/control
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Origin: OSMC
Package: base-files-osmc
Version: 2.7.5
Version: 2.7.6
Section: admin
Priority: required
Architecture: all
Expand Down
4 changes: 2 additions & 2 deletions package/base-files-osmc/files/etc/os-release
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PRETTY_NAME="Open Source Media Center"
NAME="OSMC"
VERSION="December 2018"
VERSION_ID="2018.12-1"
VERSION="April 2019"
VERSION_ID="2019.04-1"
ID=osmc
ID_LIKE=debian

Expand Down
2 changes: 1 addition & 1 deletion package/eventlircd-osmc/files/DEBIAN/control
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Origin: OSMC
Version: 1.3.3
Version: 1.3.4
Section: utils
Essential: No
Priority: optional
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -243,4 +243,7 @@ LABEL="begin-bluetooth"

LABEL="end-bluetooth"

# tell libinput to ignore devices handled by eventlircd
ENV{eventlircd_enable}=="true", ENV{LIBINPUT_IGNORE_DEVICE}="1"

LABEL="end"
8 changes: 1 addition & 7 deletions package/ftr-osmc/Makefile
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
all:
@echo "Specify a target:\nmake rbp1\nmake rbp2\nmake atv\nmake vero1\nmake vero2\nmake vero3"
@echo "Specify a target:\nmake rbp1\nmake rbp2\nmake vero2\nmake vero3"

rbp1:
sudo bash build.sh "rbp1"

rbp2:
sudo bash build.sh "rbp2"

atv:
sudo setarch i686 bash build.sh "atv"

vero1:
sudo bash build.sh "vero1"

vero2:
sudo bash build.sh "vero2"

Expand Down
33 changes: 0 additions & 33 deletions package/ftr-osmc/src/atv-ftr

This file was deleted.

31 changes: 0 additions & 31 deletions package/ftr-osmc/src/vero1-ftr

This file was deleted.

Loading

0 comments on commit 5b220bc

Please sign in to comment.