Post Go back to editing

Building external (out of tree) module into kernel of Buildroot

In previous versions of the Linux kernel I wrote somethin like this :

 

make -C /home/pvr/uClinux SUBDIRS=/home/pvr/workspace/ds1621 modules

 

and the Makefile was as follows

 

DEBUG = n

obj-m := ds1621.o

 

 

What should I write now, when using the last version of the kernel?

Parents
  • I saw DS1621 is a temperature sensor, and the driver is already in drivers/hwmon/ds1621.c in a standard open source Linux kernel tree, this means to make use of it all you need to do is to turn it on, and re-compile the kernel.

    I've no idea why you implement the driver yourself and construct the Makefile in your own way--now with error, but I would suggest you to move back to the conventional way, just to make use of the existing driver.

Reply
  • I saw DS1621 is a temperature sensor, and the driver is already in drivers/hwmon/ds1621.c in a standard open source Linux kernel tree, this means to make use of it all you need to do is to turn it on, and re-compile the kernel.

    I've no idea why you implement the driver yourself and construct the Makefile in your own way--now with error, but I would suggest you to move back to the conventional way, just to make use of the existing driver.

Children
No Data