diff --git a/src/system/boot/platform/u-boot/Jamfile b/src/system/boot/platform/u-boot/Jamfile index 16bb0d9a8a..79a3cfa03b 100644 --- a/src/system/boot/platform/u-boot/Jamfile +++ b/src/system/boot/platform/u-boot/Jamfile @@ -145,8 +145,12 @@ rule BuildUBootSDImage image : files SDIMAGE_BLOCK_SIZE on $(image) = 1M ; SDIMAGE_SIZE on $(image) = $(HAIKU_BOARD_SDIMAGE_SIZE) ; SDIMAGE_FDISK on $(image) = $(HOST_SFDISK) ; + # do not change the formatting, we need the linefeeds! SDIMAGE_FDISK_SCRIPT on $(image) = - "0,$(HAIKU_BOARD_SDIMAGE_FAT_SIZE),0c,-\\\n,,eb\\\n\\\n" ; + "0,$(HAIKU_BOARD_SDIMAGE_FAT_SIZE),0c,- +,,eb + +" ; SDIMAGE_FDISK_H on $(image) = 255 ; SDIMAGE_FDISK_S on $(image) = 63 ; SDIMAGE_FDISK_UNIT on $(image) = M ; @@ -164,7 +168,7 @@ actions BuildUBootSDImage1 bs=$(SDIMAGE_BLOCK_SIZE) \ count=$(SDIMAGE_SIZE) # partition it - echo -e '$(SDIMAGE_FDISK_SCRIPT)' | $(SDIMAGE_FDISK) -f -D \ + echo '$(SDIMAGE_FDISK_SCRIPT)' | $(SDIMAGE_FDISK) -f -D \ -H $(SDIMAGE_FDISK_H) -S $(SDIMAGE_FDISK_S) \ -u$(SDIMAGE_FDISK_UNIT) $(<) # generate mtools config