Commit Graph

501 Commits

Author SHA1 Message Date
ed
02dcf28b58 Rework all non-contributed files that use `struct timezone'.
This structure is not part of POSIX. According to POSIX, gettimeofday()
has the following prototype:

	int gettimeofday(struct timeval *restrict tp, void *restrict tzp);

Also, POSIX states that gettimeofday() shall return 0 (as long as tzp is
not used). Remove dead error handling code. Also use NULL for a
nul-pointer instead of integer 0.

While there, change all pieces of code that only use tv_sec to use
time(3), as this provides less overhead.
2012-09-01 14:45:15 +00:00
luigi
2d97353026 use MALLOC_PRODUCTION for picobsd builds, be more frugal in memory usage. 2012-08-27 16:42:32 +00:00
des
0a471f315b Remove dead code. 2012-06-12 15:32:14 +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
dim
489adb600f Consistently set RPCGEN_CPP when running rpcgen, so the C preprocessor
set via ${CPP} is used, instead of always using hardcoded /usr/bin/cpp.

MFC after:	1 week
2012-02-07 09:27:07 +00:00
uqs
92c988259b Spelling fixes for release/ 2012-01-07 16:09:43 +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
gavin
dfa9620846 Merge r114010 of head/usr.bin/login/login.c into PicoBSD's login.c:
Correct the login.conf variable name used for obtaining the login prompt.

PR:		conf/44717 (indirectly)
Spotted by:	gcooper
MFC after:	1 week
2010-08-08 16:55:27 +00:00
gavin
9127923cf1 Correct two error messages to match the failure they are reporting.
MFC after:	1 week
2010-08-08 16:20:32 +00:00
luigi
64a563ba34 add some modern stuff: SMP, SCHED_ULE, PREEMPTION
and support for VIMAGE
2010-07-15 16:32:59 +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
dbd22cf8cf a minimal set of changes to adapt to the utmp->utmpx changes.
lastlog still not implemented, i am hoping that Ed or someone
has some idea on how to fix this, but it is really not important.
2010-02-14 15:51:36 +00:00
ed
f79d0f71d8 Remove libulog from the bootstrap again.
libulog now only provides functions that are used by various packages
from the ports tree, namely the libutempter ones. There is no reason to
link it into the crunch/fixit binaries anymore.
2010-01-21 16:56:27 +00:00
luigi
02f409c5f3 make the memory filesystem larger, and add an example
on how to import files from the host
2009-12-28 01:25:05 +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
2cb3a073b0 add a 'qemu' floppy type, useful for running tests on new kernels 2009-12-27 21:58:48 +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
49dc424fe3 put back the HZ setting or we see poor timing under qemu
MFC after:	3 days
2009-12-27 01:19:55 +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
9502adcb3a use default HZ 2009-12-09 17:42:14 +00:00
luigi
acc53422ca add -lulog, the program "less" and a comment 2009-12-09 17:41:47 +00:00
ed
368f00cc58 Convert {small prefix}BSD to TERM=xterm as well.
Clean up the ttys files shipped with PicoBSD, NanoBSD and TinyBSD. While
there, it seems one of them still had references to sio(4). Make it in
sync with what we do in the base system.
2009-11-13 11:32:14 +00:00
luigi
9345e76b5d create an SMP kernel by default in picobsd 2009-11-08 08:59:40 +00:00
luigi
bad2639cab ifconfig now needs -ljail
(this needs to go to RELENG_8 as well after the release is out)

MFC after:	1 month
2009-09-12 15:50:08 +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
edwin
ca2678266b The "original" PR said that there were two issues with the motd
(Eyes of the daemon not synced and the motd not displayed properly
on black-on-white screens): The first one was not valid anymore
since the text and logo were swapped already, the second one is
fixed by resetting the whole colourscheme instead of only the
background colour.

(also removed svn:keywords from motd since it doesn't have the
 string $FreeBSD$ in it)

PR:		misc/15876
Submitted by:	peter.jeremy@ALCATEL.COM.AU
MFC after:	1 week
2009-06-19 07:18:45 +00:00
luigi
4b9dbf472d fix various build errors (missing or wrong return types for
various functions returning void, missing headers, and so on).

MFC after:	4 weeks (not before 7.3 is out, anyways)
2009-04-27 16:57:19 +00:00
luigi
853f6a215e provide the absolute path for /etc/rc1 2009-04-06 11:14:30 +00:00
luigi
c7e10e8780 add some popular device and comment some potentially useful options 2009-04-06 11:08:33 +00:00
luigi
001377e4de there is no dev_mkdb anymore 2009-03-26 10:22:40 +00:00
luigi
dbe6a58879 This config file uses dynamically linked binaries, which is more
convenient when you want to import other programs because the
libraries will not be replicated.

Given that there are no floppies around anymore, I have bumped
the fd size to 4MB (which is more than reasonable even for
embedded platforms) and gives some room for other utilities.

MFC after:	3 days
2009-03-25 18:48:46 +00:00
luigi
68a976618a devfs is the standard now 2009-03-25 17:56:28 +00:00
luigi
606a9499b9 add support for shared "crunch" binary. 2009-03-25 14:02:26 +00:00
luigi
9af3227e1a remove stale comments on the size of objects, they are more
than 10 years old and do not reflect reality anymore.

Also remove some commented out entries that have no hope to
be useful anymore.
2009-03-24 18:02:35 +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
dwmalone
a40d5742b7 Warns fixes: use putenv rather than setenv to avoid constness problems,
when we want to print an off_t cast to intmax_t and use %jd.

Up WARNS to 6.
2009-03-17 19:51:04 +00:00
luigi
1d41b50f9c remove duplicate entries for isa and npx, they are
in by default now
2009-03-01 14:51:07 +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
luigi
9686c139b1 update 'sio' with 'uart' and apply related changes. 2009-02-19 23:29:05 +00:00