Undo r34942 and use printf instead, which is standardized by POSIX and supports \n, thanks DraX!

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34943 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
François Revol 2010-01-07 23:31:12 +00:00
parent 08605557d3
commit 12a17213b4

View File

@ -145,12 +145,8 @@ 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,-
,,eb
" ;
"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_UNIT on $(image) = M ;
@ -168,7 +164,7 @@ actions BuildUBootSDImage1
bs=$(SDIMAGE_BLOCK_SIZE) \
count=$(SDIMAGE_SIZE)
# partition it
echo '$(SDIMAGE_FDISK_SCRIPT)' | $(SDIMAGE_FDISK) -f -D \
printf '$(SDIMAGE_FDISK_SCRIPT)' | $(SDIMAGE_FDISK) -f -D \
-H $(SDIMAGE_FDISK_H) -S $(SDIMAGE_FDISK_S) \
-u$(SDIMAGE_FDISK_UNIT) $(<)
# generate mtools config