summaryrefslogtreecommitdiff
path: root/recipes/socketcan
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
committerDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
commit709c4d66e0b107ca606941b988bad717c0b45d9b (patch)
tree37ee08b1eb308f3b2b6426d5793545c38396b838 /recipes/socketcan
parentfa6cd5a3b993f16c27de4ff82b42684516d433ba (diff)
rename packages/ to recipes/ per earlier agreement
See links below for more details: http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326 http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816 Signed-off-by: Denys Dmytriyenko <denis@denix.org> Acked-by: Mike Westerhof <mwester@dls.net> Acked-by: Philip Balister <philip@balister.org> Acked-by: Khem Raj <raj.khem@gmail.com> Acked-by: Marcin Juszkiewicz <hrw@openembedded.org> Acked-by: Koen Kooi <koen@openembedded.org> Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'recipes/socketcan')
-rw-r--r--recipes/socketcan/files/autotoolize.patch188
-rw-r--r--recipes/socketcan/socketcan-modules_svn.bb14
-rw-r--r--recipes/socketcan/socketcan-utils-test_svn.bb15
3 files changed, 217 insertions, 0 deletions
diff --git a/recipes/socketcan/files/autotoolize.patch b/recipes/socketcan/files/autotoolize.patch
new file mode 100644
index 0000000000..ca8f629a1c
--- /dev/null
+++ b/recipes/socketcan/files/autotoolize.patch
@@ -0,0 +1,188 @@
+
+Property changes on: test/Makefile.old
+___________________________________________________________________
+Added: svn:mergeinfo
+
+Index: test/Makefile.am
+===================================================================
+--- test/Makefile.am (revision 0)
++++ test/Makefile.am (revision 0)
+@@ -0,0 +1,43 @@
++AM_CFLAGS = @CFLAGS@
++
++bin_PROGRAMS = tst_raw \
++ tst_raw_filter \
++ tst_err \
++ tst_raw_sendto \
++ tst_packet \
++ tst_filter_master \
++ tst_filter_server \
++ tst_bcm_cycle \
++ tst_bcm_server \
++ tst_bcm_tx_read \
++ tst_bcm_rtr \
++ tst_bcm_single \
++ tst_bcm_filter \
++ tst_bcm_throttle \
++ tst_bcm_rx_sendto \
++ tst_bcm_tx_sendto \
++ tst_bcm_dump \
++ tst_proc \
++ canecho
++
++tst_raw_SOURCES = tst-raw.c
++tst_raw_filter_SOURCES = tst-raw-filter.c
++tst_err_SOURCES = tst-err.c
++tst_raw_sendto_SOURCES = tst-raw-sendto.c
++tst_packet_SOURCES = tst-packet.c
++tst_filter_master_SOURCES = tst-filter-master.c
++tst_filter_server_SOURCES = tst-filter-server.c
++tst_bcm_cycle_SOURCES = tst-bcm-cycle.c
++tst_bcm_server_SOURCES = tst-bcm-server.c
++tst_bcm_tx_read_SOURCES = tst-bcm-tx_read.c
++tst_bcm_rtr_SOURCES = tst-bcm-rtr.c
++tst_bcm_single_SOURCES = tst-bcm-single.c
++tst_bcm_filter_SOURCES = tst-bcm-filter.c
++tst_bcm_throttle_SOURCES = tst-bcm-throttle.c
++tst_bcm_rx_sendto_SOURCES = tst-bcm-rx-sendto.c
++tst_bcm_tx_sendto_SOURCES = tst-bcm-tx-sendto.c
++tst_bcm_dump_SOURCES = tst-bcm-dump.c
++tst_proc_SOURCES = tst-proc.c
++canecho_SOURCES = canecho.c
++
++
+Index: README
+===================================================================
+--- README (revision 917)
++++ README (working copy)
+@@ -57,10 +57,15 @@
+
+ 2b. Compile and install the user space utilities and test programs
+
+-...
++ autoreconf -i
++ ./configure
++ make install
+
+-[ Run make in can-utils and test dirs and cp binaries to /usr/local ]
+
++To install to a temporary directory for development, you can do something like:
++
++ ./configure --prefix=`pwd`/install
++ make install
+
+ 3. How to use socketcan
+
+
+Property changes on: can-utils/Makefile.old
+___________________________________________________________________
+Added: svn:mergeinfo
+
+Index: can-utils/Makefile.am
+===================================================================
+--- can-utils/Makefile.am (revision 0)
++++ can-utils/Makefile.am (revision 0)
+@@ -0,0 +1,47 @@
++
++AM_CFLAGS = @CFLAGS@
++
++lib_LTLIBRARIES = libcanutils.la
++
++libcanutils_la_SOURCES = lib.c lib.h
++
++bin_PROGRAMS = candump cansniffer cansend canplayer canlogserver cangen \
++ canbusload log2long log2asc asc2log vcan slcan_attach \
++ isotpdump isotprecv isotpsend isotpsniffer isotptun slcanpty
++
++
++cansend_SOURCES = cansend.c lib.h
++cansend_LDADD = libcanutils.la
++
++cangen_SOURCES = cangen.c lib.h
++cangen_LDADD = libcanutils.la
++
++candump_SOURCES = candump.c lib.h
++candump_LDADD = libcanutils.la
++
++canplayer_SOURCES = canplayer.c lib.h
++canplayer_LDADD = libcanutils.la
++
++canlogserver_SOURCES = canlogserver.c lib.h
++canlogserver_LDADD = libcanutils.la
++
++log2long_SOURCES = log2long.c lib.h
++log2long_LDADD = libcanutils.la
++
++log2asc_SOURCES = log2asc.c lib.h
++log2asc_LDADD = libcanutils.la
++
++asc2log_SOURCES = asc2log.c lib.h
++asc2log_LDADD = libcanutils.la
++
++canbusload_SOURCES = canbusload.c lib.h
++cansniffer_SOURCES = cansniffer.c
++vcan_SOURCES = vcan.c
++slcan_attach_SOURCES = slcan_attach.c
++isotpdump_SOURCES = isotpdump.c
++isotprecv_SOURCES = isotprecv.c
++isotpsend_SOURCES = isotpsend.c
++isotpsniffer_SOURCES = isotpsniffer.c
++isotptun_SOURCES = isotptun.c
++slcanpty_SOURCES = slcanpty.c
++
+Index: configure.ac
+===================================================================
+--- configure.ac (revision 0)
++++ configure.ac (revision 0)
+@@ -0,0 +1,26 @@
++AC_INIT(socketcan, 0.1)
++AM_INIT_AUTOMAKE([-Wall -Werror foreign])
++AC_PROG_CC
++
++# for now we disable shared libs for simplicity -- we might
++# want to use them at some point in the future
++AC_DISABLE_SHARED
++
++AC_PROG_LIBTOOL
++
++CFLAGS="$CFLAGS \
++ -O2 -Wall -Wno-parentheses -I../kernel/2.6/include \
++ -fno-strict-aliasing \
++ -DETH_P_CAN=0x000C \
++ -DPF_CAN=29 \
++ -DAF_CAN=PF_CAN \
++ "
++
++AC_CONFIG_HEADERS([config.h])
++AC_OUTPUT([
++Makefile
++test/Makefile
++can-utils/Makefile
++])
++
++
+Index: Makefile.am
+===================================================================
+--- Makefile.am (revision 0)
++++ Makefile.am (revision 0)
+@@ -0,0 +1,19 @@
++
++
++SUBDIRS = test can-utils
++
++KERNELDIR = /usr/src/linux
++
++VERSION = $(shell awk '/^VERSION/ {print $$3}' $(KERNELDIR)/Makefile)
++PATCHLEVEL = $(shell awk '/^PATCHLEVEL/ {print $$3}' $(KERNELDIR)/Makefile)
++SUBLEVEL = $(shell awk '/^SUBLEVEL/ {print $$3}' $(KERNELDIR)/Makefile)
++EXTRAVERSION = $(shell awk '/^EXTRAVERSION/{print $$3}' $(KERNELDIR)/Makefile)
++KERNELRELEASE = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
++
++patch26:
++ ./mkpatch $(KERNELRELEASE) >patch-$(KERNELRELEASE)-socketcan < FILES-2.6
++
++patch26all:
++ ./mkpatch $(KERNELRELEASE) >patch-$(KERNELRELEASE)-socketcan-all < FILES-2.6-ALL
++
++
+
diff --git a/recipes/socketcan/socketcan-modules_svn.bb b/recipes/socketcan/socketcan-modules_svn.bb
new file mode 100644
index 0000000000..5bf1aff0ff
--- /dev/null
+++ b/recipes/socketcan/socketcan-modules_svn.bb
@@ -0,0 +1,14 @@
+DESCRIPTION = "Socketcan kernel modules"
+HOMEPAGE = "http://developer.berlios.de/projects/socketcan/"
+SECTION = "kernel/modules"
+LICENSE = "GPL"
+DEPENDS = "virtual/kernel"
+PV = "0.0+svnr${SRCREV}"
+PR = "r1"
+
+SRC_URI = "svn://svn.berlios.de/socketcan;module=trunk;proto=svn"
+
+S = "${WORKDIR}/trunk/kernel/2.6"
+
+inherit module
+
diff --git a/recipes/socketcan/socketcan-utils-test_svn.bb b/recipes/socketcan/socketcan-utils-test_svn.bb
new file mode 100644
index 0000000000..23b1c5ad08
--- /dev/null
+++ b/recipes/socketcan/socketcan-utils-test_svn.bb
@@ -0,0 +1,15 @@
+DESCRIPTION = "Socketcan user space utilities and test apps"
+HOMEPAGE = "http://developer.berlios.de/projects/socketcan/"
+SECTION = "console/utils"
+LICENSE = "GPL"
+
+PV = "0.0+svnr${SRCREV}"
+
+SRC_URI = "svn://svn.berlios.de/socketcan;module=trunk;proto=svn \
+ file://autotoolize.patch;patch=1;pnum=0 \
+ "
+
+S = "${WORKDIR}/trunk"
+
+inherit autotools
+