copy output fro mthe tmp to build dir

master
Peter Babič 2 years ago
parent 92dd9ca78e
commit 266a726246
Signed by: peter.babic
GPG Key ID: 4BB075BC1884BA40
  1. 4
      .gitignore
  2. 19
      make.sh

4
.gitignore vendored

@ -1,3 +1,3 @@
openwrt-imagebuilder*
mt7620
sha256sum*
tmp/
build/

@ -1,15 +1,18 @@
#!/bin/bash
version="19.07.7"
fprintUrl="https://openwrt.org/docs/guide-user/security/signatures"
dlUrl="https://downloads.openwrt.org/releases/$version/targets/ramips/mt7620/"
folderName="openwrt-imagebuilder-$version-ramips-mt7620.Linux-x86_64"
sumsFile="sha256sums"
ascFile="$sumsFile.asc"
mkdir -p tmp/ build/
cd tmp/
sudo pacman -q -S --needed base-devel ncurses zlib gawk git gettext openssl libxslt wget unzip python gnupg
sumsFile="sha256sums"
ascFile="$sumsFile.asc"
rm $sumsFile*
wget -q "$dlUrl/$sumsFile"
wget -q "$dlUrl/$ascFile"
@ -45,11 +48,11 @@ else
fi
cd "$folderName"
ln -sf ../files .
ln -sf ../../files .
make image PROFILE=ArcherMR200 PACKAGES="curl" FILES=files/
cd ..
ln -sf "$folderName/bin/targets/ramips/mt7620/" .
imageName="openwrt-$version-ramips-mt7620-ArcherMR200-squashfs-sysupgrade.bin"
cp "bin/targets/ramips/mt7620/$imageName" ../../build/
cd ../../

Loading…
Cancel
Save