From 266a7262460e73af22141e0e3d276c993c5b301b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20Babi=C4=8D?= Date: Tue, 6 Apr 2021 14:18:57 +0200 Subject: [PATCH] copy output fro mthe tmp to build dir --- .gitignore | 4 ++-- make.sh | 19 +++++++++++-------- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/.gitignore b/.gitignore index 39b5561..3021329 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ openwrt-imagebuilder* -mt7620 -sha256sum* +tmp/ +build/ diff --git a/make.sh b/make.sh index 8ae0cd6..eab5003 100755 --- a/make.sh +++ b/make.sh @@ -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 ../../ +