...
 
Commits (10)
......@@ -3,12 +3,6 @@
#
# Embedded Entertainment Rom (EmbER)
#
# Copyright (C) 2017 by EmbER Gadgets Inc. <cronmod.dev@gmail.com>
#
# This software is proprietary and confidential, Unauthorized copying and/or
# redistribution of any files or source code related to or included with
# this program via any medium is strictly prohibited.
#
################################################################################
# Find native framebuffer resolution
......
......@@ -22,7 +22,7 @@ key_begin
0x4d 18 #epg
0x0e 23 #info
0x0d 172 #home
0x0d 1 #home
0x51 14 #del
0x12 90 #mouse
......
......@@ -12,7 +12,7 @@ key_begin
0x0f 23 ;APP(INFO)
0x18 115 ;VOL+
0x10 114 ;VOL-
0x11 172 ;HOME
0x11 1 ;HOME
0x19 14 ;EXIT
0x4c 139 ;MENU
0x00 15 ;MOUSE(TAB)
......
......@@ -17,7 +17,7 @@ key_begin
0x56 114 ;VOL-
0xbd 165 ;MEDIA_PREV
0xbb 163 ;MEDIA_NEXT
0x53 172 ;HOME
0x53 1 ;HOME
0x1b 14 ;EXIT
0x26 103 ;UP
0x25 105 ;LEFT
......
......@@ -26,7 +26,7 @@ key_begin
0x41 113 ;MUTE
0x11 115 ;VOL+
0x4c 114 ;VOL-
0x18 172 ;HOME
0x18 1 ;HOME
0x19 14 ;EXIT
0x42 14 ;EXIT
0x40 116 ;POWER
......
......@@ -38,7 +38,7 @@ key_begin
0x45 372 ;ZOOM
0x9a 104 ;PAGE_UP
0xcd 109 ;PAGE_DOWN
0x11 172 ;HOME
0x11 1 ;HOME
# 0xc5 ;NOTIFICATION
0x51 105 ;LEFT
0x16 103 ;UP
......
......@@ -18,7 +18,7 @@ key_begin
0xc1 106 ;RIGHT
0xce 28 ;OK
0xd6 139 ;MENU
0x95 172 ;HOME
0x95 1 ;HOME
0xd0 14 ;EXIT
0x92 2 ;NUM1
0x93 3 ;NUM2
......
......@@ -27,7 +27,7 @@ key_begin
0x03 113 ;MUTE
0x10 115 ;VOL+
0x0f 114 ;VOL-
0x19 172 ;HOME
0x19 1 ;HOME
0x18 14 ;EXIT
0x1a 14 ;EXIT
0x12 116 ;POWER
......
......@@ -35,7 +35,7 @@ key_begin
0x1F 163 ;MEDIA_NEXT
0x1E 165 ;MEDIA_PREVIOUS
0x45 139 ;MENU
0x1A 172 ;HOME
0x1A 1 ;HOME
0x42 14 ;EXIT
# 0x17 ;SEARCH
key_end
......@@ -38,6 +38,7 @@ BR2_PACKAGE_FFMPEG_MUXERS="spdif adts asf ipod mpegts ogg"
BR2_PACKAGE_FFMPEG_EXTRACONF="--disable-decoder=mpeg_xvmc"
BR2_PACKAGE_LZOP=y
BR2_PACKAGE_CIFS_UTILS=y
BR2_PACKAGE_EXFAT=y
BR2_PACKAGE_NTFS_3G=y
BR2_PACKAGE_SQUASHFS=y
BR2_PACKAGE_SQUASHFS_XZ=y
......
......@@ -34,6 +34,7 @@ BR2_PACKAGE_FFMPEG_MUXERS="spdif adts asf ipod mpegts ogg"
BR2_PACKAGE_FFMPEG_EXTRACONF="--disable-decoder=mpeg_xvmc"
BR2_PACKAGE_LZOP=y
BR2_PACKAGE_CIFS_UTILS=y
BR2_PACKAGE_EXFAT=y
BR2_PACKAGE_NTFS_3G=y
BR2_PACKAGE_SQUASHFS=y
BR2_PACKAGE_SQUASHFS_XZ=y
......
......@@ -34,6 +34,7 @@ BR2_PACKAGE_FFMPEG_MUXERS="spdif adts asf ipod mpegts ogg"
BR2_PACKAGE_FFMPEG_EXTRACONF="--disable-decoder=mpeg_xvmc"
BR2_PACKAGE_LZOP=y
BR2_PACKAGE_CIFS_UTILS=y
BR2_PACKAGE_EXFAT=y
BR2_PACKAGE_NTFS_3G=y
BR2_PACKAGE_SQUASHFS=y
BR2_PACKAGE_SQUASHFS_XZ=y
......
......@@ -34,6 +34,7 @@ BR2_PACKAGE_FFMPEG_MUXERS="spdif adts asf ipod mpegts ogg"
BR2_PACKAGE_FFMPEG_EXTRACONF="--disable-decoder=mpeg_xvmc"
BR2_PACKAGE_LZOP=y
BR2_PACKAGE_CIFS_UTILS=y
BR2_PACKAGE_EXFAT=y
BR2_PACKAGE_NTFS_3G=y
BR2_PACKAGE_SQUASHFS=y
BR2_PACKAGE_SQUASHFS_XZ=y
......
......@@ -34,6 +34,7 @@ BR2_PACKAGE_FFMPEG_MUXERS="spdif adts asf ipod mpegts ogg"
BR2_PACKAGE_FFMPEG_EXTRACONF="--disable-decoder=mpeg_xvmc"
BR2_PACKAGE_LZOP=y
BR2_PACKAGE_CIFS_UTILS=y
BR2_PACKAGE_EXFAT=y
BR2_PACKAGE_NTFS_3G=y
BR2_PACKAGE_SQUASHFS=y
BR2_PACKAGE_SQUASHFS_XZ=y
......
......@@ -3,12 +3,6 @@
#
# Embedded Entertainment Rom (EmbER)
#
# Copyright (C) 2017 by EmbER Gadgets Inc. <cronmod.dev@gmail.com>
#
# This software is proprietary and confidential, Unauthorized copying and/or
# redistribution of any files or source code related to or included with
# this program via any medium is strictly prohibited.
#
################################################################################
if [ "$1" = "start" ]; then
......@@ -18,8 +12,14 @@ if [ "$1" = "start" ]; then
rm -rf /root/.kodi/temp/.arnubox /root/.kodi/temp/.data /root/.data
else
# Extract data.txz
mkdir -pm 755 /root/.kodi
mkdir -p /root/.kodi
tar -xJf /usr/share/kodi/kodi-data.txz -C /root/.kodi/
# Set ownership and permissions
chown -R root:root /root/.kodi
find /root/.kodi -type f -exec chmod 0644 {} \;
find /root/.kodi -type d -exec chmod 0755 {} \;
find /root/.kodi -type f -name *.sh -exec chmod 0755 {} \;
find /root/.kodi -type d -name bin -exec chmod -R 0755 {} \;
fi
# Create lock file
echo "CAUTION!!! Removing this file will cause the firmware to reinstall default Kodi data on next boot." > /mnt/data/.kodi-data
......
diff --git a/xbmc/windows/GUIWindowFileManager.cpp b/xbmc/windows/GUIWindowFileManager.cpp
index 547507fbfb..cf39ac9f03 100644
--- a/xbmc/windows/GUIWindowFileManager.cpp
+++ b/xbmc/windows/GUIWindowFileManager.cpp
@@ -490,6 +490,12 @@ bool CGUIWindowFileManager::Update(int iList, const std::string &strDirectory)
pItem->SetLabelPreformated(true);
m_vecItems[iList]->Add(pItem);
+ CFileItemPtr iItem(new CFileItem("special://envhome/", true));
+ iItem->SetLabel(g_localizeStrings.Get(21440));
+ iItem->SetArt("thumb", "DefaultFolder.png");
+ iItem->SetLabelPreformated(true);
+ m_vecItems[iList]->Add(iItem);
+
#ifdef TARGET_DARWIN_IOS
CFileItemPtr iItem(new CFileItem("special://envhome/Documents/Inbox", true));
iItem->SetLabel("Inbox");
<keymap>
<global>
<keyboard>
<escape>ActivateWindow(Home)</escape> <!-- 1 -->
<f1>ActivateWindow(MyPictures)</f1> <!-- 59 -->
<f2>ActivateWindow(MyMusic)</f2> <!--60 -->
<f3>ActivateWindow(VideoLibrary)</f3> <!-- 61 -->
......
<keymap>
<global>
<keyboard>
<escape>ActivateWindow(Home)</escape> <!-- 1 -->
<f1>ActivateWindow(MyPictures)</f1> <!-- 59 -->
<f2>ActivateWindow(MyMusic)</f2> <!--60 -->
<f3>ActivateWindow(VideoLibrary)</f3> <!-- 61 -->
......
<keymap>
<global>
<keyboard>
<escape>ActivateWindow(Home)</escape> <!-- 1 -->
<f1>ActivateWindow(MyPictures)</f1> <!-- 59 -->
<f2>ActivateWindow(MyMusic)</f2> <!--60 -->
<f3>ActivateWindow(VideoLibrary)</f3> <!-- 61 -->
......
......@@ -2,8 +2,8 @@
KODI_LIBREELEC_PATCH_CMD = @$(APPLY_PATCHES) $(@D) $(BR2_EXTERNAL_EmbER_PATH)/package/mediacenter/kodi/libreelec *.patch
KODI_POST_PATCH_HOOKS += KODI_LIBREELEC_PATCH_CMD
KODI_LIBREELEC_INSTALL_CMD = \
$(INSTALL) -m 755 -D $(BR2_EXTERNAL_EmbER_PATH)/package/mediacenter/kodi/libreelec/99-le-compat.sh $(TARGET_DIR)/etc/profile.d/99-le-compat.sh; \
ln -sf /root $(TARGET_DIR)/storage
$(INSTALL) -m 644 -D $(BR2_EXTERNAL_EmbER_PATH)/package/mediacenter/kodi/libreelec/le-compat.sh $(TARGET_DIR)/etc/profile.d/le-compat.sh; \
ln -sf root $(TARGET_DIR)/storage
KODI_POST_INSTALL_TARGET_HOOKS += KODI_LIBREELEC_INSTALL_CMD
# Apply experimental patches
......
################################################################################
#
# Embedded Entertainment Rom (EmbER)
#
# Copyright (C) 2017 by EmbER Gadgets Inc. <cronmod.dev@gmail.com>
#
# This software is proprietary and confidential, Unauthorized copying and/or
# redistribution of any files or source code related to or included with
# this program via any medium is strictly prohibited.
#
################################################################################
LD_LIBRARY_PATH="/usr/lib"
### 00-addons.conf ###
for i in $HOME/.kodi/addons/*/profile.d/*.profile; do
if [ -f "$i" ]; then
. $i
fi
unset i
done
oe_setup_addon() {
if [ ! -z $1 ] ; then
DEF="$HOME/.kodi/addons/$1/settings-default.xml"
CUR="$HOME/.kodi/userdata/addon_data/$1/settings.xml"
# export some useful variables
ADDON_DIR="$HOME/.kodi/addons/$1"
ADDON_HOME="$HOME/.kodi/userdata/addon_data/$1"
ADDON_LOG_FILE="$ADDON_HOME/service.log"
[ ! -d $ADDON_HOME ] && mkdir -p $ADDON_HOME
# copy defaults
if [ -f "$DEF" -a ! -f "$CUR" ] ; then
cp "$DEF" "$CUR"
fi
# parse config
[ -f "$DEF" ] && eval $(cat "$DEF" | awk -F\" '{print $2"=\""$4"\""}' | sed '/^=/d')
[ -f "$CUR" ] && eval $(cat "$CUR" | awk -F\" '{print $2"=\""$4"\""}' | sed '/^=/d')
fi
}
### 90-systemd.conf ###
export SYSTEMD_COLORS="0"
### 99-kodi.conf ###
for i in $HOME/.kodi/addons/*/bin /usr/lib/kodi/addons/*/bin; do
if [ -d "$i" ]; then
export PATH=$PATH:$i
fi
unset i
done
for i in $HOME/.kodi/addons/*/lib /usr/lib/kodi/addons/*/lib; do
if [ -d "$i" ]; then
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$i
fi
unset i
done
### 99-pulseaudio.conf ###
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/lib/pulseaudio"
##########################
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH"
################################################################################
#
# Embedded Entertainment Rom (EmbER)
#
################################################################################
export HOME="/root"
for config in $HOME/.kodi/addons/*/profile.d/*.profile; do
if [ -f "$config" ]; then
. $config
fi
done
oe_setup_addon()
{
if [ ! -z "$1" ]; then
DEF="$HOME/.kodi/addons/$1/settings-default.xml"
CUR="$HOME/.kodi/userdata/addon_data/$1/settings.xml"
# export some useful variables
ADDON_DIR="$HOME/.kodi/addons/$1"
ADDON_HOME="$HOME/.kodi/userdata/addon_data/$1"
ADDON_LOG_FILE="$ADDON_HOME/service.log"
[ ! -d "$ADDON_HOME" ] && mkdir -p $ADDON_HOME
# copy defaults
if [ -f "$DEF" -a ! -f "$CUR" ]; then
cp $DEF $CUR
fi
# parse config
[ -f "$DEF" ] && eval $(cat "$DEF" | awk -F\" '{print $2"=\""$4"\""}' | sed '/^=/d')
[ -f "$CUR" ] && eval $(cat "$CUR" | awk -F\" '{print $2"=\""$4"\""}' | sed '/^=/d')
fi
}
for addon in $HOME/.kodi/addons/*/bin /usr/lib/kodi/addons/*/bin; do
[ -d "$addon" ] && PATH="$PATH:$addon"
done
export PATH
LD_LIBRARY_PATH="/usr/lib:/usr/lib/pulseaudio"
for addon in $HOME/.kodi/addons/*/lib /usr/lib/kodi/addons/*/lib; do
[ -d "$addon" ] && LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$addon"
done
export LD_LIBRARY_PATH
......@@ -5,7 +5,7 @@
################################################################################
SMB_CONF_SITE = $(BR2_EXTERNAL_EmbER_PATH)/package/misc/smb_conf/src
SMB_CONF_VERSION = 1.0.2
SMB_CONF_VERSION = 1.0.3
SMB_CONF_SITE_METHOD = local
define SMB_CONF_INSTALL_TARGET_CMDS
......
......@@ -10,11 +10,6 @@ USR_CONF=/root/Configs/smb.conf
start()
{
# Create share directories
for i in Backups Configs Data; do
mkdir -p /root/$i
done
# Install configuration file
SMB_CONF=$DEF_CONF
if [ -f "$USR_CONF" ]; then
......
......@@ -10,24 +10,8 @@ max log size = 50
log file = /var/log/samba/log.smbd
#============================ Share Definitions =============================
[Backups]
path = /root/Backups
public = yes
writable = yes
browseable = yes
guest ok = yes
locking = yes
[Configs]
path = /root/Configs
public = yes
writable = yes
browseable = yes
guest ok = yes
locking = yes
[Data]
path = /root/Data
[Home]
path = /root
public = yes
writable = yes
browseable = yes
......
......@@ -4,7 +4,7 @@
#
################################################################################
RAMDISK_VERSION = 1.0.7
RAMDISK_VERSION = 1.0.8
RAMDISK_SITE = $(BR2_EXTERNAL_EmbER_PATH)/release/ramdisk/src
RAMDISK_SITE_METHOD = local
RAMDISK_DEPENDENCIES = busybox e2fsprogs fbset fbv host-fakeroot
......@@ -58,7 +58,7 @@ endif
# Bin
RAMDISK_BUILD_CMDS += \
$(INSTALL) -m 755 $(TARGET_DIR)/bin/busybox $(RAMDISK_OUT)/bin/; \
for applet in awk blkid cat chmod cp cut echo grep insmod ln ls mkdir mount rm sh switch_root sync touch umount xargs; do \
for applet in awk blkid cat chmod cp cut echo grep insmod ln ls mkdir mount rm sh switch_root sync touch true umount xargs; do \
ln -sf busybox $(RAMDISK_OUT)/bin/$$applet; \
done;
......
......@@ -3,12 +3,6 @@
#
# Embedded Entertainment Rom (EmbER)
#
# Copyright (C) 2017 by EmbER Gadgets Inc. <cronmod.dev@gmail.com>
#
# This software is proprietary and confidential, Unauthorized copying and/or
# redistribution of any files or source code related to or included with
# this program via any medium is strictly prohibited.
#
################################################################################
# Export binary directory
......@@ -77,8 +71,13 @@ mount -t ext4 $DATA /rootfs/mnt/data || (mke2fs -t ext4 $DATA; mount -t ext4 $DA
NEW_VERSION="$(grep GIT_ID $LOWER/etc/os-release | cut -d '=' -f2)"
OLD_VERSION="$(grep GIT_ID /rootfs/mnt/data/.etc/os-release | cut -d '=' -f2)"
if [ ! -d "/rootfs/mnt/data/.etc" ] || [ "$OLD_VERSION" != "$NEW_VERSION" ]; then
cp -a /rootfs/mnt/data/.etc/timeformat /tmp/ 2>/dev/null || true
cp -a /rootfs/mnt/data/.etc/timezone /tmp/ 2>/dev/null || true
rm -rf /rootfs/mnt/data/.etc
cp -a $LOWER/etc /rootfs/mnt/data/.etc
cp -a /tmp/timeformat /rootfs/mnt/data/.etc/ 2>/dev/null || true
cp -a /tmp/timezone /rootfs/mnt/data/.etc/ 2>/dev/null || true
rm -f /tmp/timeformat /tmp/timezone
mkdir -pm 755 /rootfs/mnt/data/.dropbear
ln -sf /mnt/data/.dropbear /rootfs/mnt/data/.etc/dropbear
if [ -d "$LOWER/etc/NetworkManager" ] && [ ! -d "/rootfs/mnt/data/.NetworkManager" ]; then
......@@ -145,6 +144,9 @@ if [ -f "/rootfs/root/.restore/.backup" ]; then
rm -rf /rootfs/root/.restore
fi
# Create /rootfs/root directory structure
mkdir -p /rootfs/root/Backups /rootfs/root/Configs /rootfs/root/Data
# Move /.ovfs and /dev to /rootfs
mkdir /rootfs/.ovfs
mount --move /.ovfs /rootfs/.ovfs
......
......@@ -3,12 +3,6 @@
#
# Embedded Entertainment Rom (EmbER)
#
# Copyright (C) 2017 by EmbER Gadgets Inc. <cronmod.dev@gmail.com>
#
# This software is proprietary and confidential, Unauthorized copying and/or
# redistribution of any files or source code related to or included with
# this program via any medium is strictly prohibited.
#
################################################################################
# Find native framebuffer resolution
......
......@@ -3,12 +3,6 @@
#
# Embedded Entertainment Rom (EmbER)
#
# Copyright (C) 2017 by EmbER Gadgets Inc. <cronmod.dev@gmail.com>
#
# This software is proprietary and confidential, Unauthorized copying and/or
# redistribution of any files or source code related to or included with
# this program via any medium is strictly prohibited.
#
################################################################################
# Find framebuffer resolution
......