Merge remote-tracking branch 'OE-2.1/master' into vuplus-3.0
authorhschang <chang@dev3>
Fri, 18 Jul 2014 10:10:41 +0000 (19:10 +0900)
committerhschang <chang@dev3>
Fri, 18 Jul 2014 10:10:41 +0000 (19:10 +0900)
meta-bsp/vuduo2/recipes/vuplus/enigma2.bbappend
meta-bsp/vusolo/recipes/vuplus/enigma2.bbappend
meta-bsp/vusolose/recipes/vuplus/enigma2.bbappend [new file with mode: 0644]
meta-bsp/vusolose/recipes/vuplus/enigma2/enigma2_vuplus_remove_pvr_action.patch [new file with mode: 0644]
meta-openvuplus/recipes-vuplus/enigma2/enigma2.bb
meta-openvuplus/recipes-vuplus/opera-hbbtv/opera-hbbtv_0.2.bb

index 51c5acb..c4d0865 100644 (file)
@@ -1,6 +1,6 @@
 FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
 
-PR.= "-bsp2"
+PR .= "-bsp2"
 
 SRC_URI_append = " \
                file://skin_user_vuduo2.xml \
index 46baf36..24f52c0 100644 (file)
@@ -1,3 +1,3 @@
-PR.= "-bsp1"
+PR .= "-bsp1"
 
 SRC_URI_append = " file://enigma2_vuplus_misc.patch"
diff --git a/meta-bsp/vusolose/recipes/vuplus/enigma2.bbappend b/meta-bsp/vusolose/recipes/vuplus/enigma2.bbappend
new file mode 100644 (file)
index 0000000..da2d36e
--- /dev/null
@@ -0,0 +1,8 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+PR .= "-bsp0"
+
+SRC_URI_append = " \
+               file://enigma2_vuplus_remove_pvr_action.patch \
+"
+
diff --git a/meta-bsp/vusolose/recipes/vuplus/enigma2/enigma2_vuplus_remove_pvr_action.patch b/meta-bsp/vusolose/recipes/vuplus/enigma2/enigma2_vuplus_remove_pvr_action.patch
new file mode 100644 (file)
index 0000000..7816a22
--- /dev/null
@@ -0,0 +1,186 @@
+diff --git a/RecordTimer.py b/RecordTimer.py
+index d3ccd75..838b18a 100755
+--- a/RecordTimer.py
++++ b/RecordTimer.py
+@@ -4,6 +4,7 @@ from enigma import eEPGCache, getBestPlayableServiceReference, \
+ from Components.config import config
+ from Components.UsageConfig import defaultMoviePath
+ from Components.TimerSanityCheck import TimerSanityCheck
++from Components.SystemInfo import SystemInfo
+ from Screens.MessageBox import MessageBox
+ import Screens.Standby
+@@ -114,7 +115,10 @@ class RecordTimerEntry(timer.TimerEntry, object):
+               self.timer = None
+               self.__record_service = None
+               self.start_prepare = 0
+-              self.justplay = justplay
++              if SystemInfo["PVRSupport"]:
++                      self.justplay = justplay
++              else:
++                      self.justplay = True
+               self.afterEvent = afterEvent
+               self.dirname = dirname
+               self.dirnameHadToFallback = False
+@@ -404,7 +408,10 @@ def createTimer(xml):
+       description = xml.get("description").encode("utf-8")
+       repeated = xml.get("repeated").encode("utf-8")
+       disabled = long(xml.get("disabled") or "0")
+-      justplay = long(xml.get("justplay") or "0")
++      if SystemInfo["PVRSupport"]:
++              justplay = long(xml.get("justplay") or "0")
++      else:
++              justplay = long("1")
+       afterevent = str(xml.get("afterevent") or "nothing")
+       afterevent = {
+               "nothing": AFTEREVENT.NONE,
+@@ -590,7 +597,10 @@ class RecordTimer(timer.Timer):
+                       if timer.tags is not None:
+                               list.append(' tags="' + str(stringToXML(' '.join(timer.tags))) + '"')
+                       list.append(' disabled="' + str(int(timer.disabled)) + '"')
+-                      list.append(' justplay="' + str(int(timer.justplay)) + '"')
++                      if SystemInfo["PVRSupport"]:
++                              list.append(' justplay="' + str(int(timer.justplay)) + '"')
++                      else:
++                              list.append(' justplay="1"')
+                       list.append('>\n')
+                       
+                       if config.recording.debug.value:
+diff --git a/data/menu.xml b/data/menu.xml
+index 03e582c..ea225d6 100755
+--- a/data/menu.xml
++++ b/data/menu.xml
+@@ -70,7 +70,7 @@
+                                       <item level="1" text="Device Setup..." entryID="device_setup"><screen module="NetworkSetup" screen="NetworkAdapterSelection"/></item>
+                                       <item level="1" text="Nameserver Setup..." entryID="dns_setup"><screen module="NetworkSetup" screen="NameserverSetup"/></item>
+                               </menu>-->
+-                              <item level="2" text="Recording paths" entryId="RecordPaths"><screen module="RecordPaths" screen="RecordPathsSettings" /></item>
++                              <item level="2" text="Recording paths" entryId="RecordPaths" requires="PVRSupport"><screen module="RecordPaths" screen="RecordPathsSettings" /></item>
+                       </menu>
+                       <item weight="10" level="1" text="Common Interface" entryID="ci_setup" requires="CommonInterface"><screen module="Ci" screen="CiSelection" /></item>
+                       <item weight="15" level="0" text="Parental control" entryID="parental_setup"><screen module="ParentalControlSetup" screen="ParentalControlSetup" /></item>
+diff --git a/data/setup.xml b/data/setup.xml
+index 442fe13..e1e10dc 100755
+--- a/data/setup.xml
++++ b/data/setup.xml
+@@ -22,11 +22,11 @@
+               </setup>
+               <setup key="usage" title="Customize">
+                       <item level="0" text="Setup Mode">config.usage.setup_level</item>
+-                      <item level="1" text="Recordings always have priority">config.recording.asktozap</item>
+-                      <item level="0" text="Margin before record (minutes)">config.recording.margin_before</item>
+-                      <item level="0" text="Margin after record">config.recording.margin_after</item>
+-                      <item level="0" text="Show blinking clock in display during recording">config.usage.blinking_display_clock_during_recording</item>
+-                      <item level="2" text="Show Message when Recording starts">config.usage.show_message_when_recording_starts</item>
++                      <item level="1" text="Recordings always have priority" requires="PVRSupport">config.recording.asktozap</item>
++                      <item level="0" text="Margin before record (minutes)" requires="PVRSupport">config.recording.margin_before</item>
++                      <item level="0" text="Margin after record" requires="PVRSupport">config.recording.margin_after</item>
++                      <item level="0" text="Show blinking clock in display during recording" requires="PVRSupport">config.usage.blinking_display_clock_during_recording</item>
++                      <item level="2" text="Show Message when Recording starts" requires="PVRSupport">config.usage.show_message_when_recording_starts</item>
+                       <item level="2" text="Load Length of Movies in Movielist">config.usage.load_length_of_movies_in_moviellist</item>
+                       <item level="1" text="Show positioner movement">config.usage.showdish</item>
+                       <item level="1" text="Enable multiple bouquets">config.usage.multibouquet</item>
+diff --git a/lib/python/Components/SystemInfo.py b/lib/python/Components/SystemInfo.py
+index f9c4065..5817a49 100644
+--- a/lib/python/Components/SystemInfo.py
++++ b/lib/python/Components/SystemInfo.py
+@@ -1,6 +1,6 @@
+ from enigma import eDVBResourceManager
+ from Tools.Directories import fileExists
+-from Tools.HardwareInfo import HardwareInfo
++from Tools.HardwareInfo import HardwareInfo, HardwareInfoVu
+ SystemInfo = { }
+@@ -29,3 +29,4 @@ SystemInfo["NumFrontpanelLEDs"] = countFrontpanelLEDs()
+ SystemInfo["FrontpanelDisplay"] = fileExists("/dev/dbox/oled0") or fileExists("/dev/dbox/lcd0")
+ SystemInfo["FrontpanelDisplayGrayscale"] = fileExists("/dev/dbox/oled0")
+ SystemInfo["DeepstandbySupport"] = HardwareInfo().get_device_name() != "dm800"
++SystemInfo["PVRSupport"] = HardwareInfoVu().get_device_name() != "solose"
+diff --git a/lib/python/Screens/InfoBarGenerics.py b/lib/python/Screens/InfoBarGenerics.py
+index 80cc196..68e99dc 100755
+--- a/lib/python/Screens/InfoBarGenerics.py
++++ b/lib/python/Screens/InfoBarGenerics.py
+@@ -1181,11 +1181,12 @@ class InfoBarShowMovies:
+ class InfoBarTimeshift:
+       def __init__(self):
+-              self["TimeshiftActions"] = HelpableActionMap(self, "InfobarTimeshiftActions",
+-                      {
+-                              "timeshiftStart": (self.startTimeshift, _("start timeshift")),  # the "yellow key"
+-                              "timeshiftStop": (self.stopTimeshift, _("stop timeshift"))      # currently undefined :), probably 'TV'
+-                      }, prio=1)
++              if SystemInfo["PVRSupport"]:
++                      self["TimeshiftActions"] = HelpableActionMap(self, "InfobarTimeshiftActions",
++                              {
++                                      "timeshiftStart": (self.startTimeshift, _("start timeshift")),  # the "yellow key"
++                                      "timeshiftStop": (self.stopTimeshift, _("stop timeshift"))      # currently undefined :), probably 'TV'
++                              }, prio=1)
+               self["TimeshiftActivateActions"] = ActionMap(["InfobarTimeshiftActivateActions"],
+                       {
+                               "timeshiftActivateEnd": self.activateTimeshiftEnd, # something like "rewind key"
+@@ -1501,10 +1502,11 @@ class InfoBarInstantRecord:
+       """Instant Record - handles the instantRecord action in order to
+       start/stop instant records"""
+       def __init__(self):
+-              self["InstantRecordActions"] = HelpableActionMap(self, "InfobarInstantRecord",
+-                      {
+-                              "instantRecord": (self.instantRecord, _("Instant Record...")),
+-                      })
++              if SystemInfo["PVRSupport"]:
++                      self["InstantRecordActions"] = HelpableActionMap(self, "InfobarInstantRecord",
++                              {
++                                      "instantRecord": (self.instantRecord, _("Instant Record...")),
++                              })
+               self.recording = []
+       def stopCurrentRecording(self, entry = -1):
+diff --git a/lib/python/Screens/TimerEntry.py b/lib/python/Screens/TimerEntry.py
+index 9885e70..1d40547 100644
+--- a/lib/python/Screens/TimerEntry.py
++++ b/lib/python/Screens/TimerEntry.py
+@@ -94,7 +94,12 @@ class TimerEntry(Screen, ConfigListScreen):
+                               weekday = (int(strftime("%w", localtime(self.timer.begin))) - 1) % 7
+                               day[weekday] = 1
+-                      self.timerentry_justplay = ConfigSelection(choices = [("zap", _("zap")), ("record", _("record"))], default = {0: "record", 1: "zap"}[justplay])
++                      timer_choices = [("zap", _("zap"))]
++                      default = "zap"
++                      if SystemInfo["PVRSupport"]:
++                              timer_choices.append(("record", _("record")))
++                              default = {0: "record", 1: "zap"}[justplay]
++                      self.timerentry_justplay = ConfigSelection(choices = timer_choices, default = default)
+                       if SystemInfo["DeepstandbySupport"]:
+                               shutdownString = _("go to deep standby")
+                       else:
+diff --git a/lib/python/Tools/HardwareInfo.py b/lib/python/Tools/HardwareInfo.py
+index e72d291..a1188c1 100644
+--- a/lib/python/Tools/HardwareInfo.py
++++ b/lib/python/Tools/HardwareInfo.py
+@@ -32,3 +32,26 @@ class HardwareInfo:
+       def get_device_name(self):
+               return HardwareInfo.device_name
++
++class HardwareInfoVu:
++      device_name = None
++
++      def __init__(self):
++              if HardwareInfoVu.device_name is not None:
++                      return
++
++              HardwareInfoVu.device_name = "unknown"
++              HardwareInfoVu.vendor_name = "unknown"
++              try:
++                      file = open("/proc/stb/info/vumodel", "r")
++                      HardwareInfoVu.device_name = file.readline().strip()
++                      file.close()
++                      HardwareInfoVu.vendor_name = "vuplus"
++              except:
++                      pass
++
++      def get_device_name(self):
++              return HardwareInfoVu.device_name
++
++      def get_vendor_name(self):
++              return HardwareInfoVu.vendor_name
index 7cda144..ffaa738 100644 (file)
@@ -88,7 +88,7 @@ RDEPENDS_enigma2-plugin-systemplugins-backupsuitehdd = "mtd-utils-mkfs.ubifs mtd
 RDEPENDS_enigma2-plugin-systemplugins-backupsuiteusb = "enigma2-plugin-extensions-backupsuitehdd"
 
 PN = "enigma2"
-PR = "r77"
+PR = "r78"
 
 inherit gitpkgv pythonnative
 
index 40c46d5..3bc6dcd 100644 (file)
@@ -5,7 +5,7 @@ LICENSE = "CLOSED"
 DEPENDS = "mpfr gmp"
 RDEPENDS_${PN} = "sysfsutils vuplus-dvb-modules"
 
-SRC_DATE = "20140717_0"
+SRC_DATE = "20140718_0"
 
 PR = "r1_${SRC_DATE}"
 SRC_URI = ""