Commit Graph

8 Commits

Author SHA1 Message Date
tsutsui 81d9503824 Use nbcompat lib in src/tools/compat so that this can be built
on non-NetBSD hosts.  Tested on CYGWIN_NT-5.1-1.5.25-i686.

XXX: this should be merged into src/usr.sbin/installboot.
2009-03-25 15:26:49 +00:00
tsutsui 78ca0f3f54 Don't add `-I${NETBSDSRCDIR}/sys' to HOST_CPPFLAGS to pull
necessary target system headers (<fs/unicode.h> and <fs/cd9660/iso.h>)
because system headers for the host (like <sys/stat.h>) are also pulled
from there and it causes build errors if target src tree is different
from installed one on the host.
Instead, copy the necessary system headers for host's programs into
${.OBJDIR} first.

Problem reported from Geert Hendrickx, and there is no particular comment
on tech-toolchain.
2006-10-15 04:24:11 +00:00
tsutsui 42f593a4d5 Reorganize macppc_installboot to make macppccd.iso image actually bootable
on (some) OpenFirmware 2.x machines.

Current macppccd.iso image doesn't boot on Openfirmware 2.x
(and probably 1.0.5) machines because it uses pre-compiled binary
which is based on old (and customized) bootxx.
It causes version mismatch against newer ofwboot whose load address
has been changed from 0x600000 to 0xe00000, as mentioned in the
following post:
http://mail-index.netbsd.org/port-macppc/2004/12/14/0020.html
There was also an raw binary which was passed to mkisofs as -boot-hfs-file.

To fix these issue, prepare a simple mkhfsboot program which creates
a boothfs file with the Apple partition map info for mkisofs,
and modify macppc_installboot to search the secondary ofwboot from isofs
and to put and modify the primary bootxx accordingly.
See PR toolchain/30245 for more details.

There are still some machines which don't boot from an iso image created
by this method (G3 machines with OF 2.0f1 etc.), but it's still better
than to keep ugly and obsolete hacks.

Ok'ed by macallan, and there is no other particular comment about this PR.
2006-09-17 03:56:03 +00:00
jmc 6fe4ead562 Convert to usage of UUDECODE_FILES and standardize on filename extension 2004-03-19 08:07:22 +00:00
jmc d399175656 Turn this into a hostprog (probably needs linking against nbcompat) 2004-02-29 01:09:18 +00:00
lukem f60d6abce0 don't depend upon 'cvs -kb' to preserve macppcboot.raw (et al).
instead, keep uuencoded versions in the repository.

(arguably /usr/sbin/installboot -m macppc should support -t cd9660,
at which point we'd nuke this macppc_installboot hack)
2002-10-21 05:08:23 +00:00
lukem 891c2e212a clean up the building of macppcboot.raw (the previous mechanism wasn't
USETOOLS=yes friendly):
since the file only changes when a new bootxx.raw is committed into this
directory, commit a generated version of macppcboot.raw here as well.
clean up the framework that builds mkmacppcboot as well, and don't
remove macppcboot.raw on make clean.
2002-09-29 06:38:19 +00:00
tv 0bbb454b99 First draft of multiple-arch CD-ROM creation system. This is extremely
rough at this point, and needs more fleshing out in several areas.  Does not
yet do packages or check for the existence of support programs--to be fixed.
2000-11-29 16:35:03 +00:00