[oe-commits] Khem Raj : irda-utils: Weak Define the build TARGETS

git at git.openembedded.org git at git.openembedded.org
Sat Sep 12 21:51:38 UTC 2015


Module: openembedded-core.git
Branch: master
Commit: 6369bff034a6ee8fbf7fd47d3f9ba46c3ac1a367
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=6369bff034a6ee8fbf7fd47d3f9ba46c3ac1a367

Author: Khem Raj <raj.khem at gmail.com>
Date:   Mon Aug 31 06:17:20 2015 +0000

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

Signed-off-by: Khem Raj <raj.khem at gmail.com>
Signed-off-by: Ross Burton <ross.burton at intel.com>

---

 meta/recipes-connectivity/irda-utils/irda-utils_0.9.18.bb | 11 +++++++----
 1 file 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 bd60b9f..8ac3b18 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 = "\
 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}



More information about the Openembedded-commits mailing list