Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Nov 1998 15:17:26 +0100
From:      Thomas Zenker <thz@Lennartz-Electronic.DE>
To:        small@FreeBSD.ORG
Subject:   "make" for small/modified systems
Message-ID:  <19981116151726.A21210@tue.le>

next in thread | raw e-mail | index | archive | help
Hi,

is this forum for Pico only or for issues concerning all small
FreeBSD derived systems?

Anyway. I use FreeBSD for a relatively small (not as small as
picoBSD :-) embedded system (around 12Mb binaries).  Development
tools and programs not really necessary to run and maintain a unix
system are ripped off. To gain lots of space all programs on /,
apart of sh, init and ldconfig, are linked against shared libs
located in /lib. All the shared libraries, needed by the programs
in /bin & /sbin are put there. This needs modifications in to crt.o,
ld.so ... (speaking a.out so far)

Now, to administer the changed parts and have the possibility to do
"make world" independent of the standard source tree I have patched
make to have the possibility to do a "three directories make":
.CURDIR, .OBJDIR and sources in .SRCDIR

This way I have duplicated the source tree hierarchie with the
Makefiles and modified source files.  This is my .CURDIR tree -
the one where I do the make. .SRCDIR points to the corresponding
dir in the source tree, so I have to change some of the references
to ${.CURDIR} in the original Makefiles to ${.SRCDIR}.

Source files in .CURDIR take precedence over the files in .SRCDIR
allowing to maintain modified sources locally. .SRCDIR is set similar
as .OBJDIR by environment variables.

Is there anybody, who has done similar things or is interrested in
discussing this. The patch to make is rather small, does no harm
with the environment variables not set. If anybody is interrested,
drop me a mail.

cheers
-- Thomas Zenker

   at work              thz@lennartz-electronic.de
   private              thz@tuebingen.netsurf.de

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-small" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19981116151726.A21210>