]> code.ossystems Code Review - openembedded-core.git/commitdiff
alsa-utils: fix installed-vs-shipped for bat
authorStefan Müller-Klieser <s.mueller-klieser@phytec.de>
Fri, 5 Aug 2016 14:27:16 +0000 (16:27 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 10 Aug 2016 09:45:13 +0000 (10:45 +0100)
The bat PACKAGECONFIG does not install the test script correctly. Fix
this by following the packaging used for the other bash scripts. While
at it, fix some tabs.

Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-multimedia/alsa/alsa-utils-scripts_1.1.1.bb
meta/recipes-multimedia/alsa/alsa-utils_1.1.1.bb

index a98f9b90ba1bda58b8694d0bfade71bcb64003d5..fef79d9c9c6d55ae6acb9567da91b0c298cb6c53 100644 (file)
@@ -10,6 +10,7 @@ RDEPENDS_${PN} += "bash"
 
 FILES_${PN} = "${sbindir}/alsaconf \
                ${sbindir}/alsa-info.sh \
+               ${sbindir}/alsabat-test.sh \
               "
 
 S = "${WORKDIR}/alsa-utils-${PV}"
@@ -18,4 +19,7 @@ do_install() {
        install -d ${D}${sbindir}
        install -m 0755 ${B}/alsaconf/alsaconf ${D}${sbindir}/
        install -m 0755 ${S}/alsa-info/alsa-info.sh ${D}${sbindir}/
+       if ${@bb.utils.contains('PACKAGECONFIG', 'bat', 'true', 'false', d)}; then
+               install -m 0755 ${S}/bat/alsabat-test.sh ${D}${sbindir}/
+       fi
 }
index 08c4646e3411b5b88fc1a63950260006f17ee2d1..ddb1644bcf597e8949fcf85a46b9d53409e5656e 100644 (file)
@@ -99,10 +99,11 @@ do_install() {
        # See alsa-utils-scripts_${PV}.bb
        rm ${D}${sbindir}/alsaconf
        rm ${D}${sbindir}/alsa-info.sh
+       rm -f ${D}${sbindir}/alsabat-test.sh
 
        if ${@bb.utils.contains('PACKAGECONFIG', 'udev', 'false', 'true', d)}; then
-          # This is where alsa-utils will install its rules if we don't tell it anything else.
-          rm -rf ${D}/lib/udev
-          rmdir --ignore-fail-on-non-empty ${D}/lib
+               # This is where alsa-utils will install its rules if we don't tell it anything else.
+               rm -rf ${D}/lib/udev
+               rmdir --ignore-fail-on-non-empty ${D}/lib
        fi
 }