stx-update: set and limit checkouts to subpaths
Signed-off-by: Babak Sarashki <Babak.SarAshki@windriver.com>
This commit is contained in:
parent
5130da8af1
commit
d30908374b
meta-stx-flock/stx-update
@ -1,10 +1,9 @@
|
||||
|
||||
PACKAGES += " ${PN}-agent"
|
||||
PACKAGES += " ${PN}-controller"
|
||||
|
||||
require update-common.inc
|
||||
|
||||
S = "${S_DIR}/cgcs-patch/cgcs-patch"
|
||||
SUBPATH0 = "cgcs-patch/cgcs-patch"
|
||||
|
||||
LICENSE = "Apache-2.0"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
|
||||
@ -40,10 +39,20 @@ SYSTEMD_SERVICE_${PN}-agent = " sw-patch-agent.service"
|
||||
SYSTEMD_PACKAGES += " ${PN}"
|
||||
SYSTEMD_SERVICE_${PN} = "sw-patch.service"
|
||||
|
||||
|
||||
do_unpack_append() {
|
||||
bb.build.exec_func('do_restore_files', d)
|
||||
}
|
||||
|
||||
do_restore_files() {
|
||||
cd ${S}
|
||||
git reset ${SRCREV} cgcs-patch/bin
|
||||
git checkout cgcs-patch/bin
|
||||
}
|
||||
|
||||
do_install_append () {
|
||||
|
||||
cd ${S_DIR}/cgcs-patch/bin
|
||||
|
||||
cd ${S}/cgcs-patch/bin
|
||||
install -m 755 -d ${D}/${sbindir}
|
||||
install -m 755 -d ${D}/${sysconfdir}/bash_completion.d
|
||||
install -m 755 -d ${D}/${sysconfdir}/goenabled.d
|
||||
|
@ -1,14 +1,23 @@
|
||||
|
||||
require update-common.inc
|
||||
|
||||
S = "${S_DIR}/enable-dev-patch"
|
||||
SUBPATH0 = "enable-dev-patch"
|
||||
|
||||
LICENSE = "Apache-2.0"
|
||||
LIC_FILES_CHKSUM = "file://${S_DIR}/LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
|
||||
|
||||
do_configure[noexec] = "1"
|
||||
do_compile[noexec] = "1"
|
||||
|
||||
do_unpack_append() {
|
||||
bb.build.exec_func('do_restore_license_file', d)
|
||||
}
|
||||
|
||||
do_restore_license_file () {
|
||||
cd ${S}
|
||||
git reset HEAD LICENSE
|
||||
git checkout LICENSE
|
||||
}
|
||||
|
||||
do_install () {
|
||||
install -m 755 -d ${D}/${sysconfdir}/pki/wrs
|
||||
install -m 444 enable-dev-patch/dev_certificate_enable.bin ${D}/${sysconfdir}/pki/wrs
|
||||
|
@ -1,10 +1,9 @@
|
||||
|
||||
DESCRIPTION = "TIS Platform Patching"
|
||||
SUMMARY = "Patch alarm management"
|
||||
|
||||
require update-common.inc
|
||||
|
||||
S = "${S_DIR}/patch-alarm/patch-alarm"
|
||||
SUBPATH0 = "patch-alarm/patch-alarm"
|
||||
|
||||
LICENSE = "Apache-2.0"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
|
||||
@ -17,9 +16,20 @@ RDEPENDS_${PN}_append = " \
|
||||
|
||||
inherit setuptools
|
||||
|
||||
do_unpack_append() {
|
||||
bb.build.exec_func('do_restore_files', d)
|
||||
}
|
||||
|
||||
do_restore_files() {
|
||||
cd ${S}
|
||||
git reset ${SRCREV} patch-alarm/scripts
|
||||
git checkout patch-alarm/scripts
|
||||
}
|
||||
|
||||
|
||||
do_install_append () {
|
||||
|
||||
cd ${S_DIR}/patch-alarm/
|
||||
cd ${S}/patch-alarm/
|
||||
|
||||
install -m 755 -d ${D}/${bindir}
|
||||
install -m 755 -d ${D}/${sysconfdir}/init.d
|
||||
|
@ -1,7 +1,6 @@
|
||||
|
||||
require update-common.inc
|
||||
|
||||
S = "${S_DIR}/tsconfig/tsconfig"
|
||||
SUBPATH0 = "tsconfig/tsconfig"
|
||||
|
||||
LICENSE = "Apache-2.0"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
|
||||
|
@ -3,12 +3,16 @@ DESCRIPTION = "stx-update"
|
||||
|
||||
PROTOCOL = "https"
|
||||
BRANCH = "r/stx.3.0"
|
||||
SRCNAME = "update"
|
||||
SRCREV = "2542c5539bab060830009d02cbb257cc8bf4a376"
|
||||
S_DIR = "${WORKDIR}/git"
|
||||
SRCREV_opendev = "2542c5539bab060830009d02cbb257cc8bf4a376"
|
||||
DESTSUFFIX = "${PN}-${PV}"
|
||||
PV = "1.0.0"
|
||||
|
||||
|
||||
SRC_URI = "git://opendev.org/starlingx/update.git;protocol=${PROTOCOL};rev=${SRCREV};branch=${BRANCH}"
|
||||
SRC_URI = " \
|
||||
git://opendev.org/starlingx/${SRCNAME}.git;protocol=${PROTOCOL};rev=${SRCREV};branch=${BRANCH};destsuffix=${DESTSUFFIX};subpath=${SUBPATH0};name=opendev \
|
||||
"
|
||||
|
||||
DEPENDS = " \
|
||||
python \
|
||||
|
Loading…
x
Reference in New Issue
Block a user