[LLVMdev] HELP: Clang options needed in command to compile device driver into linux module.
陳韋任
chenwj at iis.sinica.edu.tw
Thu Apr 12 00:56:50 PDT 2012
On Thu, Apr 12, 2012 at 03:48:29PM +0800, 15102925731 wrote:
> BTW, the Makefile is as folllow,
>
> CC := gcc
> obj-m := hellomodule.o
> KERNELDIR := /lib/modules/`uname -r`/build
> PWD := $(shell pwd)
> modules:
> $(MAKE) -C $(KERNELDIR) M=$(PWD) modules
^^^^^^^^^^^^^^
Check the Makefile under KERNELDIR directory.
Regards,
chenwj
--
Wei-Ren Chen (陳韋任)
Computer Systems Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667
Homepage: http://people.cs.nctu.edu.tw/~chenwj
More information about the llvm-dev
mailing list