svn commit: r292082 - head/usr.bin/mkimg

Warner Losh imp at FreeBSD.org
Fri Dec 11 05:39:43 UTC 2015


Author: imp
Date: Fri Dec 11 05:39:42 2015
New Revision: 292082
URL: https://svnweb.freebsd.org/changeset/base/292082

Log:
  Add ppcboot FAT type. Needed to create a bootable powerpc image.
  
  Differential Review: https://reviews.freebsd.org/D4407

Modified:
  head/usr.bin/mkimg/mbr.c
  head/usr.bin/mkimg/scheme.c
  head/usr.bin/mkimg/scheme.h

Modified: head/usr.bin/mkimg/mbr.c
==============================================================================
--- head/usr.bin/mkimg/mbr.c	Fri Dec 11 05:28:07 2015	(r292081)
+++ head/usr.bin/mkimg/mbr.c	Fri Dec 11 05:39:42 2015	(r292082)
@@ -45,6 +45,9 @@ __FBSDID("$FreeBSD$");
 #ifndef DOSPTYP_FAT32
 #define	DOSPTYP_FAT32	0x0b
 #endif
+#ifndef DOSPTYP_PPCBOOT
+#define	DOSPTYP_PPCBOOT	0x41
+#endif
 #ifndef DOSPTYP_EFI
 #define	DOSPTYP_EFI	0xef
 #endif
@@ -56,6 +59,7 @@ static struct mkimg_alias mbr_aliases[] 
     {	ALIAS_FAT32, ALIAS_INT2TYPE(DOSPTYP_FAT32) },
     {	ALIAS_FREEBSD, ALIAS_INT2TYPE(DOSPTYP_386BSD) },
     {	ALIAS_NTFS, ALIAS_INT2TYPE(DOSPTYP_NTFS) },
+    {	ALIAS_PPCBOOT, ALIAS_INT2TYPE(DOSPTYP_PPCBOOT) },
     {	ALIAS_NONE, 0 }		/* Keep last! */
 };
 

Modified: head/usr.bin/mkimg/scheme.c
==============================================================================
--- head/usr.bin/mkimg/scheme.c	Fri Dec 11 05:28:07 2015	(r292081)
+++ head/usr.bin/mkimg/scheme.c	Fri Dec 11 05:39:42 2015	(r292082)
@@ -61,6 +61,7 @@ static struct {
 	{ "freebsd-zfs", ALIAS_FREEBSD_ZFS },
 	{ "mbr", ALIAS_MBR },
 	{ "ntfs", ALIAS_NTFS },
+	{ "prepboot", ALIAS_PPCBOOT },
 	{ NULL, ALIAS_NONE }		/* Keep last! */
 };
 

Modified: head/usr.bin/mkimg/scheme.h
==============================================================================
--- head/usr.bin/mkimg/scheme.h	Fri Dec 11 05:28:07 2015	(r292081)
+++ head/usr.bin/mkimg/scheme.h	Fri Dec 11 05:39:42 2015	(r292082)
@@ -47,6 +47,7 @@ enum alias {
 	ALIAS_FREEBSD_ZFS,
 	ALIAS_MBR,
 	ALIAS_NTFS,
+	ALIAS_PPCBOOT,
 	/* end */
 	ALIAS_COUNT		/* Keep last! */
 };


More information about the svn-src-head mailing list