fix dd error on osx

Change-Id: Ifcfe59378c96f0518758a3dfb91a9a54199831e5
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5192
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
This commit is contained in:
Zone.N 2022-04-10 03:46:23 +08:00 committed by Adrien Destugues
parent eb22dbd032
commit 323c6d6bce
3 changed files with 4 additions and 4 deletions

View File

@ -1574,7 +1574,7 @@ actions BuildFloppyBootImage1
fi
$(RM) $(<)
# make an empty image
dd if=/dev/zero of=$(<) bs=1k count=$(FLOPPY_IMAGE_SIZE)
dd if=/dev/zero of=$(<) bs=1024 count=$(FLOPPY_IMAGE_SIZE)
# add haiku_loader
dd if=$(>[1]) of=$(<) conv=notrunc
# add the boot drivers tgz archive

View File

@ -62,7 +62,7 @@ actions BuildUBootSDImage1
MMC_SIZE=`expr $(SDIMAGE_OS_SIZE) \* 1024 + ${BOOT_SIZE}`
# Build "boot" disk
dd if=/dev/zero of=$(1) bs=1K count=${BOOT_SIZE}
dd if=/dev/zero of=$(1) bs=1024 count=${BOOT_SIZE}
# generate u-boot environment variables
echo 'os=haiku' > uEnv.txt
@ -122,7 +122,7 @@ actions BuildEfiSDImage1
MMC_SIZE=`expr $(SDIMAGE_OS_SIZE) \* 1024 + ${BOOT_SIZE}`
# Build "boot" disk
dd if=/dev/zero of=$(1) bs=1K count=${BOOT_SIZE}
dd if=/dev/zero of=$(1) bs=1024 count=${BOOT_SIZE}
# generate u-boot environment variables
echo 'os=haiku' > uEnv.txt

View File

@ -2,7 +2,7 @@
IMG=$HOME/floppy.img
ZBEOS=haiku_loader
jam -q haiku.prg $ZBEOS && \
dd if=/dev/zero of=$IMG bs=1k count=1440 && \
dd if=/dev/zero of=$IMG bs=1024 count=1440 && \
dd if=generated/objects/haiku/m68k/release/system/boot/$ZBEOS of=$IMG bs=512 conv=notrunc && \
src/system/boot/platform/atari_m68k/fixup_tos_floppy_chksum $IMG && \
true