stx-fault: set and limit checkouts to subpaths

Signed-off-by: Babak Sarashki <Babak.SarAshki@windriver.com>
This commit is contained in:
Babak Sarashki 2020-09-22 19:42:46 -07:00
parent 39bdd9d98d
commit 3c99985a46
9 changed files with 23 additions and 15 deletions

View File

@ -2,8 +2,9 @@ DESCRIPTION = "stx-fault"
PROTOCOL = "https"
BRANCH = "r/stx.3.0"
SRCREV_opendev = "2025f585c5b92890c8cb32c480b0151c7c1cb545"
DESTSUFFIX = "${PN}-${PV}"
SRCREV = "2025f585c5b92890c8cb32c480b0151c7c1cb545"
S_DIR = "${WORKDIR}/git"
PV = "1.0.0"
LICENSE = "Apache-2.0"
@ -23,7 +24,7 @@ DEPENDS = " \
RDEPENDS_${PN} += " bash"
LIC_FILES_CHKSUM = "file://${S_DIR}/LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
SRC_URI = "git://opendev.org/starlingx/fault.git;protocol=${PROTOCOL};rev=${SRCREV};branch=${BRANCH}"
SRC_URI = " \
git://opendev.org/starlingx/fault.git;protocol=${PROTOCOL};rev=${SRCREV};destsuffix=${DESTSUFFIX};branch=${BRANCH};subpath=${SUBPATH0};name=opendev \
"

View File

@ -2,4 +2,5 @@ inherit setuptools
require fault-common.inc
S="${S_DIR}/fm-api"
SUBPATH0 = "fm-api"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"

View File

@ -1,4 +1,3 @@
#
inherit autotools
inherit setuptools
@ -6,7 +5,9 @@ require fault-common.inc
SRC_URI += "file://0001-fm-common-add-LDFLAGS.patch"
S = "${S_DIR}/fm-common/sources"
SUBPATH0 = "fm-common/sources"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
EXTRA_OEMAKE = '-e INCLUDES="-I./ " \
EXTRACCFLAGS=" " \
CCFLAGS="${CXXFLAGS} ${CCSHARED}" \

View File

@ -1,7 +1,7 @@
require fault-common.inc
S = "${S_DIR}/fm-doc/fm_doc"
SUBPATH0 = "fm-doc/fm_doc"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
do_configure () {
:

View File

@ -2,7 +2,9 @@ inherit systemd
require fault-common.inc
SRC_URI += "file://0001-fm-mgr-Fix-install-target.patch"
S = "${S_DIR}/fm-mgr/sources"
SUBPATH0 = "fm-mgr/sources"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
DEPENDS += "fm-common"

View File

@ -1,8 +1,9 @@
inherit setuptools
require fault-common.inc
SUBPATH0 = "fm-rest-api/fm"
S = "${S_DIR}/fm-rest-api/fm"
LIC_FILES_CHKSUM = "file://LICENSE;md5=1dece7821bf3fd70fe1309eaa37d52a2"
do_install_append() {

View File

@ -1,6 +1,6 @@
inherit setuptools
require fault-common.inc
S = "${S_DIR}/python-fmclient/fmclient"
SUBPATH0 = "python-fmclient/fmclient"
LIC_FILES_CHKSUM = "file://LICENSE;md5=1dece7821bf3fd70fe1309eaa37d52a2"

View File

@ -4,7 +4,8 @@ DEPENDS += "fm-common net-snmp"
SRC_URI += "file://0001-snmp-audittrail-add-LDFLAGS.patch"
S = "${S_DIR}/snmp-audittrail/sources"
SUBPATH0 = "snmp-audittrail/sources"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
EXTRA_OEMAKE = '-e PATCH=0 \
INCLUDES="-I. -I${S}/fm-common/sources" \

View File

@ -4,7 +4,8 @@ DEPENDS += "fm-common snmp-audittrail"
SRC_URI += "file://0001-snmp-ext-add-LDFLAGS.patch"
S = "${S_DIR}/snmp-ext/sources"
SUBPATH0 = "snmp-ext/sources"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
EXTRA_OEMAKE = '-e PATCH=0 \
INCLUDES="-I. -I${S}/fm-common/sources" \