L4Linux Kernel module

Adam Lackorzynski adam at os.inf.tu-dresden.de
Wed Jan 6 23:10:14 CET 2016


On Wed Jan 06, 2016 at 16:59:11 +0100, ba_f wrote:
> Am 2016-01-04 23:37, schrieb Adam Lackorzynski:
> >On Mon Jan 04, 2016 at 16:08:55 +0100, ba_f wrote:
> >>are there any Makefiles for building a L4Linux Kernel Module?
> >>Or can i just cross-compile for my ARCH, although the driver uses
> >>L4-IPC?
> >
> >There's no difference, so the standard way of building a module should
> >just work (make -C ... M=...).
> >
> >
> >
> >Adam
> 
> 
> 
> Hi there,
> 
> 
> 
> running in an Error.
> 
> 
> $ make -C obj/l4linux/arm-mp M=$PWD ARCH=arm
> CROSS_COMPILE=arm-linux-gnueabihf- modules
> 
> make: Entering directory 'obj/l4linux/arm-mp'
>   CC [M]  hello.o
> In file included from src/l4linux/include/asm-generic/int-ll64.h:10:0,
>                  from src/l4linux/arch/arm/include/asm/types.h:4,
>                  from src/l4linux/include/uapi/linux/types.h:4,
>                  from src/l4linux/include/linux/types.h:5,
>                  from src/l4linux/include/linux/list.h:4,
>                  from src/l4linux/include/linux/module.h:9,
>                  from hello.c:11:
> src/l4linux/include/uapi/asm-generic/int-ll64.h:11:29: fatal error:
> asm/bitsperlong.h: No such file or directory
>  #include <asm/bitsperlong.h>
> 
> 
> The missing header has been generated in
> 'obj/l4linux/arm-mp/arch/l4/include/generated/asm/bitsperlong.h' but isn't
> found.
> 
> 
> Can i set an include path for Kbuild?
> Or does this file has to be copied to a proper location?

The ARCH=arm is wrong. L4ARCH=arm is better but you can also just omit it.



Adam
-- 
Adam                 adam at os.inf.tu-dresden.de
  Lackorzynski         http://os.inf.tu-dresden.de/~adam/




More information about the l4-hackers mailing list