From 46f639a8214bfacd2fbcffaceb9778a63ce377a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Wed, 30 Jun 2010 15:52:54 +0000 Subject: [PATCH] Add an (unused yet) cylinder count var on sfdisk. We don't have any mean of calculating it from the desired image size in jam anyway. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37318 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/boot/platform/u-boot/Jamfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/system/boot/platform/u-boot/Jamfile b/src/system/boot/platform/u-boot/Jamfile index 2946e96bde..678bbd859c 100644 --- a/src/system/boot/platform/u-boot/Jamfile +++ b/src/system/boot/platform/u-boot/Jamfile @@ -149,6 +149,7 @@ rule BuildUBootSDImage image : files "0,$(HAIKU_BOARD_SDIMAGE_FAT_SIZE),0c,-\\\n,,eb\\\n\\\n" ; SDIMAGE_FDISK_H on $(image) = 255 ; SDIMAGE_FDISK_S on $(image) = 63 ; + SDIMAGE_FDISK_C on $(image) = ; SDIMAGE_FDISK_UNIT on $(image) = M ; BuildUBootSDImage1 $(image) : $(files) ; } @@ -167,6 +168,7 @@ actions BuildUBootSDImage1 printf '$(SDIMAGE_FDISK_SCRIPT)' | $(SDIMAGE_FDISK) -f -D \ -H $(SDIMAGE_FDISK_H) -S $(SDIMAGE_FDISK_S) \ -u$(SDIMAGE_FDISK_UNIT) $(<) + #-H $(SDIMAGE_FDISK_H) -S $(SDIMAGE_FDISK_S) -C \\\$(( $(SDIMAGE_SIZE) * 1024 * 1024 / $(SDIMAGE_FDISK_H) / $(SDIMAGE_FDISK_S))) \ # generate mtools config echo 'drive i: file="$(<)" partition=1' > $(<).mtools # format the image