Module Name: src
Committed By: tsutsui
Date: Sun Dec 3 07:20:23 UTC 2023
Modified Files:
src/distrib/common/bootimage: Makefile.bootimage
Log Message:
Use defined ${GPTSECTORS} rather than hardcoded 2048.
To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/distrib/common/bootimage/Makefile.bootimage
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/distrib/common/bootimage/Makefile.bootimage
diff -u src/distrib/common/bootimage/Makefile.bootimage:1.31 src/distrib/common/bootimage/Makefile.bootimage:1.32
--- src/distrib/common/bootimage/Makefile.bootimage:1.31 Sun Dec 3 07:17:11 2023
+++ src/distrib/common/bootimage/Makefile.bootimage Sun Dec 3 07:20:23 2023
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.bootimage,v 1.31 2023/12/03 07:17:11 tsutsui Exp $
+# $NetBSD: Makefile.bootimage,v 1.32 2023/12/03 07:20:23 tsutsui Exp $
#
# Copyright (c) 2009, 2010, 2011 Izumi Tsutsui. All rights reserved.
#
@@ -573,8 +573,8 @@ ${WORKMBR}:
${WORKGPT}: ${WORKMBR}
@echo create GPT image...
- ${DD} if=${WORKMBR} of=${WORKGPT} skip=$$((${IMAGESECTORS} - 2048)) \
- count=2048
+ ${DD} if=${WORKMBR} of=${WORKGPT} \
+ skip=$$((${IMAGESECTORS} - ${GPTSECTORS})) count=${GPTSECTORS}
.if ${USE_GPT} == "no"
${IMGBASE}.img: ${WORKLABEL}