Some binaries in can-utils depend on features in the socket-can svn
repository. Building with exported headers from an unpatched kernel will
fail due to missing symbols or headers.

This patch adds two make variables to optionally disable building such
binaries, like this:

make PROGRAMS_ISOTP= PROGRAMS_CANGW= all

Signed-off-by: Olaf Hering <[email protected]>

Index: can-utils-0.svn1152/Makefile
===================================================================
--- can-utils-0.svn1152.orig/Makefile
+++ can-utils-0.svn1152/Makefile
@@ -53,10 +53,13 @@ CFLAGS    = -O2 -Wall -Wno-parentheses -
            -DPF_CAN=29 \
            -DAF_CAN=PF_CAN
 
+PROGRAMS_ISOTP = isotpdump isotprecv isotpsend isotpsniffer isotptun
+PROGRAMS_CANGW = cangw
 PROGRAMS = candump cansniffer cansend canplayer canlogserver cangen\
           canbusload log2long log2asc asc2log bcmserver\
-          isotpdump isotprecv isotpsend isotpsniffer isotptun\
-          slcan_attach slcand slcanpty canfdtest cangw
+          $(PROGRAMS_ISOTP)\
+          $(PROGRAMS_CANGW)\
+          slcan_attach slcand slcanpty canfdtest
 
 all: $(PROGRAMS)
 
_______________________________________________
Socketcan-core mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/socketcan-core

Reply via email to