summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-06-03 11:39:26 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-06-03 11:39:26 +0000
commitb1b976901acb8c24d1b4e20fe51a910c397f6ad4 (patch)
tree1cd2f4e4e811986eb602c1ad100bbcbe39f4a388
parent8ed3099229f5d0d879a4d35799ca13998a675b5f (diff)
downloadabuild-b1b976901acb8c24d1b4e20fe51a910c397f6ad4.tar.gz
abuild-b1b976901acb8c24d1b4e20fe51a910c397f6ad4.tar.bz2
abuild-b1b976901acb8c24d1b4e20fe51a910c397f6ad4.tar.xz
abuild-b1b976901acb8c24d1b4e20fe51a910c397f6ad4.zip
alpine.mk: make usb image creation less verbose
-rwxr-xr-xalpine.mk17
1 files changed, 9 insertions, 8 deletions
diff --git a/alpine.mk b/alpine.mk
index 24998fe..46a71e5 100755
--- a/alpine.mk
+++ b/alpine.mk
@@ -235,14 +235,15 @@ MBRPATH := /usr/share/syslinux/mbr.bin
USBIMG_OFFSET := 16384
$(USBIMG): $(ISOFS_DIRSTAMP)
- #Creating imagefile
- dd if=/dev/zero of=$(USBIMG) bs=1024 count=$(USBIMG_SIZE)
- parted -s $(USBIMG) mklabel msdos
- parted -s $(USBIMG) mkpartfs primary fat32 0 $$(( $(USBIMG_SIZE) * 1024 / 1000000))
- parted -s $(USBIMG) set 1 boot on
- dd if=$(MBRPATH) of=$(USBIMG) conv=notrunc
- syslinux -o $(USBIMG_OFFSET) $(USBIMG)
- mcopy -i $(USBIMG)@@$(USBIMG_OFFSET) $(ISO_DIR)/* $(ISO_DIR)/.[a-z]* ::
+ @echo "==> Generating $@"
+ @dd if=/dev/zero of=$(USBIMG) bs=1024 count=$(USBIMG_SIZE)
+ @parted -s $(USBIMG) mklabel msdos
+ @parted -s $(USBIMG) mkpartfs primary fat32 0 \
+ $$(( $(USBIMG_SIZE) * 1024 / 1000000))
+ @parted -s $(USBIMG) set 1 boot on
+ @dd if=$(MBRPATH) of=$(USBIMG) conv=notrunc
+ @syslinux -o $(USBIMG_OFFSET) $(USBIMG)
+ @mcopy -i $(USBIMG)@@$(USBIMG_OFFSET) $(ISO_DIR)/* $(ISO_DIR)/.[a-z]* ::
USBIMG_SHA1 := $(USBIMG).sha1
$(USBIMG_SHA1): $(USBIMG)