Allow openmoko2 to succeed on unsplitable sections
PATCH 1/1 Allow openmoko2 to succeed on unsplitable sections
--- classes/openmoko2.bbclass | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-)
classes/openmoko2.bbclass +8 -2
@@ -6,12 +6,18 @@ OPENMOKO_MIRROR ?= "svn://svn.openmoko.org/trunk" def openmoko_two_get_license(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) return "LGPL GPL".split()[section != "libs"] def openmoko_two_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': return "" elif section == 'libs': return "libraries" elif section in 'apps tools pim'.split(): return "applications"
--
1.5.6.3