Sun Dec 3 07:17:11 2023 UTC ()
Document USE_GPTMBR and GPTSECTORS.


(tsutsui)
diff -r1.30 -r1.31 src/distrib/common/bootimage/Makefile.bootimage

cvs diff -r1.30 -r1.31 src/distrib/common/bootimage/Makefile.bootimage (expand / switch to unified diff)

--- src/distrib/common/bootimage/Makefile.bootimage 2022/05/15 00:05:24 1.30
+++ src/distrib/common/bootimage/Makefile.bootimage 2023/12/03 07:17:11 1.31
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile.bootimage,v 1.30 2022/05/15 00:05:24 mrg Exp $ 1# $NetBSD: Makefile.bootimage,v 1.31 2023/12/03 07:17:11 tsutsui Exp $
2# 2#
3# Copyright (c) 2009, 2010, 2011 Izumi Tsutsui. All rights reserved. 3# Copyright (c) 2009, 2010, 2011 Izumi Tsutsui. All rights reserved.
4# 4#
5# Redistribution and use in source and binary forms, with or without 5# Redistribution and use in source and binary forms, with or without
6# modification, are permitted provided that the following conditions 6# modification, are permitted provided that the following conditions
7# are met: 7# are met:
8# 1. Redistributions of source code must retain the above copyright 8# 1. Redistributions of source code must retain the above copyright
9# notice, this list of conditions and the following disclaimer. 9# notice, this list of conditions and the following disclaimer.
10# 2. Redistributions in binary form must reproduce the above copyright 10# 2. Redistributions in binary form must reproduce the above copyright
11# notice, this list of conditions and the following disclaimer in the 11# notice, this list of conditions and the following disclaimer in the
12# documentation and/or other materials provided with the distribution. 12# documentation and/or other materials provided with the distribution.
13# 13#
14# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 14# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
@@ -30,52 +30,60 @@ @@ -30,52 +30,60 @@
30# Required variables: 30# Required variables:
31# RELEASEDIR 31# RELEASEDIR
32# Should be defined in nbmake-${MACHINE} 32# Should be defined in nbmake-${MACHINE}
33# IMGBASE 33# IMGBASE
34# Basename of the image 34# Basename of the image
35# 35#
36# Optional variables: 36# Optional variables:
37# USE_MBR 37# USE_MBR
38# set yes if target disk image requires MBR partition 38# set yes if target disk image requires MBR partition
39# (default: no) 39# (default: no)
40# USE_GPT 40# USE_GPT
41# set yes if target disk image requires GPT partition 41# set yes if target disk image requires GPT partition
42# (default: no) 42# (default: no)
 43# USE_GPTMBR
 44# set yes if target disk image requires GPT partition
 45# with hybrid MBR boot code
 46# (default: no; valid only if USE_GPT=yes)
43# MBR_BOOTCODE 47# MBR_BOOTCODE
44# optional MBR bootcode which should be installed by fdisk(8) 48# optional MBR bootcode which should be installed by fdisk(8)
45# (default: empty) 49# (default: empty)
46# - specified MBR_BOOTCODE must exist in ${DESTDIR}/usr/mdec 50# - specified MBR_BOOTCODE must exist in ${DESTDIR}/usr/mdec
47# - if MBR_BOOTCODE is not specified, 51# - if MBR_BOOTCODE is not specified,
48# MBR_DEFAULT_BOOTCODE (default: mbr) will be used 52# MBR_DEFAULT_BOOTCODE (default: mbr) will be used
49# if the target ${MACHINE} has the one in /usr/mdec 53# if the target ${MACHINE} has the one in /usr/mdec
50# USE_SUNLABEL 54# USE_SUNLABEL
51# set yes if target disk image requires Sun's label 55# set yes if target disk image requires Sun's label
52# (default: no) 56# (default: no)
53# INSTALLBOOT_AFTER_DISKLABEL (untested) 57# INSTALLBOOT_AFTER_DISKLABEL (untested)
54# set yes if the target ${MACHINE} requires disklabel 58# set yes if the target ${MACHINE} requires disklabel
55# to run installboot(8), like hp300 59# to run installboot(8), like hp300
56# (default: empty) 60# (default: empty)
57# IMAGEMB 61# IMAGEMB
58# target image size in MB 62# target image size in MB
59# (default: 2048) 63# (default: 2048)
60# SWAPMB 64# SWAPMB
61# swap size in target image in MB 65# swap size in target image in MB
62# (default: 128) 66# (default: 128)
63# EFIMB 67# EFIMB
64# EFI partition size in target image in MB 68# EFI partition size in target image in MB
65# (default: 128) 69# (default: 128)
66# FATMB 70# FATMB
67# FAT partition size in target image in MB 71# FAT partition size in target image in MB
68# (default: 0) 72# (default: 0)
 73# GPTSECTORS
 74# Size of a region reserved for the secondary GPT table/entry
 75# at the end of the target image in sectors
 76# (default: 2048 if USE_GPT=yes, otherwise 0)
69# KERN_SET 77# KERN_SET
70# kernel set name which should be extracted into image 78# kernel set name which should be extracted into image
71# (default: kern-GENERIC) 79# (default: kern-GENERIC)
72# SETS 80# SETS
73# binary sets that should be extracted into image 81# binary sets that should be extracted into image
74# (default: modules base etc comp games gpufw man misc 82# (default: modules base etc comp games gpufw man misc
75# rescue tests text xbase xcomp xetc xfont xserver) 83# rescue tests text xbase xcomp xetc xfont xserver)
76# SETS_DIR 84# SETS_DIR
77# directory path where binary sets are stored 85# directory path where binary sets are stored
78# (default: ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/sets) 86# (default: ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/sets)
79# IMGFILE_EXTRA 87# IMGFILE_EXTRA
80# list of additional files to be copied into images, 88# list of additional files to be copied into images,
81# containing one or more tuples of the form: 89# containing one or more tuples of the form: