opie-image: install more stuff on devices with ROOT_FLASH_SIZE >= 24MB
authorMichael Lauer <mickey@vanille-media.de>
Tue, 21 Dec 2004 14:00:11 +0000 (14:00 +0000)
committerMichael Lauer <mickey@vanille-media.de>
Tue, 21 Dec 2004 14:00:11 +0000 (14:00 +0000)
BKrev: 41c82c6boPx69Cjwy0T3Dqhmezpsfw

packages/meta/opie-collections.inc
packages/meta/opie-image.bb

index 6f29b26..d379c5d 100644 (file)
@@ -61,3 +61,28 @@ OPIE_EXTRA_APPS = "opie-advancedfm"
 OPIE_EXTRA_SETTINGS = "opie-language opie-launcher-settings opie-doctab opie-security \
             opie-mediummount opie-networksettings-wlanplugin opie-networksettings-pppplugin"
 
+#
+# Additional things for a >= 24MB distribution
+#
+
+OPIE_DEPENDS_24 = "konqueror-embedded"
+OPIE_RDEPENDS_24 = "konqueror-embedded"
+
+#
+#
+#
+
+def opie_more_depends(d):
+       import bb
+       root_flash_size = int( bb.data.getVar( "ROOT_FLASH_SIZE", d, True ) )
+       if root_flash_size >= 24: return bb.data.getVar( "OPIE_DEPENDS_24", d, True )
+       else: return " "
+
+def opie_more_rdepends(d):  
+        import bb
+        root_flash_size = int( bb.data.getVar( "ROOT_FLASH_SIZE", d, True ) )
+        if root_flash_size >= 24: return bb.data.getVar( "OPIE_RDEPENDS_24", d, True )
+        else: return " "
+
+OPIE_MORE_DEPENDS := "${@opie_more_depends(d)}"    
+OPIE_MORE_RDEPENDS := "${@opie_more_rdepends(d)}"
index 8fd4d7d..83004f1 100644 (file)
@@ -1,11 +1,11 @@
 export IMAGE_BASENAME = "opie-image"
 export IMAGE_LINGUAS = ""
 
-FEED_URIS_append_openzaurus = " opie##http://openzaurus.org/official/unstable/3.5.2/feed/opie"
-FEED_URIS_append_opensimpad = " opie##http://openzaurus.org/official/unstable/3.5.2/feed/opie"
-FEED_URIS_append_familiar   = " opie##http://familiar.handhelds.org/releases/0.8/feed/opie"
+FEED_URIS_append_openzaurus = " opie##http://openzaurus.org/official/unstable/${DISTRO_VERSION}/feed/opie"
+FEED_URIS_append_opensimpad = " opie##http://openzaurus.org/official/unstable/${DISTRO_VERSION}/feed/opie"
+FEED_URIS_append_familiar   = " opie##http://familiar.handhelds.org/releases/${DISTRO_VERSION}/feed/opie"
 
-PR = "r9"
+PR = "r10"
 
 include opie-collections.inc
 
@@ -17,12 +17,14 @@ export IPKG_INSTALL = "task-bootstrap ${OPIE_LIBS_RDEPENDS} ${OPIE_BASE} ${OPIE_
                        ${OPIE_BASE_SETTINGS} ${OPIE_BASE_APPS} ${OPIE_BASE_RDEPENDS} \
                        ${OPIE_PIM} ${OPIE_EXTRA_APPLETS} ${OPIE_EXTRA_SETTINGS} \
                        ${OPIE_EXTRA_APPS} ${OPIE_BASE_STYLES} ${OPIE_BASE_DECOS} \
-                       ${OPIE_BASE_INPUTMETHODS}"
+                       ${OPIE_BASE_INPUTMETHODS} ${OPIE_MORE_RDEPENDS}"
  
 DEPENDS = "task-bootstrap ${OPIE_LIBS_DEPENDS} ${OPIE_BASE} ${OPIE_BASE_APPLETS} \
             ${OPIE_BASE_SETTINGS}  ${OPIE_BASE_APPS} ${OPIE_BASE_DEPENDS} ${OPIE_PIM} \
             ${OPIE_EXTRA_APPLETS} ${OPIE_EXTRA_SETTINGS} ${OPIE_EXTRA_APPS} \
-            ${OPIE_BASE_STYLES} ${OPIE_BASE_DECOS} ${OPIE_BASE_INPUTMETHODS}"
+            ${OPIE_BASE_STYLES} ${OPIE_BASE_DECOS} ${OPIE_BASE_INPUTMETHODS} ${OPIE_MORE_DEPENDS}"
+
+
 
 # merge feed-sources into ipkg.conf for opie-aqpkg as it can't handle feed-sources outside of ipkg.conf.
 merge_feeds() {