Build pengutronix' libsocketcan (netlink interface), used
by newer versions of canutils. can_netlink.h is really
linux/can/netlink.h from linux-libc-headers but installed
here to be independ of staged linux-libc-headers versions.
libsocketcan 0.0.8 automatically installs can_netlink.h,
version 0.0.7 is patched to do so.
Signed-off-by: Vitus Jensen <vjensen@gmx.de>
Signed-off-by: Eric Bénard <eric@eukrea.com>
--- /dev/null
+commit 2470d91a6254b062aae8ab6120795a0f28344687
+Author: Vitus Jensen <vitus@vitus.devnet.local>
+Date: Tue May 18 16:59:01 2010 +0200
+
+ install can_netlink.h
+
+diff --git a/include/GNUmakefile.am b/include/GNUmakefile.am
+index 4ba2798..eb35a3a 100644
+--- a/include/GNUmakefile.am
++++ b/include/GNUmakefile.am
+@@ -1,8 +1,6 @@
+-noinst_HEADERS = \
+- can_netlink.h
+-
+ nobase_include_HEADERS = \
+- libsocketcan.h
++ libsocketcan.h \
++ can_netlink.h
+
+ MAINTAINERCLEANFILES = \
+ libsocketcan_config.h.in \
--- /dev/null
+DESCRIPTION = "Control basic functions in socketcan from userspace"
+AUTHOR = "Luotao Fu"
+HOMEPAGE = "http://www.pengutronix.de"
+SECTION = "libs/network"
+PRIORITY = "optional"
+LICENSE = "LGPL"
+
+TAG = "v${PV}"
+INC_PR = "r0"
+
+SRC_URI = "git://git.pengutronix.de/git/tools/libsocketcan.git;protocol=git;tag=${TAG} \
+ "
+
+S = "${WORKDIR}/git"
+
+inherit autotools_stage pkgconfig
--- /dev/null
+TAG = "v${PV}"
+require libsocketcan.inc
+
+PR = "${INC_PR}.0"
+
+SRC_URI += "file://install-can_netlink.h.patch;apply=yes \
+ "
--- /dev/null
+TAG = "v${PV}"
+require libsocketcan.inc
+
+PR = "${INC_PR}.0"