Commit Graph

63 Commits

Author SHA1 Message Date
lukem a250e57c96 Install release files under "${RELEASEDIR}/${MACHINE}/..." instead of
"${RELEASEDIR}/...".

${RELEASEDIR} is never cleaned , and ${RELEASEDIR}/${MACHINE} is only
cleaned if UPDATE is not defined.
2003-01-03 15:34:30 +00:00
lukem 535cb8be26 enable (default) libhack for all miniroots.
for atari, also add gethost.o (as before)
2002-05-07 14:59:34 +00:00
lukem 6007cc8838 Use release:: instead of release: when multiple release targets may exist 2002-05-07 03:34:16 +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
tv aa25460ffb Make sure DBG setting is passed to crunch Makefile to get proper
compile-time options.
2002-04-23 19:44:14 +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 5ecebad8d3 remove MAKESUMS (provided by ../Makefile.inc). minor tweaks 2002-04-12 02:34:21 +00:00
lukem 7f1019eef4 tweak how distrib/Makefile.inc is pulled in. use realall: instead of all: 2002-04-10 16:14:11 +00:00
bjh21 c8d2650761 Set CKSUM in makesums' environment. 2002-04-08 23:15:50 +00:00
lukem a92372d6b7 add empty image_md_post rule so ports that don't provide one won't barf 2002-03-18 04:08:47 +00:00
lukem 71a6f6b575 If we're going to use DISTRIB(REV|VER) in generated files, have those files
depend upon osrelease.sh.  Issue raised by Havard Eidnes.
2002-03-17 22:30:31 +00:00
lukem c7ab75bebc need to pass DISTRIBREV and DISTRIBVER to parselist as well 2002-03-16 01:32:21 +00:00
lukem deffb66504 parselist.awk
- improve comments
- provide a general purpose variable replacement; replace contents of ${FOO}
  with ENVIRON["FOO"].
- deprecate @MACHINE@ and @MACHINE_ARCH@ in favour of using ${MACHINE}
  and ${MACHINE_ARCH} instead
- add errx() function; like err(), but doesn't print the line number
- invoke this script with various variables defined via PARSELISTENV

*/Makefile*
- use PARSELISTENV instead of POPULATEENV, and add variables like DESTDIR
- other minor tweaks

*/list*
- replace @MACHINE@ with ${MACHINE}
2002-03-14 22:26:08 +00:00
lukem a8025d95ae Commit work-in-progess rototill of distrib/miniroot and associated machine
dependent files:

- Use infrastructure from distrib/common to build file system images with
  crunchgen-ed programs from a list file.

- Non root ("UNPRIVED") builds from a read-only source tree are possible,
  as makefs(8) replaces vnconfig(8)/vnd use, devices are generated using
  common/makedev2spec.awk, etc.

- Cross builds should be possible, except that some ports need cross-compile
  host tool versions of installboot and any appropriate host disk labelling
  tools.
	XXX: pmax, sparc and vax need fixing for this!

- This code has NOT YET BEEN TESTED on most of the ports.
  It should work, but it is extremely likely that the file system
  parameters may need tweaking to get things to fit.
  See MAKEFS_FLAGS in sparc/miniroot/Makefile.inc for an example.
  If assistance is required, please ask!
2002-03-06 12:04:48 +00:00
is a23cd9356a Use the building machine's raw partition instead of fixed "c" to allow
cross-building.
2002-02-12 11:17:47 +00:00
lukem acf8770a4a remove REV in favour of DISTRIBREV (from ../Makefile.inc) 2002-02-12 01:38:17 +00:00
lukem 811d644d8f don't set the owner or group when installing into $RELEASEDIR 2002-02-09 13:56:48 +00:00
pk 653e663226 Test DESTDIR and RELEASEDIR for non-emptyness as well as existence, sigh.. 2002-01-15 17:45:36 +00:00
pk 0fe18a041a Remove instbin.cache from dependency lists, since crunchgen is now run
unconditionally.
Avoid running the crunchgen command multiple times for each dependent
target by marking only one target (instbin.mk) for unconditional re-make.
2002-01-15 17:41:41 +00:00
shin aac10b548d use 'vnd0' instead of 'vnd0c', when unconfigure device. 2002-01-07 12:56:42 +00:00
jmc 353d4e5bef Just use vnd0 when vnconfig'ing and then use the char/raw device when newfs'ing
and mounting
2001-11-27 05:05:38 +00:00
tron d6302e0641 Use the block device when invoking "vndconfig" because the character
device isn't accepted any longer.
2001-11-08 07:29:45 +00:00
shin e056338509 use raw device name for vnconfig. 2001-11-07 08:02:54 +00:00
jmc a37907dc27 Add MTREE?= to add Makefiles and use when running mtree 2001-10-13 06:15:15 +00:00
enami 652855a0c7 Use symbol MTREECONF instead of MTREE to refer configuration file
to avoid conflicts.  Pointed out by chs@netbsd.org.
2001-10-10 05:13:51 +00:00
jmc af957ccb50 Make sure crunchgen remakes the makefile everytime and it doesn't use it's
cache since other Makefiles could change source files too easily.
2001-02-25 03:54:24 +00:00
garbled 83f61a5891 Change all ocurrences of "crunchgen" to ${CRUNCHGEN} 2000-11-01 07:57:55 +00:00
jhawk a022cf9d37 Use
${MAKE}
instead of
  make
2000-08-30 23:51:46 +00:00
leo e388684ccd Backout previous commit. It shouldn;t have happend. 2000-08-29 11:41:24 +00:00
leo f07d4c1517 Pull up revision 1.16 (requested by leo, approved by thorpej).
Log:
  Use x_ed and x_route to save space on the miniroot.
2000-08-29 11:31:18 +00:00
matt 9d53129465 Updagte the VAX bits so they actually work. Use the common method of building
miniroots.  Fix the ramdisk bits.  Use the INSTALL kernel.  This stuff has
really suffered from bitrot.
2000-05-18 02:12:43 +00:00
sjg 9caa7e60e5 Added missing .gz to makesums arg 2000-05-05 11:15:45 +00:00
sjg 1f724b9392 use bsd.kernobj.mk to tell us KERNOBJDIR for compiled kernels. 2000-05-02 16:06:45 +00:00
sjg 49cf26c7de Use top-level Makefile.inc to set BSDSRCDIR
use bsd.kernobj.mk to set KERNOBJDIR and pass this to runlist.sh
2000-05-02 06:45:24 +00:00
pk 6fa10bb0bf Fix path to `makesums' 2000-04-16 21:27:00 +00:00
matt fedc2dd8aa Use relative path to osrelease.sh 2000-04-16 19:17:18 +00:00
pk 20bea9cdbc Bump image size by 1MB. 2000-03-07 08:41:35 +00:00
is cb9a71b69b Make sure the miniroot distribution directory exists.
Compute the checksums.
2000-03-06 21:43:36 +00:00
pk f1feb4e600 Remove version number from boot image files. 2000-01-10 15:17:30 +00:00
pk b06b87a810 Add `release:' targets. 1999-10-18 20:13:55 +00:00
abs 68801ce8f6 s/makeing/making/ 1999-07-18 07:22:36 +00:00
veego dfa799a037 Sync with the recent crunchgen changes.
- Remove *.cro files and not the obsoleted *.lo files.

From Bill Studenmund commit message:
> 3) Generate .cro files rather than .lo files. .lo now is used for "local
> objects" - obj's for the host machine not the target machine.
1999-05-11 20:46:58 +00:00
is f9b0d69d7d use an async mount for building the miniroot filesystem 1999-04-18 21:01:57 +00:00
jonathan c0fc274246 Add hook for running extraneous commands before newfs. 1998-11-16 23:43:58 +00:00
lukem 06b0ffe181 distclean is a synonym for cleandir 1998-09-05 14:46:13 +00:00
bad 4da46852f5 We don't need to manually flush the buffer cache after ``vnconfig -u''
anymore.
1998-01-26 23:50:54 +00:00
scottr de9a20d706 Add a VND_GEOM variable for optionally specifying a geometry
to vnconfig(8).
1997-09-22 21:33:31 +00:00
is cd718ac0c1 More changes, while working on Amiga generic miniroot stuff:
- added method BOOTINSTALL, for an architecture to optionally install a
  bootblock in the miniroot (this works for Amiga)
- added Amiga keymap directories
- removed the subdir selection from mount_local_disk() and mount_nfs(), and
  the remains from mount_cdrom(), as all are handled now by the subdir
  navigator in mount_from_installed_fs()
1997-09-09 23:02:04 +00:00
pk 54c37dd087 Make DISKTYPE optional; default to vnd's builtin geometry.
Make `vnd0c' the default vnd device (instead of `vnd0a').
1997-07-15 08:16:36 +00:00