Quantcast
Channel: Intel Communities: Message List
Viewing all articles
Browse latest Browse all 18582

How to install or copy the driver i.e .ko file to a particular location via makefile?

$
0
0

This is my makefile..

ifneq ($(KERNELRELEASE),)

obj-m := dmcdus_dd.o

else

KDIR := /usr/src/linux-headers-3.13.0-24-generic/

all:

    $(MAKE) INSTALL_MOD_DIR=kernel/drivers/input/touchscreen -C $(KDIR) M=$$PWD modules_install

 

endif

clean:

    rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c .tmp_versions sample Module.symvers

 

 

i have specified my required path where i have to move my dmcdus_dd.ko file using INSTALL_MOD_DIR & install it by modules_install. when i type make in the console i get the following results in the console..

 

make INSTALL_MOD_DIR=kernel/drivers/input/touchscreen -C /usr/src/linux-headers-3.5.0-49-generic/ M=$PWD modules_install

make[1]: Entering directory `/usr/src/linux-headers-3.5.0-49-generic'

  DEPMOD  3.5.0-49-generic

make[1]: Leaving directory `/usr/src/linux-headers-3.5.0-49-generic'

 

but when i go to the location "/lib/modules/3.5.0-49-generic/kernel/drivers/input/touchscreen" i dont see dmcdus.ko file in that directory... How can i copy my driver to that location?


Viewing all articles
Browse latest Browse all 18582

Trending Articles



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