stx-metal: set and limit checkouts to subpaths
Signed-off-by: Babak Sarashki <Babak.SarAshki@windriver.com>
This commit is contained in:
parent
39e7a41f9e
commit
15dfc29882
@ -1,7 +1,6 @@
|
|||||||
|
|
||||||
require metal-common.inc
|
require metal-common.inc
|
||||||
|
|
||||||
S = "${S_DIR}/inventory/inventory/"
|
SUBPATH0 = "inventory/inventory/"
|
||||||
|
|
||||||
LICENSE = "Apache-2.0"
|
LICENSE = "Apache-2.0"
|
||||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=1dece7821bf3fd70fe1309eaa37d52a2"
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=1dece7821bf3fd70fe1309eaa37d52a2"
|
||||||
|
@ -1,13 +1,16 @@
|
|||||||
|
|
||||||
DESCRIPTION = "stx-metal"
|
DESCRIPTION = "stx-metal"
|
||||||
|
|
||||||
STABLE = "starlingx/master"
|
STABLE = "starlingx/master"
|
||||||
PROTOCOL = "https"
|
PROTOCOL = "https"
|
||||||
BRANCH = "r/stx.3.0"
|
BRANCH = "r/stx.3.0"
|
||||||
|
SRCNAME = "metal"
|
||||||
SRCREV = "be3cf4eeb50eef55910cf9c73ea47c168005ad64"
|
SRCREV = "be3cf4eeb50eef55910cf9c73ea47c168005ad64"
|
||||||
S_DIR = "${WORKDIR}/git"
|
SRCREV_opendev = "be3cf4eeb50eef55910cf9c73ea47c168005ad64"
|
||||||
|
DESTSUFFIX = "${PN}-${PV}"
|
||||||
PV = "1.0.0"
|
PV = "1.0.0"
|
||||||
|
|
||||||
SRC_URI = "git://opendev.org/starlingx/metal.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 \
|
||||||
|
"
|
||||||
|
|
||||||
DISTRO_FEATURES_BACKFILL_CONSIDERED_remove = "sysvinit"
|
DISTRO_FEATURES_BACKFILL_CONSIDERED_remove = "sysvinit"
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
|
|
||||||
require metal-common.inc
|
require metal-common.inc
|
||||||
|
|
||||||
S = "${S_DIR}/mtce-common/src/"
|
SUBPATH0 = "mtce-common/src/"
|
||||||
|
|
||||||
LICENSE = "Apache-2.0"
|
LICENSE = "Apache-2.0"
|
||||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
|
|
||||||
require metal-common.inc
|
require metal-common.inc
|
||||||
|
|
||||||
S = "${S_DIR}/mtce-compute/src/"
|
SUBPATH0 = "mtce-compute/src/"
|
||||||
|
|
||||||
LICENSE = "Apache-2.0"
|
LICENSE = "Apache-2.0"
|
||||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
|
|
||||||
require metal-common.inc
|
require metal-common.inc
|
||||||
|
|
||||||
S = "${S_DIR}/mtce-control/src/"
|
SUBPATH0 = "mtce-control/src/"
|
||||||
|
|
||||||
LICENSE = "Apache-2.0"
|
LICENSE = "Apache-2.0"
|
||||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
|
|
||||||
require metal-common.inc
|
require metal-common.inc
|
||||||
|
|
||||||
S = "${S_DIR}/mtce-storage/src/"
|
SUBPATH0 = "mtce-storage/src/"
|
||||||
|
|
||||||
LICENSE = "Apache-2.0"
|
LICENSE = "Apache-2.0"
|
||||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
|
|
||||||
require metal-common.inc
|
require metal-common.inc
|
||||||
|
|
||||||
S = "${S_DIR}/mtce/src/"
|
SUBPATH0 = "mtce/src/"
|
||||||
|
|
||||||
|
|
||||||
LICENSE = "Apache-2.0"
|
LICENSE = "Apache-2.0"
|
||||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
|
|
||||||
require metal-common.inc
|
require metal-common.inc
|
||||||
|
SUBPATH0 = "installer/pxe-network-installer/pxe-network-installer"
|
||||||
S = "${S_DIR}/installer/pxe-network-installer/pxe-network-installer"
|
|
||||||
|
|
||||||
LICENSE = "Apache-2.0"
|
LICENSE = "Apache-2.0"
|
||||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
|
||||||
@ -15,20 +13,30 @@ RDEPENDS_${PN}_append += " \
|
|||||||
|
|
||||||
do_compile[noexec] = "1"
|
do_compile[noexec] = "1"
|
||||||
|
|
||||||
|
do_unpack_append() {
|
||||||
|
bb.build.exec_func('do_restore_files', d)
|
||||||
|
}
|
||||||
|
|
||||||
|
do_restore_files() {
|
||||||
|
cd ${S}
|
||||||
|
git reset ${SRCREV} bsp-files/
|
||||||
|
git checkout bsp-files
|
||||||
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
install -d -m 0755 ${D}/pxeboot
|
install -d -m 0755 ${D}/pxeboot
|
||||||
install -d -m 0755 ${D}/pxeboot/pxelinux.cfg.files
|
install -d -m 0755 ${D}/pxeboot/pxelinux.cfg.files
|
||||||
install -d -m 0755 ${D}/pxeboot/rel-${STX_REL}
|
install -d -m 0755 ${D}/pxeboot/rel-${STX_REL}
|
||||||
install -d -m 0755 ${D}/pxeboot/EFI
|
install -d -m 0755 ${D}/pxeboot/EFI
|
||||||
|
|
||||||
install -d -m 0755 ${D}/pxeboot/EFI/poky-stx
|
install -d -m 0755 ${D}/pxeboot/EFI/poky-stx
|
||||||
ln -fs poky-stx ${D}/pxeboot/EFI/centos
|
ln -fs poky-stx ${D}/pxeboot/EFI/centos
|
||||||
ln -fs ${libdir}/grub/x86_64-efi ${D}/pxeboot/EFI/poky-stx/
|
ln -fs ${libdir}/grub/x86_64-efi ${D}/pxeboot/EFI/poky-stx/
|
||||||
|
|
||||||
install -d -m 0755 ${D}/${sbindir}
|
install -d -m 0755 ${D}/${sbindir}
|
||||||
install -m 755 pxeboot-update.sh ${D}/${sbindir}/pxeboot-update-${STX_REL}.sh
|
install -m 755 pxeboot-update.sh ${D}/${sbindir}/pxeboot-update-${STX_REL}.sh
|
||||||
|
|
||||||
install -m 644 ${S_DIR}/bsp-files/kickstarts/post_clone_iso_ks.cfg ${D}/pxeboot/post_clone_iso_ks.cfg
|
install -m 644 bsp-files/kickstarts/post_clone_iso_ks.cfg ${D}/pxeboot/post_clone_iso_ks.cfg
|
||||||
|
|
||||||
install -m 644 default ${D}/pxeboot/pxelinux.cfg.files/default
|
install -m 644 default ${D}/pxeboot/pxelinux.cfg.files/default
|
||||||
install -m 644 default.static ${D}/pxeboot/pxelinux.cfg.files/default.static
|
install -m 644 default.static ${D}/pxeboot/pxelinux.cfg.files/default.static
|
||||||
@ -56,7 +64,7 @@ do_install() {
|
|||||||
${D}/pxeboot/pxelinux.cfg.files/pxe-* ${D}/pxeboot/pxelinux.cfg.files/efi-pxe-*
|
${D}/pxeboot/pxelinux.cfg.files/pxe-* ${D}/pxeboot/pxelinux.cfg.files/efi-pxe-*
|
||||||
|
|
||||||
# Copy Titanium grub.cfg. It will be used to create ISO on the Controller.
|
# Copy Titanium grub.cfg. It will be used to create ISO on the Controller.
|
||||||
install -m 0644 ${S_DIR}/bsp-files/grub.cfg ${D}/pxeboot/EFI/
|
install -m 0644 bsp-files/grub.cfg ${D}/pxeboot/EFI/
|
||||||
|
|
||||||
# UEFI bootloader expect the grub.cfg file to be in /pxeboot/ so create a symlink for it
|
# UEFI bootloader expect the grub.cfg file to be in /pxeboot/ so create a symlink for it
|
||||||
ln -fs pxelinux.cfg/grub.cfg ${D}/pxeboot/grub.cfg
|
ln -fs pxelinux.cfg/grub.cfg ${D}/pxeboot/grub.cfg
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
|
|
||||||
require metal-common.inc
|
require metal-common.inc
|
||||||
|
|
||||||
S = "${S_DIR}/python-inventoryclient/inventoryclient"
|
SUBPATH0 = "python-inventoryclient/inventoryclient"
|
||||||
|
|
||||||
|
|
||||||
LICENSE = "Apache-2.0"
|
LICENSE = "Apache-2.0"
|
||||||
|
Loading…
Reference in New Issue
Block a user