citadel/meta-citadel/recipes-core/citadel-tools/citadel-tools.inc

65 lines
1.3 KiB
PHP
Raw Normal View History

2018-12-31 18:35:36 -05:00
SUMMARY = "${PN}"
HOMEPAGE = "http://github.com/subgraph/citadel"
LICENSE = "CLOSED"
LIC_FILES_CHKSUM=""
2018-12-31 18:35:36 -05:00
inherit cargo
#
# Update this when changes are pushed to github
#
2019-01-15 12:04:34 -05:00
SRCREV = "91530279cf8390e2085ae9539d0dd4809f43ff4c"
2018-12-31 18:35:36 -05:00
GIT_URI = "git://github.com/subgraph/citadel-tools.git;protocol=https"
#
# To make development more convenient citadel-tools recipes support
# building from a checked out tree on the filesystem. If the variable
# CITADEL_TOOLS_PATH is set (preferably in build/conf/local.conf) then
# bitbake will not check out the source files from git but instead will
# copy the directory this variable contains.
#
#
#
# By default:
#
# S = "${WORKDIR}/git/${BPN}",
#
# if CITADEL_TOOLS_PATH is set:
#
# S = ${WORKDIR}${CITADEL_TOOLS_PATH}/${BPN}
#
S = "${WORKDIR}${@source_path(d)}/${BPN}"
#
# By default:
#
# SRC_URI += ${GIT_URI}
#
# If CITADEL_TOOLS_PATH is set:
#
# SRC_URI += "file://${CITADEL_TOOLS_PATH}"
#
SRC_URI += "${@source_uri(d)}"
# what is this even for?
CARGO_SRC_DIR=""
2018-12-31 18:35:36 -05:00
def source_path(d):
tools_path = d.getVar("CITADEL_TOOLS_PATH")
if tools_path:
return tools_path
else:
return "/git"
def source_uri(d):
tools_path = d.getVar("CITADEL_TOOLS_PATH")
if tools_path:
return "file://" + tools_path
else:
return d.getVar("GIT_URI")