HOW TO MAKE SAMPLES DIR IN THE MAINLINE KERNEL TO BE COMPILED AND CREATED ".KO" FILE IN THE SAME DIRECTORY
ykk at rock-chips.com
Thu Aug 20 03:20:22 PDT 2015
I'm wondering is your e-mail come from eDP thread ? cause I see lots of
cc guys some as eDP emails :)
And for your question, I am not sure I understand rightly. Do you mean
that your ".ko" module not in
the same directory with driver source code?
If it's your question, I think you can fix it by add SUBDIRS flag in
your driver makefile.
I test it on kernel 3.14, but I think it would be okay on mainline
kernel, it works good
in my side, I see hello.ko in my hello/
[~/work/kernel-3.14/hello] 7392h41m $ ls
hello.c hello.ko hello.mod.c hello.mod.o hello.o Makefile
# My test makefile
obj-m := hello.o
KERNEL_DIR := ~/work/kernel-3.14
PWD := $(shell pwd)
make -C $(KERNEL_DIR) SUBDIRS=$(PWD) modules
rm *.o *.ko *.mod.c
Wish can help,
On 08/20/2015 03:45 AM, ravi ranjan Mishra wrote:
> Hi ,
> i did make in the kernel directory but sample directory is not able to
> compiled and generating .ko file in the same directory.
> can you please tell.
More information about the dri-devel