Quantcast
Channel: Active questions tagged kernel-modules - Unix & Linux Stack Exchange
Viewing all articles
Browse latest Browse all 1181

Linux Kernel custom module build skips module

$
0
0

I'm trying to cross-compile (arm64) a custom module on my linux box. So what I did so far is:

  • install the target Kernel sources
  • install the cross-compiler
  • enable module and build the Kernels with the cross-compiler. So far, so good, at the end I have an "Image" file correctly built

Now, I'm trying to build my module. I move in the folder where I have the sources. This is the Makefile:

bj-m := my_module.oPWD := $(shell pwd)DEBUG := 1my_module-objs += my_module_core.o my_module_utils.occflags-y += -O2 -Wall -DDEBUGall:        make ARCH=arm64 CROSS_COMPILE=$(CROSS) -C $(KERNEL) M=$(PWD) modules

Then I try to run the build with

make KERNEL=/tmp/linux-kernel-src/ CROSS=aarch64-linux-gnu-

and I get this result:

make[1]: Entering directory '/tmp/linux-kernel-src'  Building modules, stage 2.  MODPOST 0 modulesmake[1]: Leaving directory '/tmp/linux-kernel-src'

So it looks like I have no errors, but the build process is just skipping all the files contained in my current folder which should be compiled and nothing happens.

I think I'm missing something obvious...but I'm not catching what...do you have any idea?

I saw another post with a very similar issue (Building kernel module), but this had a square bracket in the path and this is not my case.

Thanks a lot!


Viewing all articles
Browse latest Browse all 1181

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>