On Fri, May 21, 2010 at 7:38 AM, Vitus Jensen <[email protected]> wrote: > 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.
is there any reason to have an encapsulated copy of this header besides being independent ? > libsocketcan 0.0.8 automatically installs can_netlink.h, > version 0.0.7 is patched to do so. > > Signed-off-by: Vitus Jensen <[email protected]> > --- > .../socketcan/files/install-can_netlink.h.patch | 21 > ++++++++++++++++++++ > recipes/socketcan/libsocketcan.inc | 16 +++++++++++++++ > recipes/socketcan/libsocketcan_0.0.7.bb | 7 ++++++ > recipes/socketcan/libsocketcan_0.0.8.bb | 4 +++ > 4 files changed, 48 insertions(+), 0 deletions(-) > create mode 100644 recipes/socketcan/files/install-can_netlink.h.patch > create mode 100644 recipes/socketcan/libsocketcan.inc > create mode 100644 recipes/socketcan/libsocketcan_0.0.7.bb > create mode 100644 recipes/socketcan/libsocketcan_0.0.8.bb > > diff --git a/recipes/socketcan/files/install-can_netlink.h.patch > b/recipes/socketcan/files/install-can_netlink.h.patch > new file mode 100644 > index 0000000..36f5e10 > --- /dev/null > +++ b/recipes/socketcan/files/install-can_netlink.h.patch > @@ -0,0 +1,21 @@ > +commit 2470d91a6254b062aae8ab6120795a0f28344687 > +Author: Vitus Jensen <[email protected]> > +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 \ > diff --git a/recipes/socketcan/libsocketcan.inc > b/recipes/socketcan/libsocketcan.inc > new file mode 100644 > index 0000000..367766c > --- /dev/null > +++ b/recipes/socketcan/libsocketcan.inc > @@ -0,0 +1,16 @@ > +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 > diff --git a/recipes/socketcan/libsocketcan_0.0.7.bb > b/recipes/socketcan/libsocketcan_0.0.7.bb > new file mode 100644 > index 0000000..7dd4fef > --- /dev/null > +++ b/recipes/socketcan/libsocketcan_0.0.7.bb > @@ -0,0 +1,7 @@ > +TAG = "v${PV}" > +require libsocketcan.inc > + > +PR = "${INC_PR}.0" > + > +SRC_URI += "file://install-can_netlink.h.patch;patch=1 \ > + " > diff --git a/recipes/socketcan/libsocketcan_0.0.8.bb > b/recipes/socketcan/libsocketcan_0.0.8.bb > new file mode 100644 > index 0000000..5598a0f > --- /dev/null > +++ b/recipes/socketcan/libsocketcan_0.0.8.bb > @@ -0,0 +1,4 @@ > +TAG = "v${PV}" > +require libsocketcan.inc > + > +PR = "${INC_PR}.0" > -- > 1.6.4.4 > > > _______________________________________________ > Openembedded-devel mailing list > [email protected] > http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel > _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
