aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/gemini/image/Makefile
diff options
context:
space:
mode:
authorMathias Kresin <dev@kresin.me>2019-01-25 21:48:10 +0100
committerMathias Kresin <dev@kresin.me>2019-01-26 15:23:36 +0100
commit98c2261ac21550b7c7bdfddc0ada508f3d7a08b4 (patch)
treed61b8ec7239811086c01471c290b2b74c7a478f3 /target/linux/gemini/image/Makefile
parent1e606edce6f43e7e42fa44809f14ff0d1cb9ab47 (diff)
downloadupstream-98c2261ac21550b7c7bdfddc0ada508f3d7a08b4.tar.gz
upstream-98c2261ac21550b7c7bdfddc0ada508f3d7a08b4.tar.bz2
upstream-98c2261ac21550b7c7bdfddc0ada508f3d7a08b4.zip
gemini: use existing build code where possible
Use the existing image build recipes in favour of introducing deplicate shell code. Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux/gemini/image/Makefile')
-rw-r--r--target/linux/gemini/image/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/gemini/image/Makefile b/target/linux/gemini/image/Makefile
index 773fe1e4bc..469e2b0a53 100644
--- a/target/linux/gemini/image/Makefile
+++ b/target/linux/gemini/image/Makefile
@@ -55,7 +55,7 @@ endef
define Build/nas4220b-sq201-images
rm -rf $@-tmp
mkdir -p $@-tmp
- dd if=$(IMAGE_ROOTFS) of=$@-tmp/rd.gz bs=6144k conv=sync
+ mv $@ $@-tmp/rd.gz
dd if=/dev/zero of=$@-tmp/hddapp.tgz bs=6144k count=1
cp $(IMAGE_KERNEL) $@-tmp/zImage
cp ./ImageInfo-$(1) $@-tmp/ImageInfo
@@ -120,7 +120,7 @@ define Device/nas4220b-sq201
ARTIFACT/zImage := append-kernel
IMAGES += rd.gz sysupgrade.tar.gz
IMAGE/rd.gz := append-rootfs | pad-to 6144k
- IMAGE/sysupgrade.tar.gz := nas4220b-sq201-images $(1)
+ IMAGE/sysupgrade.tar.gz := append-rootfs | pad-to 6144k | nas4220b-sq201-images $(1)
DEVICE_PACKAGES := $(GEMINI_NAS_PACKAGES)
endef