Fix build on FreeBSD 8 where partition types for nandfs do not exist.
This commit is contained in:
parent
f443f7d2a6
commit
c374630340
@ -38,6 +38,10 @@ __FBSDID("$FreeBSD$");
|
||||
#include "mkimg.h"
|
||||
#include "scheme.h"
|
||||
|
||||
#ifndef APM_ENT_TYPE_FREEBSD_NANDFS
|
||||
#define APM_ENT_TYPE_FREEBSD_NANDFS "FreeBSD-nandfs"
|
||||
#endif
|
||||
|
||||
static struct mkimg_alias apm_aliases[] = {
|
||||
{ ALIAS_FREEBSD, ALIAS_PTR2TYPE(APM_ENT_TYPE_FREEBSD) },
|
||||
{ ALIAS_FREEBSD_NANDFS, ALIAS_PTR2TYPE(APM_ENT_TYPE_FREEBSD_NANDFS) },
|
||||
|
@ -38,6 +38,10 @@ __FBSDID("$FreeBSD$");
|
||||
#include "mkimg.h"
|
||||
#include "scheme.h"
|
||||
|
||||
#ifndef FS_NANDFS
|
||||
#define FS_NANDFS 30
|
||||
#endif
|
||||
|
||||
static struct mkimg_alias bsd_aliases[] = {
|
||||
{ ALIAS_FREEBSD_NANDFS, ALIAS_INT2TYPE(FS_NANDFS) },
|
||||
{ ALIAS_FREEBSD_SWAP, ALIAS_INT2TYPE(FS_SWAP) },
|
||||
|
@ -42,6 +42,11 @@ __FBSDID("$FreeBSD$");
|
||||
#include "mkimg.h"
|
||||
#include "scheme.h"
|
||||
|
||||
#ifndef GPT_ENT_TYPE_FREEBSD_NANDFS
|
||||
#define GPT_ENT_TYPE_FREEBSD_NANDFS \
|
||||
{0x74ba7dd9,0xa689,0x11e1,0xbd,0x04,{0x00,0xe0,0x81,0x28,0x6a,0xcf}}
|
||||
#endif
|
||||
|
||||
static uuid_t gpt_uuid_efi = GPT_ENT_TYPE_EFI;
|
||||
static uuid_t gpt_uuid_freebsd = GPT_ENT_TYPE_FREEBSD;
|
||||
static uuid_t gpt_uuid_freebsd_boot = GPT_ENT_TYPE_FREEBSD_BOOT;
|
||||
|
@ -39,6 +39,10 @@ __FBSDID("$FreeBSD$");
|
||||
#include "mkimg.h"
|
||||
#include "scheme.h"
|
||||
|
||||
#ifndef VTOC_TAG_FREEBSD_NANDFS
|
||||
#define VTOC_TAG_FREEBSD_NANDFS 0x0905
|
||||
#endif
|
||||
|
||||
static struct mkimg_alias vtoc8_aliases[] = {
|
||||
{ ALIAS_FREEBSD_NANDFS, ALIAS_INT2TYPE(VTOC_TAG_FREEBSD_NANDFS) },
|
||||
{ ALIAS_FREEBSD_SWAP, ALIAS_INT2TYPE(VTOC_TAG_FREEBSD_SWAP) },
|
||||
|
Loading…
Reference in New Issue
Block a user