Commit Graph

40 Commits

Author SHA1 Message Date
tsutsui 17794e1c77 Replace RELEASE and VERSION strings proplery.
sun2 and sun3 don't use MI src/distrib/miniroot/list so this should
have been sync'ed with it.
http://cvsweb.netbsd.org/bsdweb.cgi/src/distrib/miniroot/list#rev1.36
>> Use proper release version strings ("9.1" rather than "91") in banners.
>>
>> Also define and use "MACHINE" variable to describe port names
>> (no uname(1) or sysctl(8) in miniroot binary list by default).

Should be pulled up to netbsd-9.
2021-06-18 23:55:20 +00:00
martin 5fe518b10d Drop wide char support to save space 2021-03-01 09:24:27 +00:00
christos 128e5f5e67 1. Remove all the special handling of variables (-d -p -P -s -S) that
were dealing with DBG (-d) LDSTATIC/NOPIE (-p), and the rest with
   disabling/enabling sanitizers.
2. Use emalloc/estrdup for all the allocators instead of only some cases.
3. Add -V varspec which passes variables on the command line (as DBG
   and LDSTATIC used to be passed before) instead of appending them
   to the on-the-fly Makefile using -v varspec.
4. Change the distrib and rescue Makefiles to use -V instead of the removed
   flags.

The motivation of this is to make variable handling consistent, less magical,
and remove the need for changing crunchgen each time we want to add disabling
an option by default.

(as proposed in tech-toolchain)
2019-12-29 18:26:16 +00:00
christos 441814a01a bump 2019-12-18 02:35:59 +00:00
christos 009f8e31d2 += for MAKEFS_FLAGS 2017-01-24 18:04:01 +00:00
christos 7c0a299a7f mark fstab .PHONY to prevent it being re-made from fstab.c in suffix rules. 2014-08-27 04:30:25 +00:00
joerg 820c9d565a Explicitly build space constrained ramdisk images without unwind tables. 2013-08-12 16:31:28 +00:00
roy 0adc6cef21 Remove terminfo.db as it's now embedded in libterminfo. 2010-02-11 09:06:47 +00:00
roy bb3a353864 Use the rescue terminfo.db in our images instead of termcap. 2010-02-05 10:01:16 +00:00
tsutsui 5a95051509 Replace references to local and now no-longer-existing termcap files
with references to ${DISTRIBDIR}/common/termcap.
2009-10-09 15:56:25 +00:00
abs bdf4da2bba Nothing needs disktab anymore, so we'd rather have an inode and
slightly over 1K of space on install media...
2009-09-20 22:46:10 +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 7a3d39395e Use the cutdown distrib/common/services and distrib/common/protocols
rather than the full fat etc versions
2009-01-25 22:08:37 +00:00
apb f46c1de7cb Use ${TOOL_SED} instead if plain sed in Makefiles. 2008-10-25 22:27:34 +00:00
tsutsui 44f3e60011 Fix (currently harmless) typo.
I'm not sure why autobuild (amd64) gets ICE with -Os while it works on i386..
2008-04-29 17:42:35 +00:00
isaki eecbbb187f Remove a duplicated option in MAKEFS_FLAGS.
"minfree=0,optimization=space" is defined at
../../common/Makefile.image.
2007-06-24 05:41:52 +00:00
tsutsui 419a28d6ac Use src/distrib/common/services so that miniroot fits in 4MB. 2007-05-16 13:06:39 +00:00
he c80ab09cea Bump the miniroot size from 4M to 4300k so the contents fits again. 2007-05-15 20:47:17 +00:00
tsutsui 5394379e91 Use crunched binary on sun2 miniroot so that miniroot is
now much smaller (18MB -> 4MB).
Installation is tested on TME (with a workaround for uvm_readahead.c bug).
2007-03-20 16:20:20 +00:00
apb 305d6c91e1 MAKEDEV.subr no longer exists. Don't install it in any ramdisk
or miniroot images.
2007-03-03 06:40:05 +00:00
apb 911c20c486 Add MAKEDEV.subr to IMAGEDEPENDS. These miniroot images should probably
be converted to use common/Makefile.makedev.
2007-03-01 09:25:42 +00:00
he cfaad7eb68 Bump the miniroot size by 1MB to 18MB so that it fits again. 2006-07-31 22:56:09 +00:00
he 6ecd57a7f6 Bump the miniroot size from 16m to 17m so that the contents fits again. 2006-02-14 21:27:52 +00:00
skrll 998c088730 Increase miniroot size to 16m. 2004-06-05 19:05:29 +00:00
he 04f04dc579 Bump miniroot size from 13M to 15M so that the contents fits again. 2004-02-23 18:53:31 +00:00
chs 65c85e200e miniroot doesn't fit in 12MB anymore, make it 13.
remove fd0 from device list since it doesn't exist.
2003-12-13 22:05:28 +00:00
lukem 001c68bd94 Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO".  The new variables are:
	TOOL_ASN1_COMPILE  TOOL_CAP_MKDB  TOOL_CAT  TOOL_CKSUM  TOOL_COMPILE_ET
	TOOL_CONFIG  TOOL_CRUNCHGEN  TOOL_CTAGS  TOOL_DB  TOOL_EQN  TOOL_FGEN
	TOOL_GENCAT  TOOL_GROFF  TOOL_HEXDUMP  TOOL_INDXBIB  TOOL_INSTALLBOOT
	TOOL_INSTALL_INFO  TOOL_M4  TOOL_MAKEFS  TOOL_MAKEINFO  TOOL_MAKEWHATIS
	TOOL_MDSETIMAGE  TOOL_MENUC  TOOL_MKCSMAPPER  TOOL_MKESDB
	TOOL_MKLOCALE  TOOL_MKMAGIC  TOOL_MKTEMP  TOOL_MSGC  TOOL_MTREE
	TOOL_PAX  TOOL_PIC  TOOL_PREPMKBOOTIMAGE  TOOL_PWD_MKDB  TOOL_REFER
	TOOL_ROFF_ASCII  TOOL_ROFF_DVI  TOOL_ROFF_HTML  TOOL_ROFF_PS
	TOOL_ROFF_RAW  TOOL_RPCGEN  TOOL_SOELIM  TOOL_SUNLABEL  TOOL_TBL
	TOOL_UUDECODE  TOOL_VGRIND  TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
	TOOL_FOO?=	foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
	TOOL_FOO=	${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.
2003-07-10 10:33:58 +00:00
fvdl 42614ed3f3 Add support for UFS2. UFS2 is an enhanced FFS, adding support for
64 bit block pointers, extended attribute storage, and a few
other things.

This commit does not yet include the code to manipulate the extended
storage (for e.g. ACLs), this will be done later.

Originally written by Kirk McKusick and Network Associates Laboratories for
FreeBSD.
2003-04-02 10:39:19 +00:00
lukem 094e12e661 consistently use "${INSTALLBOOT} -v ..." 2002-05-14 06:21:20 +00:00
jdolecek 8b49ffb90d don't use ${OBJDIR}, using just 'install.sub' in IMAGEDEPENDS should work fine
add install.sub to CLEANFILES
2002-05-07 09:14:15 +00:00
lukem ed8e534c7e yet another distrib overhaul:
- move guts of distrib/Makefile.inc to distrib/common/Makefile.distrib
  (fixes problem caused by implicit include of ../Makefile.inc in certain
  submake conditions triggered by makefiles not yet in tree)
- removed mkdir of ${RELEASEDIR}/*;  rely upon "snap_pre" target of
  etc/Makefile to create all the release directories
- renamed RELINSTALL to RELEASE_INSTALL
- renamed FLOPPYINSTDIR to FLOPPY_RELEASEDIR
- renamed MDSETDIR to MDSET_RELEASEDIR
- removed ITARGET
- move release target from top level to appropriate subdirectory
- ensure release target has correct depends
- replace miniroot's IMAGE_MD_POST with common/Makefile.image IMAGEPOSTBUILD
- Makefile.image: add realall: ${IMAGE}
2002-05-02 18:02:14 +00:00
lukem 9e5598221a replace _SRC_TOP_ with NETBSDSRCDIR, since the latter is the "public" version 2002-04-26 15:50:21 +00:00
lukem e9e28d241a Migrate to a distrib framework closer to how other ports work.
Arguably this could be moved to using the distrib/miniroot
infrastructure instead.

XXX: This could benefit from being crunchgen-ed with libhack;
currently it just uses a lot of stuff out of ${DESTDIR}
2002-04-26 03:49:05 +00:00
lukem b15f81d077 - call ${INSTALLBOOT} with -m ${MACHINE}
- use check_RELEASEDIR
2002-04-26 02:51:47 +00:00
fredette 3da37c5b67 Converted sun2 to the new distrib world order. It is now
possible to do full release unprivileged cross-builds.
2002-04-22 21:17:48 +00:00
lukem 983821fd73 - replace image_md_post: target with IMAGE_MD_POST variable, and use
that after building ${IMAGE}
- use ${IMAGEBUILT} to ensure that IMAGE_MD_POST is only run if IMAGE changes
2002-04-12 03:21:09 +00:00
lukem 49b82438e7 replace local ${REV} with ${DISTRIBREV} from distrib/Makefile.inc 2002-03-06 12:14:26 +00:00
fredette 920566d233 Sync with the sun3 distrib code, and fixed many problems
to the point where this is truly useful for building
sun2 releases.
2001-12-17 20:27:39 +00:00
jmc a37907dc27 Add MTREE?= to add Makefiles and use when running mtree 2001-10-13 06:15:15 +00:00
fredette 75c4ef5d8d Added sun2 distrib files. 2001-05-18 00:16:36 +00:00