From owner-freebsd-arm@freebsd.org Mon Sep 28 04:21:08 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 5FBFD9CFBA0 for ; Mon, 28 Sep 2015 04:21:08 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: from mail-vk0-x229.google.com (mail-vk0-x229.google.com [IPv6:2607:f8b0:400c:c05::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 16C9D360 for ; Mon, 28 Sep 2015 04:21:08 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: by vkhf67 with SMTP id f67so84352016vkh.1 for ; Sun, 27 Sep 2015 21:21:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=rWNy8zuvv4FjvDaystxF5NFUufxzY/94Puvi43nXIF4=; b=ReZySxEOwcf/7LOf/S/s4NGubQy++8CAr/ZCFAzMAqUJXnU+OIl5dqfqbxKgk3jv1f VTHPEX4NxrjiqhW5Cv/iDfi8+PsnspV5e975WwQ/4TjEP9fsNu/Sx4kEa0URcCpVWHKr A8dvDJqxkQtW3WNTz2FZtBVrXINdXmZYf36TkgGhJxESZ/VXA4Bu2tqBqrrqB4Db33Qz UfJtRMvtJdAWNAoe/W5/63y7VlB5JHpGqJPti42YfCyEw4UHNO6Pp3AXlJfKBJH11oB3 1KDh1Xv6oN6G5ywmzV3jY1UMSBrG+1L31BwRLTjWnEvK9M0a5TOH5vprg5+YZGXMCesR R7kQ== MIME-Version: 1.0 X-Received: by 10.31.160.5 with SMTP id j5mr11707712vke.107.1443414066879; Sun, 27 Sep 2015 21:21:06 -0700 (PDT) Received: by 10.31.89.135 with HTTP; Sun, 27 Sep 2015 21:21:06 -0700 (PDT) In-Reply-To: References: <1443104974.1224.269.camel@freebsd.org> Date: Sun, 27 Sep 2015 21:21:06 -0700 Message-ID: Subject: Re: Building Less? From: Russell Haley To: Warner Losh , freebsd-arm Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 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: Mon, 28 Sep 2015 04:21:08 -0000 The option should be included in the man pages for build: https://www.freebsd.org/cgi/man.cgi?query=build&sektion=7&apropos=0&manpath=FreeBSD+10.2-RELEASE "The default components included in the build are controlled by the file /etc/src.conf in the source tree. To override the default file, include the SRCCONF option in the make steps, pointing to a custom src.conf file. For more information see src.conf." Since I'm complaining, the src.conf file doesn't actually describe what it's purpose is. It says it contains settings, but not what those settings do. The reader is not informed of it's true purpose until they start reading the list of variables. There seems to be only one purpose to those settings: to control the components included in a build. So: The *src.conf* file contains settings that will apply to every build involving the FreeBSD source tree; see build(7) . becomes The *src.conf* file contains variables that control what components will apply to all builds involving the FreeBSD source tree; see build(7) . Thanks! Russ On Sun, Sep 27, 2015 at 9:06 PM, Warner Losh wrote: > src.conf is only used to build /usr/src. src.con(5) documents that. > build(5) has a pointer. > > How would you suggest making this clearer? > > Warner > > > > On Sep 27, 2015, at 10:02 PM, Russell Haley > wrote: > > > > Hi Warner, > > > > That's my point. The only place the file is used is during the build > process. If the srcconf option is not described on man page for the build > process, then it's existence would not be known to someone reading about > building (i.e. me). More to the point, if I had come across the file > myself, I would have wondered if it was even relevant to this version of > the OS as it is not referenced in the only spot it is used (hence my > question). I have experienced this confusion in the documentation before. > > > > Thanks for confirmation (sort of). I will investigate the route to > reporting this to the documentation team. > > > > > > Cheers, > > > > Russ > > > > > > > > > > > > On Sep 27, 2015 8:20 PM, "Warner Losh" wrote: > > src.conf(5) describes it. > > > > Warner > > > > On Sat, Sep 26, 2015 at 10:49 PM, Russell Haley > wrote: > > Interestingly the man pages for build that are linked to the src.conf man > > pages don't seem to describe the srcconf variable. Or did I miss > something? > > > > > https://www.freebsd.org/cgi/man.cgi?query=build&sektion=7&apropos=0&manpath=FreeBSD+10.2-RELEASE > > > > Russ > > > > On Sat, Sep 26, 2015 at 9:07 PM, Russell Haley > wrote: > > > > > Awesome, thanks for the src.conf files Michael, and thank you Ian for > the > > > description. It's kind of like the secret recipe! Together with the > > > memdisk method that Ganbold has suggested I should be able to bring > down my > > > turn-around time. > > > > > > Cheers, > > > Russ > > > > > > On Thu, Sep 24, 2015 at 7:29 AM, Ian Lepore wrote: > > > > > >> 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 > > >> > > >> > > >> > > > > > _______________________________________________ > > freebsd-arm@freebsd.org mailing list > > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" > > > >