summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2015-08-31 06:17:20 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-12 22:48:37 +0100
commit5ee0383697a1601b225e9df9bb4e532ba427aa1b (patch)
tree701777d22b7cbbad333fa0c38c99666666e7e406 /meta
parent18aaf65b04e4a09f432d3a5e5b6288e0ff4237f8 (diff)
downloadpoky-5ee0383697a1601b225e9df9bb4e532ba427aa1b.tar.gz
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>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-connectivity/irda-utils/irda-utils_0.9.18.bb11
1 files changed, 7 insertions, 4 deletions
diff --git a/meta/recipes-connectivity/irda-utils/irda-utils_0.9.18.bb b/meta/recipes-connectivity/irda-utils/irda-utils_0.9.18.bb
index bd60b9f1e6..8ac3b18697 100644
--- a/meta/recipes-connectivity/irda-utils/irda-utils_0.9.18.bb
+++ b/meta/recipes-connectivity/irda-utils/irda-utils_0.9.18.bb
@@ -32,15 +32,18 @@ EXTRA_OEMAKE = "\
32INITSCRIPT_NAME = "irattach" 32INITSCRIPT_NAME = "irattach"
33INITSCRIPT_PARAMS = "defaults 20" 33INITSCRIPT_PARAMS = "defaults 20"
34 34
35TARGETS ??= "irattach irdaping"
35do_compile () { 36do_compile () {
36 oe_runmake -C irattach 37 for t in ${TARGETS}; do
37 oe_runmake -C irdaping 38 oe_runmake -C $t
39 done
38} 40}
39 41
40do_install () { 42do_install () {
41 install -d ${D}${sbindir} 43 install -d ${D}${sbindir}
42 oe_runmake -C irattach ROOT="${D}" install 44 for t in ${TARGETS}; do
43 oe_runmake -C irdaping ROOT="${D}" install 45 oe_runmake -C $t ROOT="${D}" install
46 done
44 47
45 install -d ${D}${sysconfdir}/init.d 48 install -d ${D}${sysconfdir}/init.d
46 install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME} 49 install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME}