Fix build on FreeBSD 8 where partition types for nandfs do not exist.
This commit is contained in:
parent
9bc923cbde
commit
f529e2e0a5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=263924
@ -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