Date: Sun, 27 Sep 2015 22:06:19 -0600 From: Warner Losh <imp@bsdimp.com> To: Russell Haley <russ.haley@gmail.com> Cc: Ian Lapore <ian@freebsd.org>, freebsd-arm <freebsd-arm@freebsd.org> Subject: Re: Building Less? Message-ID: <BA852FF5-26FF-4C86-9F90-42C5C1F8F4B4@bsdimp.com> In-Reply-To: <CABx9NuR_mauNkyj9j1e_oHy3HRS6B7gm7Ew-YF9RCj5ENqHi4g@mail.gmail.com> References: <CABx9NuRb5yOjrfM0i0pDmNzaEefdsTxByiggGm%2B-m0UW%2BK%2BbdA@mail.gmail.com> <1443104974.1224.269.camel@freebsd.org> <CABx9NuQ6pp3irW=7wjvkAEuJzmtrmNLa4fmw0XL5DKmDaC2r2A@mail.gmail.com> <CABx9NuSTZaNAoc1pKZ0Wx7YHyGwaXrr-nm2xFqgqbRyZ_6CDug@mail.gmail.com> <CANCZdfo-8yjWGzcOYXLOr0epguHiu2a9hJ%2BKKoWV8c-8JYR3tQ@mail.gmail.com> <CABx9NuR_mauNkyj9j1e_oHy3HRS6B7gm7Ew-YF9RCj5ENqHi4g@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--Apple-Mail=_53B6E7ED-D246-4984-A38B-9B19583D9058 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii 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 <russ.haley@gmail.com> = wrote: >=20 > Hi Warner, >=20 > 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. >=20 > Thanks for confirmation (sort of). I will investigate the route to = reporting this to the documentation team. >=20 >=20 > Cheers, >=20 > Russ >=20 >=20 >=20 >=20 >=20 > On Sep 27, 2015 8:20 PM, "Warner Losh" <imp@bsdimp.com> wrote: > src.conf(5) describes it. >=20 > Warner >=20 > On Sat, Sep 26, 2015 at 10:49 PM, Russell Haley <russ.haley@gmail.com> = 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? >=20 > = https://www.freebsd.org/cgi/man.cgi?query=3Dbuild&sektion=3D7&apropos=3D0&= manpath=3DFreeBSD+10.2-RELEASE >=20 > Russ >=20 > On Sat, Sep 26, 2015 at 9:07 PM, Russell Haley <russ.haley@gmail.com> = wrote: >=20 > > 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 <ian@freebsd.org> 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=3Darm TARGET_ARCH=3Darmv6 -j10 buildworld > >> > > >> > make -DNO_CLEAN TARGET=3Darm TARGET_ARCH=3Darmv6 KERNCONF=3DIMX6 = -j10 > >> buildkernel > >> > > >> > sudo mount /dev/da2s2 /usr/jails/Jailbird/mnt/ufspart > >> > make TARGET=3Darm TARGET_ARCH=3Darmv6 DESTDIR=3D/mnt/ufspart = installworld > >> > distribution > >> > > >> > > >> > > >> > Thanks, > >> > > >> > Russ > >> > >> Add to your crossbuild command line "srcconf=3D/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=3D. > >> > >> "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" >=20 --Apple-Mail=_53B6E7ED-D246-4984-A38B-9B19583D9058 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJWCLy8AAoJEGwc0Sh9sBEArtEQAOT+9qjdMAphLwLnpsMykKVQ L6YsVj+u+5y8j9HFYTbzoOCTbh2i01qcv4tIuoQw0qZ0zGhjrlHFYCOuCvEML6Lp DvO2FsFF7U4cQl0sUi5ia7X3VephF+8Gi98vxrn4E1BygoZbMQBasv+OFhV/Zc9O ybF+TsFKWXpqSp0HDR60baF1gyybrrFh9ZSP3NsSekgUhz0oPY50H30nFZA2nKBv ZCxU5fBSQHCpJsqizI3XhoQ0EJRjVQXKuDNP0z/Ad6gjNgFIGasSyOwAbgZIBiAT vxxfZySixEzbxwRnBD9FhF5QkX73hCpYuYqPD6B7+pS+aqFCu1VE+jZNbDmUNvi+ omyqZITJ6VG21n+AJNPE98c7xQbN/fHsajQAek6Km2zQr02TwMEvXXHbNbPVy37i buE4lQw1vYSYHlwMQQxweTDIq/aIypUHTfQHzJtFAVb/r8V73GmRQc7E3xSQV1Hk 3+qP8QihqlYrRXC8IOXqQyuIln+GFNj/1ctjwsmnOgkbFb6vpYeb+naBSpUiAlT8 Sv0xKPG4TWyDsazFP9YvVi+Csb7LlPlN12sCFfOi/2rR5VEuo25rdS41B1vTUNGV OH5lu7YMYMDeRtxxCKHHU4VyKMfGmxuQKtgEs/fbrQNFkR9XswYA4CwJq4c7On+p 5qcSJ3twXBG006VC7HFF =Et25 -----END PGP SIGNATURE----- --Apple-Mail=_53B6E7ED-D246-4984-A38B-9B19583D9058--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BA852FF5-26FF-4C86-9F90-42C5C1F8F4B4>