1
0
forked from brl/citadel
citadel/meta-citadel/classes/external-tree.bbclass
Bruce Leidl 4c20ae0d6d Move gnome-shell and mutter development to git.
Rather than having one big opaque patch with no change history citadel
changes will be developed on a git branch.
2021-12-16 10:19:43 -05:00

34 lines
683 B
Plaintext

S = "${WORKDIR}${@source_path(d)}"
SRC_URI = "${@source_uri(d)}"
def source_path(d):
var = d.getVar("EXTERNAL_TREE_VAR")
tree_path = d.getVar(var)
if tree_path:
return tree_path
else:
return "/git"
def source_uri(d):
var = d.getVar("EXTERNAL_TREE_VAR")
tree_path = d.getVar(var)
if tree_path:
return "file://" + tree_path
else:
return d.getVar("GIT_URI")
# Set debug build if $EXTERNAL_TREE_VAR is set for faster builds
DEBUG_BUILD = "${@debug_build(d)}"
def debug_build(d):
var = d.getVar("EXTERNAL_TREE_VAR")
tree_path = d.getVar(var)
if tree_path:
return "1"
else:
return "0"