Driver porting: compiling external modules
Driver porting: compiling external modules
Posted Jul 11, 2004 6:23 UTC (Sun) by kcannon (guest, #4867)Parent article: Driver porting: compiling external modules
It's probably better to use $(CURDIR) in the Makefile rather than $(PWD). $(PWD) is set to the directory from which the original make command was issued, while $(CURDIR) is set to the current working directory (eg. as modified by recursive use of make -C). If the driver modules are distributed in a subdirectory of a larger software package, and the user is intended to issue a make command from the top-level directory, using $(PWD) in the driver Makefile will pick up the wrong path.
Cheers
-Kipp
