Date: Mon, 01 Mar 2010 23:51:25 -0700 (MST) From: "M. Warner Losh" <imp@bsdimp.com> To: ports@FreeBSD.org Subject: Best way to have a port... Message-ID: <20100301.235125.431102609672430399.imp@bsdimp.com>
next in thread | raw e-mail | index | archive | help
... that builds part of FreeBSD? Let me back up... I'm trying to create a port for gcc and binutils that is configured for FreeBSD for a given machine. FreeBSD mips, say. binutils was relatively easy (once I ported our mips support forward). However, gcc vexes me. It requires, to build libgcc and friends, a fully populated include tree. And it wants to use /usr/local/freebsd-mips/include instead of /usr/include (which is good). However, the former doesn't exist. I'd like to create a port for it, but I'm unclear how to even start. This port should consist of all files from make includes TARGET_ARCH=mips. So, some questions: First, how do I know where the FreeBSD source tree is? Is there some standard define like SYSDIR that contains this infomration? Second, I need to invoke make includes (and a few other things), with some slightly non-standard args. is there a stylied way to do this? I'd like to avoid extracting everything into myport/work/FreeBSD :) Without solving these problems, the notion that we can use a ports compiler to build FreeBSD becomes less viable... Comments? Warner
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100301.235125.431102609672430399.imp>