@ -53,15 +53,17 @@ endef
# there when using OpenWRT. We just use that to create the
# there when using OpenWRT. We just use that to create the
# "sysupgrade" firmware image.
# "sysupgrade" firmware image.
d e f i n e B u i l d / n a s 4 2 2 0 b - s q 2 0 1 - i m a g e s
d e f i n e B u i l d / n a s 4 2 2 0 b - s q 2 0 1 - i m a g e s
rm -rf $@ -tmp
mkdir -p $@ .tmp
mkdir -p $@ -tmp
mv $@ $@ -tmp/rd.gz
mv $@ $@ .tmp/rd.gz
dd if = /dev/zero of = $@ -tmp/hddapp.tgz bs = 6144k count = 1
dd if = /dev/zero of = $@ .tmp/hddapp.tgz bs = 6144k count = 1
cp $( IMAGE_KERNEL) $@ -tmp/zImage
cp $( IMAGE_KERNEL) $@ .tmp/zImage
cp ./ImageInfo-$( 1) $@ -tmp/ImageInfo
cp ./ImageInfo-$( 1) $@ .tmp/ImageInfo
( cd $@ -tmp; tar --sort= name --owner= 0 --group= 0 --numeric-owner -czf $@ * \
( cd $@ .tmp; tar --sort= name --owner= 0 --group= 0 --numeric-owner -czf $@ * \
$( if $( SOURCE_DATE_EPOCH) ,--mtime= " @ $( SOURCE_DATE_EPOCH) " ) )
$( if $( SOURCE_DATE_EPOCH) ,--mtime= " @ $( SOURCE_DATE_EPOCH) " ) )
rm -rf $@ -tmp
rm -rf $@ .tmp
e n d e f
e n d e f
# WBD-111 and WBD-222:
# WBD-111 and WBD-222: