Subject: Re: How to create an install floppy?
To: Patrick Welche <prlw1@newn.cam.ac.uk>
From: Luke Mewburn <lukem@wasabisystems.com>
List: current-users
Date: 07/19/2002 02:48:31
On Thu, Jul 18, 2002 at 05:40:28PM +0100, Patrick Welche wrote:
| On Fri, Jul 19, 2002 at 02:23:54AM +1000, Luke Mewburn wrote:
| >
| > bootfloppy-small needs netbsd.INSTALL_SMALL.gz, which is built from
| > the INSTALL_SMALL/netbsd kernel that is mdsetimage-ed with the ramdisk
| > from ramdisk-small.
| >
| > Try something like this:
| > cd /usr/src/etc
| > make snap_kern
| > cd /usr/src/distrib/i386/floppies/ramdisk-small
| > make
| > cd ../kernel-ramdisk
| > make netbsd.INSTALL_SMALL.gz
| > cd ../bootfloppy-small
| > make
| >
| > This could be cleaned up (especially the snap_kern stuff). I hope to
| > be able to work on this after the 1.6 release.
|
| On a vaguely related note, in src/distrib/acorn32/stand/Makefile there is
|
| ${MDSETIMAGE} tmp/BtNetBSD/InstKern ${.OBJDIR}/../ramdisk/ramdisk.fs
|
| What is the makefile magic needed to cope with obj dirs? That could end
| up as ../../ramdisk/obj.acorn32/ramdisk.fs for example..
Ick; that is broken.
It should use something like this:
RAMDISKDIR!= cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR}
# [...]
${MDSETIMAGE} tmp/BtNetBSD/InstKern ${RAMDISKDIR}/ramdisk.fs
Could you please send-pr this, so it doesn't get lost?
Actually, there's other elements of that Makefile that look really ugly.
(Looks like I need to do another sweep of distrib/* fixing things up)
Thanks for bringing this to our attention,
Luke.
--
Luke Mewburn <lukem@wasabisystems.com> http://www.wasabisystems.com
Luke Mewburn <lukem@netbsd.org> http://www.netbsd.org
Wasabi Systems - NetBSD hackers for hire
NetBSD - the world's most portable UNIX-like operating system