stx-gui: uprev to stx 5.0

* update the branch and srcrev for stx 5.0
* update the PV with adding git${SRCPV}
* update the do_install according to the spec for stx 5.0

Story: 2008952
Task: 42576

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I4608a6df4a7377f749d1e115e080f437098f2521
This commit is contained in:
Jackie Huang 2021-05-18 15:32:46 +08:00
parent 84415fdcd7
commit 1a94ea96a8

View File

@ -3,10 +3,10 @@ DESCRIPTION = "stx-gui"
PACKAGES = "starlingx-dashboard"
PROTOCOL = "https"
BRANCH = "r/stx.3.0"
SRCREV = "d1c22e49a95f92e91049b96f44e685f46785977c"
BRANCH = "r/stx.5.0"
SRCREV = "b7bd6ddd7af6c118e37c979689703343ca85631c"
S = "${WORKDIR}/git"
PV = "1.0.0"
PV = "1.0.0+git${SRCPV}"
LICENSE = "Apache-2.0"
@ -50,12 +50,18 @@ do_install () {
install -d -m 0755 ${D}/${datadir}/openstack-dashboard/openstack_dashboard/enabled/
install -d -m 0755 ${D}/${datadir}/openstack-dashboard/openstack_dashboard/themes/starlingx/
install -d -m 0755 ${D}/${datadir}/openstack-dashboard/openstack_dashboard/local/local_settings.d
install -d -m 0755 ${D}/${datadir}/openstack-dashboard/openstack_dashboard/starlingx_templates/
cp -ra ${D}${PYTHON_SITEPACKAGES_DIR}/starlingx_dashboard/enabled/* \
${D}/${datadir}/openstack-dashboard/openstack_dashboard/enabled/
cp -ra ${D}${PYTHON_SITEPACKAGES_DIR}/starlingx_dashboard/themes/starlingx/* \
${D}/${datadir}/openstack-dashboard/openstack_dashboard/themes/starlingx/
cp -ra ${D}${PYTHON_SITEPACKAGES_DIR}/starlingx_dashboard/local/local_settings.d/* \
${D}/${datadir}/openstack-dashboard/openstack_dashboard/local/local_settings.d
cp -ra ${D}${PYTHON_SITEPACKAGES_DIR}/starlingx_dashboard/starlingx_templates/* \
${D}/${datadir}/openstack-dashboard/openstack_dashboard/starlingx_templates/
chmod -R 0755 ${D}/${datadir}/openstack-dashboard/openstack_dashboard/starlingx_templates/*
# comment out this line with syntax error
sed -i -e 's|^OPENSTACK_NEUTRON_NETWORK|# &|' \
${D}/${datadir}/openstack-dashboard/openstack_dashboard/local/local_settings.d/_30_stx_local_settings.py