meta-starlingx/meta-stx-flock/stx-metal/platform-kickstarts.bb
Jackie Huang 68abae8f87 stx-metal: add vlan setting for debain style networking in kickstart
Yocto uses debain style for networking, the previous patch
kickstarts-add-setting-for-debain-style-networking.patch
has fixed the non-vlan scenario but not for vlan scenario,
so add vlan settings as well.

Partial-Bug: 1905369

Change-Id: I726224ca6c2b372b8a561482c33f56c89e2bae30
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
2020-11-27 10:52:57 +08:00

61 lines
1.3 KiB
BlitzBasic

require metal-common.inc
SUBPATH0 = "bsp-files/"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://kickstart/LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
SRC_URI += " \
file://kickstarts-adjustment-and-fixes-or-poky-stx.patch;striplevel=2 \
file://kickstarts-add-setting-for-debain-style-networking.patch;striplevel=2 \
file://kickstarts-add-vlan-setting-for-debain-style-network.patch;striplevel=2 \
"
PACKAGES += " \
${PN}-pxeboot \
${PN}-extracfgs \
"
feed_dir = "/www/pages/feed/rel-${STX_REL}"
DEPENDS += "perl-native"
inherit deploy
do_unpack_append() {
bb.build.exec_func('do_restore_files', d)
}
do_restore_files() {
cd ${S}
git reset ${SRCREV} kickstart/LICENSE
git checkout kickstart/LICENSE
}
do_compile () {
cd ${S}
./centos-ks-gen.pl --release ${STX_REL}
}
do_install_prepend () {
cd ${S}
install -d -m 0755 ${D}${feed_dir}
install -m 0444 generated/* ${D}${feed_dir}/
install -d -m 0755 ${D}/pxeboot
install -D -m 0444 pxeboot/* ${D}/pxeboot
install -d -m 0755 ${D}/extra_cfgs
install -D -m 0444 extra_cfgs/* ${D}/extra_cfgs
}
do_deploy () {
mkdir -p ${DEPLOYDIR}/stx-kickstarts
cp -f ${S}/generated/* ${DEPLOYDIR}/stx-kickstarts
}
addtask do_deploy after do_compile before do_build
FILES_${PN} = "${feed_dir}"
FILES_${PN}-pxeboot = "/pxeboot"
FILES_${PN}-extracfgs = "/extra_cfgs"