cross platform
Ruslan Ermilov
ru at FreeBSD.org
Sat Feb 12 22:00:28 GMT 2005
Hi Mathew,
On Sat, Feb 12, 2005 at 09:55:02AM -0500, Mathew Kanner wrote:
> Hi All,
> I want to get midi working for amd64 and by fixing up the
> (kernel) printf directives, I have two stupid question:
> - How do I compile a module for a different platform?
>
Well, you can:
cd /usr/src
make buildworld TARGET_ARCH=amd64
make buildkernel TARGET_ARCH=amd64
assuming a module is connected to the build in sys/modules/Makefile.
You can save huge time by only building a toolchain:
cd /usr/src
make kernel-toolchain TARGET_ARCH=amd64
make buildkernel TARGET_ARCH=amd64
Or, if you want to compile a single module only (and that's the
fastest way to cross-build), assuming it's in sys/modules/midi:
cd /usr/src
make kernel-toolchain TARGET_ARCH=amd64
make _obj SUBDIR_OVERRIDE=sys/modules/midi TARGET_ARCH=amd64
make _depend SUBDIR_OVERRIDE=sys/modules/midi TARGET_ARCH=amd64
make everything SUBDIR_OVERRIDE=sys/modules/midi TARGET_ARCH=amd64
> - How do I know which is the right directive? Is this documented
> somewhere?
>
Please see the build(7) manpage, it talks a bit about cross-builds.
Cheers,
--
Ruslan Ermilov
ru at FreeBSD.org
FreeBSD committer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20050213/ea4c24bc/attachment.bin
More information about the freebsd-current
mailing list