mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-24 15:56:49 +00:00
gemini: make dd commands more portable
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 45039
This commit is contained in:
parent
6cda886f60
commit
65708f749a
@ -71,9 +71,9 @@ endif
|
|||||||
ifeq ($(SUBTARGET),raidsonic)
|
ifeq ($(SUBTARGET),raidsonic)
|
||||||
define Image/Build
|
define Image/Build
|
||||||
$(call Image/Build/$(1),$(1))
|
$(call Image/Build/$(1),$(1))
|
||||||
dd if=$(BIN_DIR)/$(IMG_PREFIX)-$(1).img of=$(BIN_DIR)/rd.gz bs=6M count=1
|
dd if=$(BIN_DIR)/$(IMG_PREFIX)-$(1).img of=$(BIN_DIR)/rd.gz bs=6144k count=1
|
||||||
# dd if=/dev/zero of=$(BIN_DIR)/hddapp.tgz bs=6M count=1
|
# dd if=/dev/zero of=$(BIN_DIR)/hddapp.tgz bs=6144k count=1
|
||||||
dd if=$(BIN_DIR)/$(IMG_PREFIX)-$(1).img of=$(BIN_DIR)/hddapp.tgz bs=6M count=1 seek=1
|
dd if=$(BIN_DIR)/$(IMG_PREFIX)-$(1).img of=$(BIN_DIR)/hddapp.tgz bs=6144k count=1 seek=1
|
||||||
cp $(BIN_DIR)/$(IMG_PREFIX)-nas4220-zImage $(BIN_DIR)/zImage
|
cp $(BIN_DIR)/$(IMG_PREFIX)-nas4220-zImage $(BIN_DIR)/zImage
|
||||||
cp ./ImageInfo-ib4220 $(BIN_DIR)/ImageInfo
|
cp ./ImageInfo-ib4220 $(BIN_DIR)/ImageInfo
|
||||||
(cd $(BIN_DIR); tar -czf sysupgrade-ib4220.tar.gz ImageInfo zImage rd.gz hddapp.tgz)
|
(cd $(BIN_DIR); tar -czf sysupgrade-ib4220.tar.gz ImageInfo zImage rd.gz hddapp.tgz)
|
||||||
|
Loading…
Reference in New Issue
Block a user