Commit Graph

4706 Commits

Author SHA1 Message Date
lukem 39805e0285 - cleanup image device creation: add Makefile.makedev & list.makedev,
remove dist/*, now that they're not needed.
  if MAKEDEVTARGETS is set, use MAKEDEV.wrapper and makedev2spec.awk to
  create an mtree specfile containing the devices that would be made with
  "etc/etc.${MACHINE}/MAKEDEV $MAKEDEVTARGETS".
  otherwise, copy etc/etc.${MACHINE}/MAKEDEV to dev/MAKEDEV (via list.makedev)
- add mtree.common; contains directories used by all images, and optional
  entries for dist/*
2002-02-08 02:18:53 +00:00
ross dc5571b22e Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:21:55 +00:00
lukem cc74f22504 add list containing files used by sysinst, including dummy files that
are used to set the default permissions in the generated mtree specfile
for files generated by makeobsolete.
2002-02-07 11:40:48 +00:00
lukem 6276be048b - improve error checking
- add support for passing variables to parselist.awk that are used to replace
  text in each line of the lists.  currently supported strings:
	text		variable
	----		--------
	@MACHINE_ARCH@	MACHINE_ARCH
	@MACHINE@	MACHINE
2002-02-07 11:39:17 +00:00
lukem 2d60e83706 add more argument checking 2002-02-07 11:35:56 +00:00
ross 4db2b6a34e Add share/man/html? and the lower machine directories.
These are just the directories, not the html files themselves.
2002-02-07 02:49:39 +00:00
ross ff83c8aba1 track change in -mdoc2html, and set DOC_XR so that .Xr macros don't
actually generate hypertext links to the man pages, like they do
know when the pages themselves are formatted. The obvious problem
is that if you aren't a man page, you don't know where the man
pages are.
2002-02-07 02:07:05 +00:00
ross d750bb9154 TARGETS is defined by bsd.own.mk, so use LOCALTARGETS instead 2002-02-06 23:29:42 +00:00
jdolecek cf523d6e7c Move the joy(4) manpage to MI location, too - it's not i386-only.
Pointed out by Thomas Klausner, thanks :)
2002-02-06 21:06:32 +00:00
lukem 339d59ee8a Changes to the tiny images so that an mfs /dev isn't required (there might
not be enough RAM to support that), at the expense of more inodes and a
slightly larger md file system (which, when compressed down, still fits in
a kernel and that kernel still fits on a 1.2MB floppy):
- Define MAKEDEV_DEVS to 'std md0 fd0 fd1 wd0 wd1 wd2 wd3 cd0 cd1 pty0 ttyv0'.
- Call makefs with -f 10, to add a few spare inodes.
- Crank imagesize from 1344k to 1440k to handle extra space needed by the
  inodes containing the devices.
2002-02-06 16:15:56 +00:00
lukem f551aa0ea4 If MAKEDEV_DEVS is defined, run etc.i386/MAKEDEV through MAKEDEV.wrapper and
makedev2spec.awk to generate another mtree specfile for use when building
the image, and don't copy dev/MAKEDEV to the target image.  This is primarily
for the tiny images which might not have enough memory for an mfs /dev.
Otherwise (MAKEDEV_DEVS not defined), continue to copy dev/MAKEDEV.
2002-02-06 16:12:18 +00:00
lukem 876b3e8195 no need to list etc/passwd anymore 2002-02-06 16:09:14 +00:00
lukem 1a64af8d1b MAKEDEV.wrapper
generate list of commands from provided MAKEDEV script with
	given arguments, to feed into makedev2spec.awk

makedev2spec.awk
	take output of MAKEDEV.wrapper and generate an mtree(8) specfile.
2002-02-06 16:08:16 +00:00
lukem 8b407af734 - allow ${MTREECONF} to contain multiple files, and build ${WORKSPEC} up by
catting these together with "/unset all" between each file.
- when populating the tree (${WORKBUILT} rule), depend upon ${WORKSPEC}
  rather than ${MTREECONF}
- support ${MAKEFS_FLAGS} as optional flags for ${MAKEFS}
- use CLEANFILES to remove files
2002-02-05 23:29:43 +00:00
lukem 5bb092ee45 replace /unset mode with /unset all 2002-02-05 23:16:51 +00:00
lukem e07af841a2 use CLEANFILES to remove cruft 2002-02-05 23:16:16 +00:00
wormey cef7fb637b Fix from Takeshi Shibagaki (ie9t-sbgk@asahi-net.or.jp):
(effect of)  fixed a bug when it makes install image.
(reason for) We cannot apply to newfs no disklabel device, so must
             write temporary disklabel. refer to i386.
2002-02-05 23:10:02 +00:00
reinoud 19c1a02e8b The postfix `regexp' and `pcre' examples are now split into a `access',
`body' and `header' part ... The origional examples are aparently no longer
available.
2002-02-05 15:03:50 +00:00
reinoud 3af1f00423 Add the relevant libarm* libs to base and comp for acorn32 2002-02-05 14:11:34 +00:00
reinoud ef70c25c39 libarm32.so should be in base, not in comp. 2002-02-05 13:58:40 +00:00
lukem 848861bf4f add some more IMAGEDEPENDS 2002-02-05 11:15:04 +00:00
mrg c0099774ec allow the user to continue the install, even if sysinst thinks that the
network has not been configured (due to what ever local condition that
causes ping to fail, or whatever.)  requested by kre in private email
many many months ago.
2002-02-04 14:35:10 +00:00
blymn dedd8b8cb7 Major lib bump for libmenu 2002-02-04 13:05:22 +00:00
tsutsui bfb4c00da9 NOLIBHACKOPENDIR is gone. 2002-02-04 11:13:33 +00:00
tsutsui f8f85f68d9 Sync with newsmips:
> use ${HACKOBJS:Ngethost.o} instead of trying to keep HACKOBJS in sync
> with HACKSRC/Makefile.inc
2002-02-04 11:03:08 +00:00
thorpej 7599c17f99 Don't install <stdbool.h> for now. Lossage resulting from me testing
with a not-in-tree compiler.
2002-02-04 08:51:26 +00:00
ross 0a4e099c15 stop specifying cylinders per group 2002-02-04 01:11:09 +00:00
skrll 03ecb39a1f Don't go mad with the includes... 2002-02-03 22:44:21 +00:00
lukem a23934fd2a permanently disable opendir.o until its link bugs (on ELF platforms
only?) are sorted out.  speculation (based on some analysis by simonb)
is that it's because fts calls _opendir2 directly, which forces both
the libhack and the libc versions of opendir.o to be linked in.
in any case, there's space saves to be had elsewhere...
2002-02-03 22:39:52 +00:00
skrll a3a8c36b17 Factor out the aout library moving code for use in other platforms. 2002-02-03 22:21:55 +00:00
wormey 3beb955c29 Add definition to a variable. 2002-02-03 20:04:31 +00:00
wormey cf2b6407b6 mdsetimage doesn't have a -T option; remove it 2002-02-03 19:59:30 +00:00
lukem de1da0afc1 remove XXX comments left in by mistake 2002-02-03 16:58:46 +00:00
lukem adb295f063 use ${HACKOBJS:Ngethost.o} instead of trying to keep HACKOBJS in sync with HACKSRC/Makefile.inc 2002-02-03 16:35:11 +00:00
lukem c8099b4072 Major overhaul, to enable unprivileged (cross) building, removing the
requirement to build as root on a system with vnconfig.


Use ${KERNSRCDIR} and ${_SRC_TOP_} where appropriate

Remove now-obsolete:
	list2sh.awk runlist.sh bootfloppy-common/list

Bootfloppy-*/Makefile: don't need to set DISKTYPE or BLOCK8K any more

Rename  bootfloppy-common/Makefile.inc  to  common/Makefile.bootfloppy
and	fdset-common/Makefile.inc       to  common/Makefile.fdset
This uses makefs instead of vnconfig and disklabel, thus removing the
need for root privileges to build these floppies..

Add common/Makefile.ramdisk, to simplify ramdisk-*/Makefile.
Uses shared ${_SRC_TOP_}/distrib/common/Makefile.crunch and
${_SRC_TOP_}/distrib/common/Makefile.image to even further simply things.

Migrate ramdisk-*/dot.profile to a shared common/dot.profile, which
detects whether it's an install or rescue profile based on the existance
of /sysinst.  Remove /dev generation code as init(8) now does that for us.

Migrate common parts of */list to a shared common/list.ramdisk.
Convert ramdisk-*/list to new format used by distrib/common/parselist.awk
Don't bother running pwd_mkdb now that libhack's getpwent parses
/etc/master.passwd instead of /etc/passwd.

Migrate ramdisk-*/mtree.conf to a shared common/mtree.conf, which is now a
new full-path-style specfile.

Remove ramdisk-*/ramdiskbin.conf as it's now automatically generated
from ramdisk-*/list by parselist.awk.

Migrate ramdisk-*/termcap.mini to a shared common/termcap.mini.

Remove unused ramdisk-{small,tiny}/disktab.preinstall.

Use .for loops in kernel-*/Makefile to simply defining mostly-duplicated
targets.

ramdisk-*/Makefile: convert to using common/Makefile.ramdisk

Remove unused ramdisk-*/dot.hdprofile.
2002-02-03 16:22:19 +00:00
tsutsui c33eea3aac Use more libhack functions. 2002-02-03 15:56:26 +00:00
lukem d691d4a33e distrib/common - shared files for building distribution media, initially
comprising of:

    Makefile.crunch
	build a crunchgen(1)ed binary from the provided lists

    Makefile.image
	build a tree from the provided lists, and
	build an ffs file system image from that tree using makefs(8),
	without requiring root privileges

    parselist.awk
	parse list files generating different output:
		crunchgen config
		mtree specfile
		sh commands to populate a tree
2002-02-03 15:24:43 +00:00
lukem b5c22acdbc revert revs 1.10 (and 1.11); now back to using the ustarfs build framework
from ../bootfloppy-common/Makefile.inc like the other boot floppies.
it wasn't ustarfs that was broken, it was the broken PAD=yes code in the
latter trashing the last 8k of the kernel...
2002-02-03 14:58:24 +00:00
lukem ce248e3fc1 - fix PAD=yes code so that it won't potentially trash some of the last
8k of the kernel.
- minor cleanup of an error message
2002-02-03 14:56:00 +00:00
thorpej 9ff7f6dda8 Add <stdbool.h> 2002-02-02 17:36:07 +00:00
lukem 3ec71ac24d replace previous "cut down" getpwent.c with a version which is closer
to libc/gen/getpwent.c.  this version reads from master.passwd instead
of passwd  (thus removing the need to keep both in the mini file system
and having to run pwd_mkdb to generate the latter)
2002-02-02 15:57:54 +00:00
lukem d50281b041 sync closer to libc version 2002-02-02 15:31:58 +00:00
lukem 6d6c0437fa ansify 2002-02-02 15:08:06 +00:00
tsutsui 00ed66f7eb - Rename ${SIZE} -> ${RAMDISKSIZE} to avoid conflict with new-toolchain.
- On clean target, try to "make -f ramdiskbin.mk clean" first if it exists.
- Include bsd.prog.mk for new-toolchain.
2002-02-02 07:26:40 +00:00
reinoud b27c26ce1c Add include/arm/swi.h for SoftWareInterrupt base chunks. These chunchs
define the offsets of various operating systems chunks to enable
interworking / emulation.
2002-01-31 15:00:56 +00:00
reinoud 1511c4fe53 Dont forget libarm32.so in the setlist 2002-01-31 14:57:00 +00:00
reinoud 4881b77e47 Update set lists to include include/acorn32/int_* files and clean up a bit. 2002-01-31 14:55:25 +00:00
reinoud 04fd66e7c5 Add initial commit for acorn32 `comp' set lists .... mainly covering
/usr/include/acorn32
2002-01-31 02:52:51 +00:00
reinoud 816d147b7b Use etc.acorn32 and sysinst.acorn32 instead of the old arm32 versions. 2002-01-31 02:01:40 +00:00
reinoud 187b0b9771 Fix typo 2002-01-31 01:56:43 +00:00