1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-08 17:19:20 +00:00

irda-utils: Weak Define the build TARGETS

This will help one to disable the targets via bbappends if needed
e.g. musl can not compile irdaping since it uses includes
net/if_packet.h, which (on GLIBC) only defines struct sockaddr_pkt but
not in other libc e.g. musl that makes irdaping specific to glibc

(From OE-Core rev: 6369bff034a6ee8fbf7fd47d3f9ba46c3ac1a367)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Khem Raj
2015-08-31 06:17:20 +00:00
committed by Richard Purdie
parent 18aaf65b04
commit 5ee0383697
@@ -32,15 +32,18 @@ EXTRA_OEMAKE = "\
INITSCRIPT_NAME = "irattach"
INITSCRIPT_PARAMS = "defaults 20"
TARGETS ??= "irattach irdaping"
do_compile () {
oe_runmake -C irattach
oe_runmake -C irdaping
for t in ${TARGETS}; do
oe_runmake -C $t
done
}
do_install () {
install -d ${D}${sbindir}
oe_runmake -C irattach ROOT="${D}" install
oe_runmake -C irdaping ROOT="${D}" install
for t in ${TARGETS}; do
oe_runmake -C $t ROOT="${D}" install
done
install -d ${D}${sysconfdir}/init.d
install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME}