From owner-freebsd-arm@freebsd.org Thu Sep 24 14:29:36 2015 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A03B7A07037 for ; Thu, 24 Sep 2015 14:29:36 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from pmta2.delivery6.ore.mailhop.org (pmta2.delivery6.ore.mailhop.org [54.200.129.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 819F41D14 for ; Thu, 24 Sep 2015 14:29:36 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from ilsoft.org (unknown [73.34.117.227]) by outbound2.ore.mailhop.org (Halon Mail Gateway) with ESMTPSA; Thu, 24 Sep 2015 14:30:13 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.14.9/8.14.9) with ESMTP id t8OETYOt003333; Thu, 24 Sep 2015 08:29:34 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: <1443104974.1224.269.camel@freebsd.org> Subject: Re: Building Less? From: Ian Lepore To: Russell Haley Cc: freebsd-arm Date: Thu, 24 Sep 2015 08:29:34 -0600 In-Reply-To: References: Content-Type: text/plain; charset="us-ascii" X-Mailer: Evolution 3.12.10 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Sep 2015 14:29:36 -0000 On Wed, 2015-09-23 at 22:15 -0700, Russell Haley wrote: > Hi there, > > I've pivoted back to my ARM board again. I noticed that when I build world, > it builds all the man pages and languages and a whole bunch of other stuff. > That's not too bad because I have a decent computer, but when I run > installworld and install onto an sd card things get really slow. > > Is there a way to reduce what I am building and installing onto the sd card? > > > Current process: > make -DNO_CLEAN TARGET=arm TARGET_ARCH=armv6 -j10 buildworld > > make -DNO_CLEAN TARGET=arm TARGET_ARCH=armv6 KERNCONF=IMX6 -j10 buildkernel > > sudo mount /dev/da2s2 /usr/jails/Jailbird/mnt/ufspart > make TARGET=arm TARGET_ARCH=armv6 DESTDIR=/mnt/ufspart installworld > distribution > > > > Thanks, > > Russ Add to your crossbuild command line "srcconf=/some/path/src.conf" and in that src.conf file put a bunch of WITHOUT_foo commands to eliminate the things you don't need in the target system. Iirc, you need a fully- qualified pathname in the srcconf=. "man src.conf" gives you the list of WITH/WITHOUT controls you can set. Be sure to keep your crossbuild src.conf file(s) separate from your main /etc/src.conf file that's used when you build the host system. -- Ian