From owner-freebsd-hackers@FreeBSD.ORG Sun Nov 14 03:40:22 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D5F00106566B; Sun, 14 Nov 2010 03:40:22 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ww0-f42.google.com (mail-ww0-f42.google.com [74.125.82.42]) by mx1.freebsd.org (Postfix) with ESMTP id 4272F8FC1C; Sun, 14 Nov 2010 03:40:21 +0000 (UTC) Received: by wwb29 with SMTP id 29so138749wwb.1 for ; Sat, 13 Nov 2010 19:40:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=tcMYEDsRNYVwodpQanCbtYTN63VrtQyry5fnVtFTQ+w=; b=m1MJYfgrViTgw0aWK19btU/OQ+xcC+OI0/0PZdNxl04tK7qgRsrEQvi5ws1cHphEfa BUUzAzUgZf1q9PBfDGteCnC4YnnrKAhkhwlsRgOJujpKo7AtHHYTmmJAuqmE3eacCNmH hiQ7NSERcyaIpoz5NOkNHfcup/ZzGyaZwSeaQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; b=k7lGigg/sbGI4NPFPPDM6FXlmydbADqhgvYH3CG3lw6IRH5LvqwIAoadTOncph3BEL ddep4XbcbTr9C/YIX6JYU1KpnrUq6K9xyBrlafzpzbqt31znAqNtUAkmC7SNcUOcMzPx XqvfTg7AdLou2je18mBU7P3wt7h9rEDaEe6vg= MIME-Version: 1.0 Received: by 10.216.142.131 with SMTP id i3mr5340577wej.5.1289706020496; Sat, 13 Nov 2010 19:40:20 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.216.65.210 with HTTP; Sat, 13 Nov 2010 19:40:20 -0800 (PST) Date: Sun, 14 Nov 2010 11:40:20 +0800 X-Google-Sender-Auth: FFePrc8HCv2HcLXNbwOJAoaJMGU Message-ID: From: Adrian Chadd To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-current , freebsd-embedded@freebsd.org Subject: The path is now set for "busybox", FreeBSD style X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Nov 2010 03:40:22 -0000 Hi everyone, I've committed the below changes to -HEAD. You can now create and build your own busybox style binary system, completely cross-compiled within the existing Make framework. It isn't as impressive as it sounds though - a lot of the framework is already there from just building crunchgen'ed rescue/sysinstall binaries. There's a few things which should be done. Specifically, being able to build an alternative set of libraries before building the crunchgen target. The base crosscompile system may include support for PAM, Kerberos, ATM/IPX, etc but you may not want your crunch'ed image to have them. To do this right now, you have to disable these features in the main build. That may be OK for some. But just to stress it - I've got a couple of access point images at home running a crunchgen'ed environment under MIPS and besides the obvious binary bloat, it works perfectly well. Besides a cut-down startup framework, the image cross-builds entirely from the base FreeBSD source tree. Let me know if you'd like to give it a shot and I'll put my "bsdbox" Makefile scripts online to try. Adrian On 5 October 2010 10:36, Adrian Chadd wrote: > Hi, > > I've broken out the crunchgen logic from src/rescue/rescue into a > share/mk file - that way it can be reused in other areas. > > The diff is here: http://people.freebsd.org/~adrian/crunchgen-mk.diff > > This bsd.crunchgen.mk file is generic enough to use in my > busybox-style thing as well as for src/rescue/rescue/. > > Comments, feedback, etc welcome! > > > Adrian >