On Sunday, March 25, 2012 10:38:17 pm cz li wrote:
> I want to write a 64-bit version of the driver, the MAKEFILE  on how to
> write?I can compile 64-bit version of the driver in the 32 system?
> Thank you!

Drivers generally use the same makefiles (if you mean a module makefile) for 
both i386 and amd64.  If you want to cross-build a driver you will need a 
cross toolchain (e.g. 'make toolchain TARGET=amd64').  You can then either 
cross-build a kernel whose config includes your module, or you can do this to 
cross-build just your module:

% cd /path/to/world
% make buildenv TARGET=amd64
% cd sys/modules/<foo>
% make

-- 
John Baldwin
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"

Reply via email to