summaryrefslogtreecommitdiff
path: root/classes/openmoko-base.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'classes/openmoko-base.bbclass')
-rw-r--r--classes/openmoko-base.bbclass8
1 files changed, 5 insertions, 3 deletions
diff --git a/classes/openmoko-base.bbclass b/classes/openmoko-base.bbclass
index 184477b1c0..b5459d5066 100644
--- a/classes/openmoko-base.bbclass
+++ b/classes/openmoko-base.bbclass
@@ -4,8 +4,10 @@ OPENMOKO_RELEASE ?= "OM-2007.2"
OPENMOKO_MIRROR ?= "svn://svn.openmoko.org/trunk"
def openmoko_base_get_subdir(d):
- import bb
- openmoko, section = bb.data.getVar('SECTION', d, 1).split("/")
+ if bb.data.getVar('SECTION', d, 1).find("/") != -1:
+ openmoko, section = bb.data.getVar('SECTION', d, 1).split("/")
+ else:
+ section = bb.data.getVar('SECTION', d, 1)
if section == 'base' or section == 'libs': return ""
elif section in 'apps tools pim'.split(): return "applications"
elif section == "panel-plugin": return "panel-plugins"
@@ -14,7 +16,7 @@ def openmoko_base_get_subdir(d):
SUBDIR = "${@openmoko_base_get_subdir(d)}"
-SRC_URI := "${OPENMOKO_MIRROR}/src/target/${OPENMOKO_RELEASE}/${SUBDIR};module=${PN};proto=http"
+SRC_URI = "${OPENMOKO_MIRROR}/src/target/${OPENMOKO_RELEASE}/${SUBDIR};module=${PN};proto=http"
S = "${WORKDIR}/${PN}"
FILES_${PN} += "${datadir}/icons"