Date: Wed, 20 Jun 2001 16:03:19 +0200 (CEST) From: Luigi Rizzo <luigi@info.iet.unipi.it> To: current@freebsd.org Subject: cross-building PicoBSD - need advice... Message-ID: <200106201403.QAA42801@info.iet.unipi.it>
next in thread | raw e-mail | index | archive | help
Hi, I suspect it is more likely that i get feedback from people on -current, which is why this email is addressed there. I am Bcc-ing to -small in case the people there are interested too. Basically, i would like to come up with some easy way to cross-build picobsd images, embedding the relevant commands into the "picobsd" build script so one only has to specify the SRC tree location and the script does all things for you. There are a number of dependencies that need to be addressed in this process, including at least the following. 1. the config program. I more or less know how to handle this, basically compile whatever config is in ${SRC}/usr.sbin/config and use that one for the config step. 2. location of standard include files. Here, it looks not too complex -- at the moment i basically do the following: cd ${SRC} mkdir -p usr/include DESTDIR=`pwd` make includes CFLAGS="-nostdinc -I`pwd`/usr/includes" ; export CFLAGS and hope that the various makefiles honor CFLAGS settings. It seems to work for most things. 3. libraries This is the hard part for me. I guess there is some way from the makefiles in ${SRC}/lib to build just the static libraries and put them in some place where I can use them without conflict with the standard ones, but how ? So, could anyone suggest a good way to address step #3 ? thanks luigi -----------------------------------+------------------------------------- Luigi RIZZO, luigi@iet.unipi.it . Dip. di Ing. dell'Informazione http://www.iet.unipi.it/~luigi/ . Universita` di Pisa TEL/FAX: +39-050-568.533/522 . via Diotisalvi 2, 56126 PISA (Italy) Mobile +39-347-0373137 -----------------------------------+------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200106201403.QAA42801>