diff options
author | Koen Kooi <koen@openembedded.org> | 2007-07-30 12:15:50 +0000 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2007-07-30 12:15:50 +0000 |
commit | 22e8cbdc0a528809d27b957dcf5d36ea746ff6a9 (patch) | |
tree | 97ae1fe74c131294ce0091b6815abb00d20fc87a /classes/openmoko2.bbclass | |
parent | 9164200bc96377bb37f538ded73845f091d17c30 (diff) |
openmoko2.bbclass: add some ugly python foo to get the correct modulename and sourcedir
Diffstat (limited to 'classes/openmoko2.bbclass')
-rw-r--r-- | classes/openmoko2.bbclass | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/classes/openmoko2.bbclass b/classes/openmoko2.bbclass index 4675b6a10e..150448a2e5 100644 --- a/classes/openmoko2.bbclass +++ b/classes/openmoko2.bbclass @@ -19,10 +19,17 @@ def openmoko_two_get_subdir(d): elif section == "inputmethods": return "inputmethods" else: return section +def openmoko_strip_two(d): + import bb + pname, openmokonumber = bb.data.getVar('PN', d, 1).split("2") + return pname + + LICENSE = "${@openmoko_two_get_license(d)}" SUBDIR = "${@openmoko_two_get_subdir(d)}" +PNAME = "${@openmoko_strip_two(d)}" -SRC_URI := "${OPENMOKO_MIRROR}/src/target/${OPENMOKO_RELEASE}/${SUBDIR};module=${PN};proto=http" -S = "${WORKDIR}/${PN}" +SRC_URI := "${OPENMOKO_MIRROR}/src/target/${OPENMOKO_RELEASE}/${SUBDIR};module=${PNAME};proto=http" +S = "${WORKDIR}/${PNAME}" FILES_${PN} += "${datadir}/icons" |