Skip to content
Browse files

gemini: follow common pattern for temp dir naming

For temporary directories <imagename>.tmp is a common pattern in image
build code across the tree. Use it for the nas4220b/sq201 recipe as

Signed-off-by: Mathias Kresin <>
  • Loading branch information...
mkresin committed Jan 25, 2019
1 parent 98c2261 commit 10dab9b0986cda87060f8a2bf28bbac468488734
Showing with 10 additions and 8 deletions.
  1. +10 −8 target/linux/gemini/image/Makefile
@@ -53,15 +53,17 @@ endef
# there when using OpenWRT. We just use that to create the
# "sysupgrade" firmware image.
define Build/nas4220b-sq201-images
rm -rf $@-tmp
mkdir -p $@-tmp
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
(cd $@-tmp; tar --sort=name --owner=0 --group=0 --numeric-owner -czf $@ * \
mkdir -p $@.tmp

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

(cd $@.tmp; tar --sort=name --owner=0 --group=0 --numeric-owner -czf $@ * \
rm -rf $@-tmp

rm -rf $@.tmp

# WBD-111 and WBD-222:

0 comments on commit 10dab9b

Please sign in to comment.
You can’t perform that action at this time.