diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2010-10-19 09:44:01 +0200 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2010-10-19 22:32:16 +0200 |
commit | 3b2dd54a4a7fc0c951cf9e6f7b1db0c6a22637c6 (patch) | |
tree | fed512b5271db35e8a461afb094b6778695ee9fc /recipes/obsolete/classes/openmoko-base.bbclass | |
parent | 83847370bdcd13cc39adfbc1a1109584efc7fe00 (diff) | |
download | openembedded-3b2dd54a4a7fc0c951cf9e6f7b1db0c6a22637c6.tar.gz |
openmoko: obsolete old openmoko classes and recipes using those
Acked-by: Michael 'Mickey' Lauer <mickey@openmoko.org>
Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'recipes/obsolete/classes/openmoko-base.bbclass')
-rw-r--r-- | recipes/obsolete/classes/openmoko-base.bbclass | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/recipes/obsolete/classes/openmoko-base.bbclass b/recipes/obsolete/classes/openmoko-base.bbclass new file mode 100644 index 0000000000..b5459d5066 --- /dev/null +++ b/recipes/obsolete/classes/openmoko-base.bbclass @@ -0,0 +1,22 @@ +HOMEPAGE = "http://www.openmoko.org" +LICENSE ?= "GPL" +OPENMOKO_RELEASE ?= "OM-2007.2" +OPENMOKO_MIRROR ?= "svn://svn.openmoko.org/trunk" + +def openmoko_base_get_subdir(d): + 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" + elif section == "inputmethods": return "inputmethods" + else: return section + +SUBDIR = "${@openmoko_base_get_subdir(d)}" + +SRC_URI = "${OPENMOKO_MIRROR}/src/target/${OPENMOKO_RELEASE}/${SUBDIR};module=${PN};proto=http" +S = "${WORKDIR}/${PN}" + +FILES_${PN} += "${datadir}/icons" |