Because of historical string munging during the kernel build process if you named your hardware table hwtable-something, when it was built the filename would look appropriate, but the actual module info would change the internal name to be hwtable_something, thus after an insmod with the filename you could not perform an rmmod with the same filename. As a result the naming scheme has been changed to hwtable_NAME, NAME being the hardware the table supports. Further, include files in the hardware table should be prefixed with the folder name, e.g. #include "hwtable_NAME/my_header.h". Based on commits from David Erickson <derickso@stanford.edu>.
8 lines
172 B
Makefile
8 lines
172 B
Makefile
# Specify the module to build.
|
|
all_modules += hwtable_dummy
|
|
|
|
# Specify the source files that comprise the module.
|
|
hwtable_dummy_sources = \
|
|
hwtable_dummy/hwtable_dummy.c
|
|
|