From owner-freebsd-small Wed Jun 20 7: 8: 7 2001 Delivered-To: freebsd-small@freebsd.org Received: from info.iet.unipi.it (info.iet.unipi.it [131.114.9.184]) by hub.freebsd.org (Postfix) with ESMTP id 1940537B407; Wed, 20 Jun 2001 07:07:57 -0700 (PDT) (envelope-from luigi@info.iet.unipi.it) Received: (from luigi@localhost) by info.iet.unipi.it (8.9.3/8.9.3) id QAA42801; Wed, 20 Jun 2001 16:03:19 +0200 (CEST) (envelope-from luigi) From: Luigi Rizzo Message-Id: <200106201403.QAA42801@info.iet.unipi.it> Subject: cross-building PicoBSD - need advice... To: current@freebsd.org Date: Wed, 20 Jun 2001 16:03:19 +0200 (CEST) X-Mailer: ELM [version 2.4ME+ PL61 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-small@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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-small" in the body of the message