NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: port-macppc/53549 ppc601 machines need their own INSTALL kernel



The following reply was made to PR port-macppc/53549; it has been noted by GNATS.

From: Martin Husemann <martin%duskware.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: port-macppc/53549 ppc601 machines need their own INSTALL kernel
Date: Fri, 31 Aug 2018 10:47:52 +0200

 There is src/distrib/cdrom/README:
 
 --8<--
 Now build.sh script has the "iso-image" target using our native makefs(8)
 and this distrib/cdrom is being superseded, but our makefs(8) still
 lacks support for a hybrid ISO9660/HFS file system which is required
 to create bootable CD images for mac68k and macppc.
 
 On the other hand, the recent version of mkisofs(8) seems to use
 iconv(3) libraries on creating the hybrid ISO9660/HFS file system,
 but the latest mkisofs(8) (at least cdrtools-2.01.01.36) from pkgsrc
 dumps core on it. cdrtools-2.01 is required to build images. (PR pkg/37643)
 -->8--
 
 and there are "UFS with hfs attributes" extensions, see e.g. 
 src/distrib/cdrom/5.0.conf:
 
 # USE_APPLE_ISO adds -apple to mkisofs to provide the Apple ISO-9660
 # Extensions.  This gives full MacOS attribute information to files without
 # the overhead of full HFS.  (A disc that is forced into HFS mode by the
 # presence of mac68k or macppc will use HFS, not the Apple ISO Extensions.)
 
 
 And the hfs addition or UFS with attributes happens in distrib/cdrom/Makefile:
 
 # Mac (mac68k, macppc)
 
 .if !empty(ports:Mmacppc)
 BOOTHFS=        boothfs
 MKISOFS_ARGS.${image}+= -hfs -part -hide-hfs-list ${.CURDIR}/hide-hfs.lst \
         --macbin -map ${.CURDIR}/hfsmap.lst \
         -boot-hfs-file ${.OBJDIR}/${BOOTHFS}
 UUDECODE_FILES= ${BOOTHFS}
 .include <bsd.files.mk>
 .elif defined(USE_APPLE_ISO) || !empty(ports:Mmac68k)
 MKISOFS_ARGS.${image}+= -apple --macbin -map ${.CURDIR}/hfsmap.lst
 .endif
 
 
 Very similar options are in etc/etc.mac68k/Makefile.inc:
 # For "make iso-image"
 # mkisofs arguments to create a hybrid (HFS/Rockridge) CD-ROM image.
 MKISOFS_FLAGS+= -hfs --macbin \
         -map ${RELEASEDIR}/${RELEASEMACHINEDIR}/installation/misc/extensions.map
 
 
 So, AFAICT, it boils down to add support for mkisofs compatible options:
 
 	-hfs -part -hide-hfs-list --macbin -map -boot-hfs-file
 	-apple
 
 (whatever those mean in technical details).
 
 Martin
 


Home | Main Index | Thread Index | Old Index