wlconf-bin: repository reorganization: get rid of machine branches

Avoid using machine branches which can lead into failling bitbake
parsing process when branch does not exists.

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
This commit is contained in:
Ramon Moesching 2019-09-18 09:33:50 +02:00
parent a440f9b0b4
commit 497e6283e8
1 changed files with 9 additions and 7 deletions

View File

@ -3,12 +3,10 @@ HOMEPAGE = "http://www.netmodule.com/"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
SRC_URI = "git://git.netmodule.intranet/nm-tools/wlconf-bin.git;protocol=ssh;user=gitea;branch=${MACHINE}"
SRC_URI = "git://git.netmodule.intranet/nm-tools/wlconf-bin.git;protocol=ssh;user=gitea;branch=master"
S = "${WORKDIR}/git"
SRCREV = "${AUTOREV}"
SRCREV_am335x-nmhw21 = "d4bb29b9794defbf25ce3b7cc7e0f190d5445bd9"
INSTALLPATH = "${nonarch_base_libdir}/firmware/ti-connectivity"
CONFIGBINARY = "wl18xx-conf.bin"
@ -16,9 +14,13 @@ CONFIGBINARY = "wl18xx-conf.bin"
FILES_${PN} += "${nonarch_base_libdir}/firmware/"
do_install() {
install -d ${D}/${INSTALLPATH}
cp -a ${S}/wlconf-8.7.3/bin/${CONFIGBINARY} ${D}/${INSTALLPATH} --no-preserve=ownership
ln -sfr ${D}/${INSTALLPATH}/${CONFIGBINARY} ${D}${nonarch_base_libdir}/firmware/${CONFIGBINARY}
do_install () {
install -d ${D}/${INSTALLPATH}
if ls ${S}/wlconf-8.7.3/bin/${MACHINE}/${CONFIGBINARY} 1> /dev/null 2>&1 ; then
install -m 0644 ${S}/wlconf-8.7.3/bin/${MACHINE}/${CONFIGBINARY} ${D}/${INSTALLPATH}
ln -sfr ${D}/${INSTALLPATH}/${CONFIGBINARY} ${D}${nonarch_base_libdir}/firmware/${CONFIGBINARY}
fi
}