mirror of
https://git.yoctoproject.org/poky
synced 2026-09-12 06:49:32 +02:00
classes: Remove and sanitise import statements
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
@@ -5,12 +5,10 @@ OPENMOKO_RELEASE ?= "OM-2007.2"
|
||||
OPENMOKO_MIRROR ?= "svn://svn.openmoko.org/trunk"
|
||||
|
||||
def openmoko_two_get_license(d):
|
||||
import bb
|
||||
openmoko, section = bb.data.getVar('SECTION', d, 1).split("/")
|
||||
return "LGPL GPL".split()[section != "libs"]
|
||||
|
||||
def openmoko_two_get_subdir(d):
|
||||
import bb
|
||||
openmoko, section = bb.data.getVar('SECTION', d, 1).split("/")
|
||||
if section == 'base': return ""
|
||||
elif section == 'libs': return "libraries"
|
||||
|
||||
Reference in New Issue
Block a user