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:
parent
fc488b7f1b
commit
ffeecb7483
|
|
@ -11,8 +11,15 @@ SRC_URI = "file://card-detect.c"
|
||||||
|
|
||||||
S = "${WORKDIR}"
|
S = "${WORKDIR}"
|
||||||
|
|
||||||
|
inherit pkgconfig
|
||||||
|
|
||||||
|
export CFLAGS += "`pkg-config --cflags alsa`"
|
||||||
|
export LDLIBS += "`pkg-config --libs alsa`"
|
||||||
|
|
||||||
|
do_configure[noexec] = "1"
|
||||||
|
|
||||||
do_compile() {
|
do_compile() {
|
||||||
${CC} -O2 -Wall card-detect.c -o card-detect -lasound
|
oe_runmake card-detect
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue