Date: Mon, 26 Mar 2012 10:21:42 -0400 From: John Baldwin <jhb@freebsd.org> To: freebsd-hackers@freebsd.org Cc: cz li <willingbug@gmail.com> Subject: Re: I want to write a 64-bit version of the driver, the MAKEFILE on how to write? Message-ID: <201203261021.42524.jhb@freebsd.org> In-Reply-To: <CAMSkA6rJV=XL5xRLnZi0KrRLDduvoKx8VCeei_npKT352yVhJw@mail.gmail.com> References: <CAMSkA6rJV=XL5xRLnZi0KrRLDduvoKx8VCeei_npKT352yVhJw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201203261021.42524.jhb>