Commit Graph

158 Commits

Author SHA1 Message Date
Glen Barber
aa2e8af3e1 Chase r262505, and remove CVS exclusion from picobsd builds.
Sponsored by:	The FreeBSD Foundation
2014-02-26 00:54:59 +00:00
Luigi Rizzo
c04dbdba8e do not use capsicum when building picobsd images 2014-01-06 08:09:19 +00:00
Luigi Rizzo
76210de388 revise the helper functions to lookup binaries and their
shared libraries.
2013-12-15 07:04:59 +00:00
Sergey Kandaurov
e0b8184b0c Update log message. Picobsd stopped using kgzip a while ago. 2013-11-11 10:54:06 +00:00
Luigi Rizzo
ffd7c2a470 bmake does not have a -v option so remove it 2013-11-04 23:46:20 +00:00
Luigi Rizzo
d8abca4a20 small cleanup for building picobsd-head without CLANG.
Note that svn 257268 gnu/usr.bin/binutils/ld/Makefile
seems to break the "toolchain" target when building HEAD
on RELENG_9, so until this is solved you may want to

    svn update -r 257267 gnu/usr.bin/binutils/ld/Makefile

before building picobsd
2013-11-01 18:29:27 +00:00
Luigi Rizzo
c29b80b1ff update the picobsd script to build with GCC and not CLANG 2013-10-16 16:46:15 +00:00
Luigi Rizzo
cbb61c6b61 comment out some stale loader configurations. 2013-09-06 17:19:57 +00:00
Luigi Rizzo
c58e667d47 generate multiple host keys and do that unconditionally 2013-09-06 17:18:43 +00:00
Luigi Rizzo
d3d4b31dd4 r253616 nuked BINMAKE so we need to adapt to the new definition 2013-09-06 17:16:33 +00:00
Luigi Rizzo
6b7724bccf use a plain 'make toolchain' to build toolchain, and
support parallel make on this stage.
2013-05-05 20:59:22 +00:00
Luigi Rizzo
6e873a2d39 remove a leftover comment 2013-05-05 18:54:25 +00:00
Luigi Rizzo
6be79c7b99 enable building picobsd with CC instead of CLANG 2012-12-23 22:41:54 +00:00
Luigi Rizzo
6b21af5af4 use MALLOC_PRODUCTION for picobsd builds, be more frugal in memory usage. 2012-08-27 16:42:32 +00:00
Luigi Rizzo
23eb7ebf94 Omit clang when building picobsd, it takes way too long.
Also note that loader.conf support is incomplete.
2012-05-03 20:50:55 +00:00
Luigi Rizzo
ef632da67a now picobsd cross builds work (tried with host amd64, target i386 ).
The fix involved adding a proper build of ld-elf.so.1 ,
and also replacing ldd with objdump (suggested by Garrett Cooper)
to build the list of shared libraries needed by the binaries
and libraries on the target.
2012-01-04 23:00:25 +00:00
Luigi Rizzo
60a5d89732 remove some stale options (such as running without /boot/loader)
improve support for multi-arch and cross-arch builds, by adding
a suffix to the kernel config file and build_directory.
(cross builds not clean yet, a cross-built kernel boots
but fails when starting /sbin/init)
2012-01-04 19:37:25 +00:00
Luigi Rizzo
61f49b5bc9 some tweaks to build picobsd for different architectures. 2011-11-23 12:05:39 +00:00
Luigi Rizzo
7f2428704d following the recent (218130) changes to Makefile and Makefile.inc1,
we need to set TARGET and TARGET_ARCH to get a correct WMAKEENV.
I am setting both to i386 since this is what picobsd is used for,
though there might be a better fix.

Add initial support for parallel make. This is disabled right now,
because there are incorrect dependencies somewhere which require
to run picobsd 2-3 times to complete a build.

MFC after:	2 weeks
2011-02-05 23:03:40 +00:00
Luigi Rizzo
2f8d87d326 move the initialization of BINMAKE earler, so it is
available throughout the entire build process.

Submitted by:	Matteo Landi
MFC after:	3 days
2010-11-12 12:48:41 +00:00
Luigi Rizzo
09bc43b0cf use make from the toolchain, as the source tree may depend on
specific features (e.g. on recent HEAD, rtld fails with older 'make')

MFC after:	3 days
2010-09-28 22:30:11 +00:00
Luigi Rizzo
28e1dd4b75 use log instead of logverbose in three places so the build won't need
input to run to completion

MFC after:	3 days
2010-02-14 15:55:30 +00:00
Luigi Rizzo
996e65afcd clear leftover from previous computations 2009-12-28 01:02:45 +00:00
Luigi Rizzo
5afa69927f more support to import files and libraries from the host. 2009-12-28 00:51:00 +00:00
Luigi Rizzo
ebb3eb9a3f dhclient needs to have /var/empty and a _dhcp user
(it also needs /sbin/dhclient-script, will handle that later)
2009-12-27 21:17:31 +00:00
Luigi Rizzo
a118f94c12 fix a typo (not that it matters) 2009-12-27 21:13:53 +00:00
Luigi Rizzo
aa52ab1507 when calling ldd, use the cross libraries and not the host version
MFC after:	3 days
2009-12-09 17:48:05 +00:00
Luigi Rizzo
f40a82debd fix wrong name for the iso! 2009-06-22 16:06:38 +00:00
Luigi Rizzo
c3f674da2a Add code to generate a bootable ISO image, so we are finally
free from the 2.88MB that we had using El Torito emulation.

The --iso option was already there, just didn't do anything before.

Submitted by:	Marta Carbone
MFC after:	3 days
2009-06-22 15:45:26 +00:00
Luigi Rizzo
fde4ea2439 add support for shared "crunch" binary. 2009-03-25 14:02:26 +00:00
Luigi Rizzo
d9ef0edbad add a function to help copying shared binaries from the output
of a buildworld.
2009-03-24 17:47:50 +00:00
Luigi Rizzo
babec003ec remove unused "package" entry.
default to use devfs (we do that anyways)

Many small changes in comments
2009-03-24 16:03:46 +00:00
Luigi Rizzo
2e5b83493d add the option to picobsd to copy files from the host filesystem
without root privs. This is done, among other things, replacing
the absolute paths in the symlinks with relative paths, so we
do not need to do a chroot to follow them.

Still need to update the manpage.

MFC after:	3 days
2009-03-18 18:43:31 +00:00
Luigi Rizzo
841a767a94 when initializing, also build _includes and _libraries
On passing, fix a wrong comment

MFC after:	3 days
2009-02-20 14:28:56 +00:00
Luigi Rizzo
634eb2b0df use /boot/loader by default, because the boot code seems to
have problems with kernels larger than 4MB.
Add a flag to avoid the /boot/loader and use the old method.

Add support for an additional makefile to perform custom manipulation
(this is not documented yet).

Add support for building an ISO image (not complete)
2009-02-20 00:05:33 +00:00
Ruslan Ermilov
042df2e2da Enable GCC stack protection (aka Propolice) for userland:
- It is opt-out for now so as to give it maximum testing, but it may be
  turned opt-in for stable branches depending on the consensus.  You
  can turn it off with WITHOUT_SSP.
- WITHOUT_SSP was previously used to disable the build of GNU libssp.
  It is harmless to steal the knob as SSP symbols have been provided
  by libc for a long time, GNU libssp should not have been much used.
- SSP is disabled in a few corners such as system bootstrap programs
  (sys/boot), process bootstrap code (rtld, csu) and SSP symbols themselves.
- It should be safe to use -fstack-protector-all to build world, however
  libc will be automatically downgraded to -fstack-protector because it
  breaks rtld otherwise.
- This option is unavailable on ia64.

Enable GCC stack protection (aka Propolice) for kernel:
- It is opt-out for now so as to give it maximum testing.
- Do not compile your kernel with -fstack-protector-all, it won't work.

Submitted by:	Jeremie Le Hen <jeremie@le-hen.org>
2008-06-25 21:33:28 +00:00
Luigi Rizzo
fda51f89ff Fix build of the "package" target, ignoring non existing
floppy types (in fact, we have only one left!)
Also cleanup some code, using || and && in some places, and
using "export VAR=value" instead of two separate lines.
2007-11-14 07:38:22 +00:00
Luigi Rizzo
df4706e2cc Fix picobsd builds. Changes include:
- use proper make configuration for the build, using
  ${BINMAKE} as evaluated by ${VERSION}/src/Makefile
- remove -lmytinfo from crunch.conf
- remove support for login_access in tinyware/login
- remove "machine i386" from the kernel config file

It might actually be interesting to extend the script to do
a cross build for !i386 ...

MFC after: 3 days
2007-11-14 05:42:54 +00:00
Poul-Henning Kamp
f6ce2a64f7 Send the pcvt(4) driver off to retirement. 2006-05-17 09:33:15 +00:00
Luigi Rizzo
6f1421828e unbreak the build script.
Instead of using vnconfig/mdconfig it relies on the makefs
port to build the image (UFS1) without need for root permissions.
2006-01-31 20:24:43 +00:00
Ruslan Ermilov
f45a5bbda4 NOCLEAN -> NO_CLEAN
NOCLEANDIR -> NO_CLEANDIR
2004-12-21 12:21:26 +00:00
Ruslan Ermilov
6495335e69 NOSHARE -> NO_SHARE 2004-12-21 12:13:23 +00:00
Ruslan Ermilov
582ef25f94 NOHTML -> NO_HTML 2004-12-21 12:05:11 +00:00
Ruslan Ermilov
39a855c2a1 NOGAMES -> NO_GAMES 2004-12-21 10:36:54 +00:00
Ruslan Ermilov
00fbd40770 NOFSCHG -> NO_FSCHG 2004-12-21 09:53:14 +00:00
Ruslan Ermilov
ab7a294721 NODOCCOMPRESS -> NO_DOCCOMPRESS
NOINFO -> NO_INFO
NOINFOCOMPRESS -> NO_INFOCOMPRESS
NOLINT -> NO_LINT
NOPIC -> NO_PIC
NOPROFILE -> NO_PROFILE
2004-12-21 09:33:47 +00:00
Ruslan Ermilov
f1f6253f4f NOLIBC_R -> NO_LIBC_R
NOLIBPTHREAD -> NO_LIBPTHREAD
NOLIBTHR -> NO_LIBTHR
2004-12-21 09:00:26 +00:00
Ruslan Ermilov
e653b48c80 Start the dreaded NOFOO -> NO_FOO conversion.
OK'ed by:	core
2004-12-21 08:47:35 +00:00
Luigi Rizzo
616f4ca3a7 Fix various issues with the picobsd build script in -current:
+ declare some shell variables as 'local'
+ add a missing ';;' in a 'case' statement
+ centralize newfs options
+ properly override GID and UID when installing include files and libraries
+ add a missing '-r' in disklabel commands (maybe not necessary, but it
  does not harm and it was used in the RELENG_4 version)
+ no more require 'perl' when installing the secondary loader
+ use '-t rsa1' when invoking ssh-keygen
2004-03-21 10:46:13 +00:00
Hidetoshi Shimokawa
0f7d82315a Remove obsolete disklabel and newfs options. 2003-11-07 12:49:55 +00:00