morty migration: card-detect: fix build failure

Let Yocto use their own compilation flags instead of hard-coding the
compile command. This fixes:

ERROR: card-detect-1.0-r0 do_package_qa: QA Issue: No GNU_HASH in the elf binary

https://jira.digi.com/browse/DEL-3451

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
Javier Viguera 2017-02-22 14:15:18 +01:00
parent fc488b7f1b
commit ffeecb7483
1 changed files with 8 additions and 1 deletions

View File

@ -11,8 +11,15 @@ SRC_URI = "file://card-detect.c"
S = "${WORKDIR}"
inherit pkgconfig
export CFLAGS += "`pkg-config --cflags alsa`"
export LDLIBS += "`pkg-config --libs alsa`"
do_configure[noexec] = "1"
do_compile() {
${CC} -O2 -Wall card-detect.c -o card-detect -lasound
oe_runmake card-detect
}
do_install() {