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@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
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}