devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* HOW TO MAKE SAMPLES DIR IN THE MAINLINE KERNEL TO BE COMPILED AND CREATED ".KO" FILE IN THE SAME DIRECTORY
@ 2015-08-20  8:45 ravi ranjan Mishra
       [not found] ` <CAAbfDBcA-gRh8pbKxDGvAZqPbyLzUK3HPqU42c7LK7fX4xD_KA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: ravi ranjan Mishra @ 2015-08-20  8:45 UTC (permalink / raw)
  To: linux-arm-kernel, seanpaul, Takashi Iwai, dri-devel,
	Andrzej Hajda, Yakir Yang, Gustavo Padovan, linux-samsung-soc,
	Vincent Palatin, linux-rockchip, Kishon Vijay Abraham I,
	David Airlie, devicetree, Pawel Moll, Ian Campbell, dianders,
	Rob Herring, Mark Yao, linux-kernel, Kyungmin Park, djkurtz,
	Philipp Zabel, Kumar Gala, ajaynumb, Andy Yan

[-- Attachment #1: Type: text/plain, Size: 169 bytes --]

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.

Thanks,
Ravi

[-- Attachment #2: Type: text/html, Size: 275 bytes --]

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

* Re: HOW TO MAKE SAMPLES DIR IN THE MAINLINE KERNEL TO BE COMPILED AND CREATED ".KO" FILE IN THE SAME DIRECTORY
       [not found] ` <CAAbfDBcA-gRh8pbKxDGvAZqPbyLzUK3HPqU42c7LK7fX4xD_KA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2015-08-20 10:20   ` Yakir Yang
  0 siblings, 0 replies; 2+ messages in thread
From: Yakir Yang @ 2015-08-20 10:20 UTC (permalink / raw)
  To: ravi ranjan Mishra,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	seanpaul-hpIqsD4AKlfQT0dZR+AlfA, Takashi Iwai,
	dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW, Andrzej Hajda,
	Gustavo Padovan, linux-samsung-soc-u79uwXL29TY76Z2rM5mHXA,
	Vincent Palatin, linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	Kishon Vijay Abraham I, David Airlie,
	devicetree-u79uwXL29TY76Z2rM5mHXA, Pawel Moll, Ian Campbell,
	dianders-hpIqsD4AKlfQT0dZR+AlfA, Rob Herring, Mark Yao,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA, Kyungmin Park,
	djkurtz-hpIqsD4AKlfQT0dZR+AlfA, Philipp Zabel, Kumar Gala,
	ajaynumb-Re5JQEeQqe8AvxtiuMwx3w, Andy Yan

Hi Ravi,

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 
modules.order  Module.symvers

# My test makefile
obj-m := hello.o

KERNEL_DIR := ~/work/kernel-3.14
PWD := $(shell pwd)

all:
     make -C $(KERNEL_DIR) SUBDIRS=$(PWD) modules

clean:
     rm *.o *.ko *.mod.c

.PHONY:clean


Wish can help,
- Yakir

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.
>
> Thanks,
> Ravi


--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2015-08-20 10:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-20  8:45 HOW TO MAKE SAMPLES DIR IN THE MAINLINE KERNEL TO BE COMPILED AND CREATED ".KO" FILE IN THE SAME DIRECTORY ravi ranjan Mishra
     [not found] ` <CAAbfDBcA-gRh8pbKxDGvAZqPbyLzUK3HPqU42c7LK7fX4xD_KA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-08-20 10:20   ` Yakir Yang

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).