linux-can.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: backporting can & can-j1939
@ 2011-12-13 15:51 Kurt Van Dijck
  2011-12-14 13:29 ` Wolfgang
  0 siblings, 1 reply; 21+ messages in thread
From: Kurt Van Dijck @ 2011-12-13 15:51 UTC (permalink / raw)
  To: Wolfgang; +Cc: linux-can

On Tue, Dec 13, 2011 at 03:20:24PM +0000, Wolfgang wrote:
> > It appears quite complex. It may be better to start over
> > with a fresh kernel, and copy those files from my
> > can-j1939-modules, since this repository contains
> > #if KERNEL_VERSION macros that will make it work on 2.6.31.
> 
> I am not really sure, so I ask, should I build a new kernel and after building
> replace the things from can-j1939-modules or should I place the things from
> can-j1939-modules before building the kernel?
> And what particular things should I copy?

Ok, Maybe I did explain it a bit fuzzy.

Like Oliver suggested earlier, you will ultimately build a new kernel.
1. You extract the kernel source (I believe $ptxdist prepare <kernel>).
2. You copy from can-j1939-modules into the extracted kernel sources:
   $ cp -r <can-j1939>/net/can/* <kernel>/net/can/
   $ cp <can-j1939>/include/socketcan/can.h <kernel>/include/linux/can.h
   $ cp <can-j1939>/include/socketcan/can/{bcm,core,error,gw,isotp,j1939,netlink,raw}.h \
	<kernel>/include/linux/can/
   and replace all "#include <socketcan/xxx.h>"
   with "#include <linux/xxx.h>".
   This "#include" thing will appear in files you just copies (net/can/* and include/linux/can*)
3. Continue the build process

Sorry for not making this clear the first time :-).
I hope it is clear now?

Kurt

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2012-01-04  9:47 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20111201105434.214940@gmx.net>
2011-12-01 11:52 ` using can-j1939 Kurt Van Dijck
2011-12-01 13:36   ` Kurt Van Dijck
2011-12-02  9:05   ` Oliver Hartkopp
2011-12-13 15:51 backporting can & can-j1939 Kurt Van Dijck
2011-12-14 13:29 ` Wolfgang
2011-12-14 15:43   ` Kurt Van Dijck
2011-12-14 18:19     ` Wolfgang
2011-12-14 20:42       ` Using " Kurt Van Dijck
2011-12-15  8:35         ` Wolfgang
2011-12-15  9:20           ` Cross-compiling iproute2-j1939 Kurt Van Dijck
2011-12-15 11:24             ` Wolfgang
2011-12-15 12:04               ` replacing iproute2 & can-utils with j1939 variants Kurt Van Dijck
2011-12-15 13:43                 ` Wolfgang
2011-12-15 14:00                   ` using can-j1939 Kurt Van Dijck
2011-12-15 14:49                     ` Wolfgang
2011-12-15 15:06                       ` Kurt Van Dijck
2011-12-15 15:16                         ` Wolfgang
2011-12-15 15:50                           ` Kurt Van Dijck
2011-12-15 16:17                             ` Wolfgang
2011-12-16  8:37                       ` Kurt Van Dijck
2011-12-16  9:00                         ` Wolfgang
2011-12-16  9:33                           ` Kurt Van Dijck
2011-12-16 14:29                             ` Wolfgang
2011-12-17 19:20                               ` Kurt Van Dijck
2011-12-20 10:35                                 ` API calls Wolfgang
2011-12-20 11:00                                   ` Kurt Van Dijck
2011-12-20 14:49                                     ` Wolfgang
2011-12-20 15:05                                       ` Kurt Van Dijck
2011-12-20 15:43                                         ` Wolfgang
2011-12-20 16:32                                           ` Kurt Van Dijck
2011-12-21 10:46                                             ` Wolfgang
2011-12-21 13:43                                               ` using can-j1939 Kurt Van Dijck
2011-12-21 15:11                                                 ` Wolfgang
2011-12-21 15:53                                                   ` Kurt Van Dijck
2011-12-22 13:06                                                     ` Wolfgang
2011-12-23 11:04                                                       ` Kurt Van Dijck
2011-12-28 10:49                                                         ` Wolfgang
2012-01-04  9:47                                                           ` Kurt Van Dijck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).