Commit Graph

211 Commits

Author SHA1 Message Date
dsl
ec9cf4df7b If MAKEVERBOSE < 2 remove the -v from pax command lines. 2014-02-15 09:43:02 +00:00
matt
53a841187b Pass DBG to crunchgen so it can get into the created mk file. 2014-02-01 21:05:54 +00:00
apb
a452d8c9e2 Pass the -n flag to gzip invocations.
This prevents it from embedding a timestamp in the output.  We pass
"-n" unconditionally, not conditional on MKREPRO, because many other
invocations of gzip already passed the -n flag unconditionally.
2014-01-27 21:37:17 +00:00
apb
36ef98548b Use ${TOOL_GZIP} instead of just gzip in all Makefiles
outside */dist/* subdirectories.

When USE_PIGZGZIP=yes, bsd.own.mk sets TOOL_GZIP=${TOOL_PIGZ},
so there's no need to test USE_PIGZGZIP in these Makefiles.
2014-01-27 08:18:07 +00:00
christos
dbc15d6fe0 don't include bsd.files.mk here, it is intended as a fragment 2014-01-22 00:52:56 +00:00
christos
2b043c75b6 eliminate use of bsd.sys.mk from Makefiles 2014-01-16 01:15:32 +00:00
joerg
c25bfae0c4 Save space and strip .eh_frame sections for the ramdisks as well. 2013-08-15 12:39:28 +00:00
khorben
7e7403a7ed Common definitions for full-disk encryption support, including the rc script responsible for asking the passphrase and chrooting. wsconsctl is also built and used in case a splash screen is enabled. 2013-07-15 00:25:38 +00:00
christos
22e0a3bf24 Add IMGMAKEFSOPTIONS like in the bootimage Makefile 2013-05-24 21:34:19 +00:00
he
36984c64cc Fix the ALL_KERNELS default value assignment, so that the double
quotes don't become a part of the value, causing all the targets
to be skipped by default.
2013-01-30 13:47:36 +00:00
christos
9a9b8c8de6 revert previous, it was an unintended side effect. fixed in makefs 2013-01-29 19:48:41 +00:00
he
e10de0f72f The rockridge option of makefs now requires a =1, follow suit. 2013-01-29 18:17:29 +00:00
mlelstv
3bc93874c5 build.sh lets you build releases with a limited set of kernels by
using the ALL_KERNELS environment variable to override the arch default.

Fix this mechanism for evbarm by limiting the generated boot images
accordingly.
2013-01-13 14:43:23 +00:00
jakllsch
d57a76d195 Don't enable WAPBL in images. 2012-11-20 20:16:03 +00:00
tsutsui
7be7385533 Allow overriding live-image and install-image sizes by
INSTIMAGEMB (for install-images), USBIMAGEMB (for x86 sd0root liveimages),
and EMUIMAGEMB (for other liveimages) variables.
Per discussion on current-users@:
http://mail-index.NetBSD.org/current-users/2012/10/29/msg021368.html
2012-11-03 14:25:32 +00:00
apb
8d127e2f7d Add distrib/common/Makefile.minirootkmod. Apart from comments and the
conversion of some constants to variables, this is identical to the code
that was previously present in both distrib/amd64/kmod/Makefile and
distrib/i386/kmod/Makefile.

Change distrib/amd64/kmod/Makefile and distrib/i386/kmod/Makefile to just
set some variables and .include "../../common/Makefile.minirootkmod".
2012-10-16 08:19:36 +00:00
riz
81f27d3683 Install fully-populated .iso images in ${RELEASEDIR}/images instead
of ${RELEASEDIR}/iso, since we'll be putting non-iso images in there too.
2012-08-17 16:57:59 +00:00
matt
e63fd2b971 Add a dependency on etc.${MACHINE}/MAKEDEV.conf 2012-08-10 05:22:22 +00:00
matt
034cfa7ab5 Add a dependency for Makefile so that when you add device to the Makefile
it will automatically regenerate the device mtree file and cause the ramdisk
to be updated.
2012-07-20 11:19:03 +00:00
tsutsui
f5e4f3d0bd Fix typo in comments. 2012-04-22 07:23:42 +00:00
tsutsui
e70f6aa789 Add two optional variables for liveimage/installimage builds:
---
	MBR_BOOTCODE
		optional MBR bootcode which should be installed by fdisk(8)
		(default: empty)
		- specified MBR_BOOTCODE must exist in ${DESTDIR}/usr/mdec
		- if MBR_BOOTCODE is not specified,
		  MBR_DEFAULT_BOOTCODE (default: mbr) will be used
		  if the target ${MACHINE} has the one in /usr/mdec

	INSTALLBOOTOPTIONS
		options passed to installboot(8), e.g., -o console=com0
		(default: empty)
---
Proposed by Brook Milligan on current-users@:
http://mail-index.NetBSD.org/current-users/2012/04/16/msg019892.html

Also make USE_MBR work on ${MACHINE}s which don't have the default
/usr/mdec/mbr bootcode. (no such port has the liveimage target yet though)

XXX: tools fdisk(8) implicitly uses host's /usr/mdec/mbr for the default
XXX: bootcode even for non-x86 targets if host is x86
2012-04-22 05:24:39 +00:00
riz
a59062a175 s/Createing/Creating/ 2012-04-09 19:22:49 +00:00
martin
550cdc2ff9 Fix typo in usage 2012-02-22 16:12:34 +00:00
njoly
e46cff4057 Tweak MAKEDEVSPEC target to properly report MAKEDEV failures:
- No need to ignore `rm -f' failures which should not happen.
- Do not pipe MAKEDEV output, but use a temp file.
2012-02-18 14:26:27 +00:00
riz
d77699356b Use a new variable, MODULEVER, for kernel modules, tracking what's been
done elsewhere.
2012-02-17 00:33:24 +00:00
tsutsui
02828259e9 Appease warnings `"expr 0 \* 1024 \* 1024 / 512" returned non-zero status.'
SWAPMB could be zero (in install-image case) and
expr(1) returns exit status 1 in that case.  Umm.
2012-01-22 16:56:22 +00:00
tsutsui
99c3f09a00 Fix checks for RELEASEDIR (and xxxxIMGBASE) variables to perform it
only on live_image or install_image targets.  PR toolchain/45864
2012-01-22 16:50:00 +00:00
tsutsui
3cf69f27e2 Add "live-image" and "install-image" target support to build.sh.
"live-image" target builds pre-installed disk images that can be used on
emulators or boot from USB memory sticks to try NetBSD without installation.
Currently amd64, i386, pmax, sparc, sparc64, sun2, sun3, and vax
(which have working emulators and don't require extra tools like preparing
 msdosfs or partitioning MD label structures) support this target.

"install-image" target builds an bootable installation disk image that can
be used as an install CD but burned into USB memory sticks etc.
Current only amd64 and i386 (which would support USB boot) have this target.

For more details (and known issue) see following posts on netbsd-bugs@:
http://mail-index.NetBSD.org/netbsd-bugs/2011/08/06/msg023639.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/09/23/msg024207.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/07/msg025166.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/08/msg025178.html

No particular comments about implementation, and
"go ahead" comments from mrg@, riz@ and christos@.

Closes PR toolchain/45153 and PR misc/45155.
2012-01-22 03:53:29 +00:00
jmcneill
ce4646dd28 PR# install/44593: Please give release ISO's more meaningful names
Change release ISO filenames, what was once 'i386cd.iso' will now look
like 'NetBSD-5.99.60-i386.iso'.

ok snj@
2012-01-14 22:56:30 +00:00
christos
c5a15770f9 SRCDIRS is not the way to do this; some testing would have been nice. 2011-05-31 06:19:11 +00:00
jym
8d179afa97 Document MDSET_NOIMAGE. 2011-01-01 16:56:18 +00:00
snj
a3e31bf1fb Update version number examples for the post-2.0I world. 2010-02-07 18:50:49 +00:00
roy
bb3a353864 Use the rescue terminfo.db in our images instead of termcap. 2010-02-05 10:01:16 +00:00
abs
b5fa4b8f63 update to generate something closer to common/termcap 2009-10-21 11:35:19 +00:00
christos
6964e246ca Exit with 1 so that we stay in single user mode when sysinst exits with 'x'.
Otherwise things get messed up (no /dev). From Anon Ymous
2009-09-25 14:09:27 +00:00
abs
2108b54359 34 different termcap subsets, plus a couple of ports still using
the full termcap distfile. In an attempt to reduce the madness
switch everyone (except the i386 cd install which does its own
thing) to the same (under 8K) termcap subset:

ansi			ansi/pc-term compatible with color
dumb|unknown		80-column dumb tty
hp300h			HP Catseye console
iris-ansi-ap		IRIS ANSI in application-keypad mode
iris-ansi|iris-ansi-net	IRIS emulating 40 line ANSI terminal (almost VT100)
sun|sun1|sun2|sun-il	Sun Microsystems Inc. console with working insert-line
vt100|vt100-am		DEC VT100 (w/advanced video)
vt220-8			DEC VT220 8 bit terminal
vt220|vt200|vt300	DEC VT220 in vt100 emulation mode
wsvt25			NetBSD wscons in 25 line DEC VT220 mode
wsvt25m			NetBSD wscons in 25 line DEC VT220 mode with Meta
x68k|x68k-ite		NetBSD/x68k ITE
xterm|vs100		xterm terminal emulator (X Window System)

Trying to provide similar functionality across all ports? It'll never
catch on...
2009-09-20 23:19:50 +00:00
abs
2383b0ce8e Ten identical list.inet6 files, or one common/list.inet6?
Not a difficult choice.
2009-09-20 22:50:50 +00:00
abs
52f8f0673d Move sun2, sun3 & x68k across to the common distrib etc/services, and
while here reduce it from 1180 to 794 bytes (whitespace & comment cleanup)
2009-09-20 19:41:35 +00:00
abs
d2e3664387 Merge four separate copies of list2sh.awk runlist.sh (three identical
and one with slightly less options). Release build verified on amiga,
bebox and evbsh3. Vax build fails for unrelated reason.
2009-09-18 09:24:58 +00:00
apb
91fe922f05 Add LINKSOWN, LINKSGRP, and LINKSMODE variables for use by bsd.links.mk
when installing hard links.  They have no effect except when using a
metalog, in which case the information is added to the metalog.  In
the future, these variables may be replaced by a method for explicitly
recording hard links in a metadata log.

Also change a few things that called ${INSTALL_LINK} without going
through bsd.links.mk.

Reviewed by perry and joerg.  This should fix PR 24457 and PR 41155.
2009-04-10 16:16:12 +00:00
joerg
4764c235e5 Change ramdisks from dhclient to dhcpcd and add corresponding glue to
sysinst. For amd64, the crunchgen binary shrinks by 150KB uncompresssed,
60KB compressed.
2009-04-07 11:49:16 +00:00
perry
58e0c54cf3 Consistently use gzip with the -n flag so dates are not embedded.
Not tested on all platforms.
2009-04-03 22:36:34 +00:00
christos
41a1a6cc14 reduce syscalls 2008-12-22 18:58:22 +00:00
tsutsui
0e53a56713 Regen (add RCS Id). 2008-12-22 18:46:41 +00:00
tsutsui
dbaf5f36b6 - add RCS Id
- put RCS Id strings to output
- generate termcap.mini directly rather than via stdout
2008-12-22 18:46:02 +00:00
hubertf
2aea62cc33 Work around another bunch of places where Solaris' /usr/xpg4/bin/sh
can't handle for-loops with no arguments ("for foo in") which result
from empty make-variables.

One step further in getting NetBSD cross-compiling from Solaris 10/x86.

Tested on the netbsd-5 branch.
2008-12-02 10:06:00 +00:00
ad
b58caf3fac - Add CDRUNTIME variable that copies files from ${DESTDIR} onto the CD.
- Add image_md_pre target.
2008-11-21 14:49:45 +00:00
apb
9d00c955d4 In buildfloppies.sh:
* Add a "-N etcdir" command line option, defaulting to /etc.
* Use pax in mtree mode.  This is the same idea as the change made in
  revision 1.14, with the following changes:
    + use ". type=dir optional" instead of just ". type=dir", so the
      output will not contain an explicit entry for the directory.
    + Explicitly set type=file and mode=0444 in the mtree lines.
    + Pass "-N ${etcdir}" to pax to make it use the correct passwd and
      group files.
    + Pass "-s^./,," to pax to make it strip the leading "./" from file
      names.

In Makefile.tarfloppy:
* Pass "-N ${DESTDIR}/etc" to buildfloppies.sh.

The resulting flopies have been verified to be identical to those
produced by version 1.13 of buildfloppies.sh, except that file owners
and modes are changed.
2008-11-12 14:22:16 +00:00
dbj
5050c64459 roll back to revision 1.13 until problems mentioned in
PR 39894
can be figured out.
i suspect we can add "boot" to the mtree input, but experimentation
needs to happen first.
2008-11-11 19:55:21 +00:00
dogcow
f3440efb4c If you really want to hardcode to a gid/uid, then use the numeric ones;
"wheel" doesn't exist across all unix-like systems.
2008-11-10 02:10:52 +00:00