Commit Graph

169 Commits

Author SHA1 Message Date
luigi
766078b4ad adjust picobsd script to work with HEAD 2016-10-14 15:16:44 +00:00
pfg
bdd407638b picobsd: minor spelling fixes. 2016-05-01 16:16:11 +00:00
bdrewery
59f4cb814d Remove the old depend (mkdep) code and make FAST_DEPEND the one true way.
Reviewed by:	emaste, hselasky (partial), brooks (brief)
Discussed on:	arch@
Sponsored by:	EMC / Isilon Storage Division
Differential Revision:	https://reviews.freebsd.org/D5742
2016-03-30 23:50:23 +00:00
luigi
0f9bc3ce0c rev.284898 removed _SHLIBDIRPREFIX so we need to reconstruct its value
to properly locate libraries created in the buildworld phase.
2015-07-10 05:07:18 +00:00
luigi
87dfc98e70 trap some errors when building picobsd 2015-07-08 16:41:25 +00:00
luigi
70c9059ac6 do not strip /stand
This is a temporary workaround until the elftoolchain's version
of strip is fixed:

The previous (GNU) strip, when acting on a file with multiple links,
would modify the one and only file in place (which means creating
a new stripped copy, and then writing it back to the original).

The new version from elftoolchain creates the new file and then
unlinks the old one and renames the new.
With multiple hard links, the original remains alive.  In the /stand
directory, this ends up creating 80+ copies of the same file.
2015-01-24 08:48:05 +00:00
luigi
e666b50f14 do not build libraries, they require a lot more stuff 2014-05-23 11:22:44 +00:00
luigi
a5bffeb3e9 remove unused code (building older releases should use the
picobsd file in the release itself)
2014-05-23 08:34:30 +00:00
luigi
171912e317 add libraries to the initial build for picobsd.
add a -j option so we can tune the amount of parallel make,
the default we used (-j 8) is large and was giving problems
with SUBDIR_PARALLEL due to some missing dependencies.
2014-05-23 08:10:07 +00:00
luigi
a5b9d0ccf7 fix picobsd cross builds on stable/10 2014-05-22 12:30:56 +00:00
gjb
057e8b4bc7 Chase r262505, and remove CVS exclusion from picobsd builds.
Sponsored by:	The FreeBSD Foundation
2014-02-26 00:54:59 +00:00
luigi
1b1ca7f807 do not use capsicum when building picobsd images 2014-01-06 08:09:19 +00:00
luigi
352a463ebf revise the helper functions to lookup binaries and their
shared libraries.
2013-12-15 07:04:59 +00:00
pluknet
f54ff2f69e Update log message. Picobsd stopped using kgzip a while ago. 2013-11-11 10:54:06 +00:00
luigi
c78dc87cdc bmake does not have a -v option so remove it 2013-11-04 23:46:20 +00:00
luigi
03bfda952a 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
c3d3ffef19 update the picobsd script to build with GCC and not CLANG 2013-10-16 16:46:15 +00:00
luigi
baf6916d29 comment out some stale loader configurations. 2013-09-06 17:19:57 +00:00
luigi
0c8c98d14e generate multiple host keys and do that unconditionally 2013-09-06 17:18:43 +00:00
luigi
1393045356 r253616 nuked BINMAKE so we need to adapt to the new definition 2013-09-06 17:16:33 +00:00
luigi
9e0ab53d2e use a plain 'make toolchain' to build toolchain, and
support parallel make on this stage.
2013-05-05 20:59:22 +00:00
luigi
c546a54503 remove a leftover comment 2013-05-05 18:54:25 +00:00
luigi
59cd15065c enable building picobsd with CC instead of CLANG 2012-12-23 22:41:54 +00:00
luigi
2d97353026 use MALLOC_PRODUCTION for picobsd builds, be more frugal in memory usage. 2012-08-27 16:42:32 +00:00
luigi
4a439608e6 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
31642250d5 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
089a168917 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
fe3a1e2f9d some tweaks to build picobsd for different architectures. 2011-11-23 12:05:39 +00:00
luigi
03ef5e5e31 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
20a2600f84 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
58ec2fd820 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
264e34b811 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
cdbc72ad73 clear leftover from previous computations 2009-12-28 01:02:45 +00:00
luigi
f46d0fc3ed more support to import files and libraries from the host. 2009-12-28 00:51:00 +00:00
luigi
11ce1df199 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
913d8fc2fa fix a typo (not that it matters) 2009-12-27 21:13:53 +00:00
luigi
3d3f0ecc02 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
0ba87e4c22 fix wrong name for the iso! 2009-06-22 16:06:38 +00:00
luigi
44dba55162 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
606a9499b9 add support for shared "crunch" binary. 2009-03-25 14:02:26 +00:00
luigi
b71af5fd28 add a function to help copying shared binaries from the output
of a buildworld.
2009-03-24 17:47:50 +00:00
luigi
6dd8d432a8 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
9f91fe4f6b 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
62c4509d7b 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
4ae61d9df9 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
ru
8735fdbd4c 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
a65c7c8bdb 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
797a1fb530 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
phk
537a82e24b Send the pcvt(4) driver off to retirement. 2006-05-17 09:33:15 +00:00
luigi
85c30c453b 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