aps: Upgrade to OpenWrt 19.07.3 on ath79 target
This commit is contained in:
parent
cc583d8d40
commit
e628360540
3 changed files with 11 additions and 12 deletions
|
@ -1,14 +1,11 @@
|
||||||
all: its
|
all: its
|
||||||
|
|
||||||
OPENWRT_VERSION=18.06.4
|
OPENWRT_VERSION=19.07.3
|
||||||
|
|
||||||
its-tl-wr841-v10:
|
|
||||||
IMAGEBUILDER_URL='https://downloads.openwrt.org/releases/$(OPENWRT_VERSION)/targets/ar71xx/tiny/openwrt-imagebuilder-$(OPENWRT_VERSION)-ar71xx-tiny.Linux-x86_64.tar.xz' ./build-image.sh control/tl-wr841-v10
|
|
||||||
|
|
||||||
its-ubnt-unifiac-lite:
|
its-ubnt-unifiac-lite:
|
||||||
IMAGEBUILDER_URL='https://downloads.openwrt.org/releases/$(OPENWRT_VERSION)/targets/ar71xx/generic/openwrt-imagebuilder-$(OPENWRT_VERSION)-ar71xx-generic.Linux-x86_64.tar.xz' ./build-image.sh control/ubnt-unifiac-lite
|
IMAGEBUILDER_URL='https://downloads.openwrt.org/releases/$(OPENWRT_VERSION)/targets/ath79/generic/openwrt-imagebuilder-$(OPENWRT_VERSION)-ath79-generic.Linux-x86_64.tar.xz' ./build-image.sh control/ubnt-unifiac-lite
|
||||||
|
|
||||||
its: its-ubnt-unifiac-lite its-tl-wr841-v10
|
its: its-ubnt-unifiac-lite
|
||||||
|
|
||||||
DATE = $(shell date +'%Y%m%d')
|
DATE = $(shell date +'%Y%m%d')
|
||||||
VERSION = v0.$(DATE)
|
VERSION = v0.$(DATE)
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
[ $# -ge 1 ] || exit 1
|
[ $# -ge 1 ] || exit 1
|
||||||
CONTROL="$1"; shift
|
CONTROL="$1"; shift
|
||||||
IMAGEBUILDER_URL=${IMAGEBUILDER_URL:-https://downloads.openwrt.org/snapshots/targets/ar71xx/generic/openwrt-imagebuilder-ar71xx-generic.Linux-x86_64.tar.xz}
|
IMAGEBUILDER_URL=${IMAGEBUILDER_URL:-https://downloads.openwrt.org/snapshots/targets/ath79/generic/openwrt-imagebuilder-ath79-generic.Linux-x86_64.tar.xz}
|
||||||
|
|
||||||
TOPDIR="$PWD"
|
TOPDIR="$PWD"
|
||||||
DLDIR=${DLDIR:-"dl"}
|
DLDIR=${DLDIR:-"dl"}
|
||||||
|
@ -53,11 +55,11 @@ subtarget=$(. "$CONTROL"; echo "${SUBTARGET}")
|
||||||
|
|
||||||
mkdir -p "$tmp"/etc
|
mkdir -p "$tmp"/etc
|
||||||
mkdir -p "$tmp"/etc/its-access-point/
|
mkdir -p "$tmp"/etc/its-access-point/
|
||||||
printf '%s\n' "$VERSION" > "$tmp"/etc/its-access-point-version # legacy
|
|
||||||
printf '%s\n' "$VERSION" > "$tmp"/etc/its-access-point/version
|
printf '%s\n' "$VERSION" > "$tmp"/etc/its-access-point/version
|
||||||
printf '%s\n' "$IMAGEBUILDER_URL" \
|
printf '%s\n' "$IMAGEBUILDER_URL" \
|
||||||
> "$tmp"/etc/its-access-point/imagebuilder-url
|
> "$tmp"/etc/its-access-point/imagebuilder-url
|
||||||
sha512sum "$imagebuilder" > "$tmp"/etc/its-access-point/imagebuilder-hash
|
sha512sum "$DLDIR/$imagebuilder" \
|
||||||
|
> "$tmp"/etc/its-access-point/imagebuilder-hash
|
||||||
cat "$CONTROL" > "$tmp"/etc/its-access-point/control
|
cat "$CONTROL" > "$tmp"/etc/its-access-point/control
|
||||||
|
|
||||||
if [ -n "$COMMON_FILES" ]; then
|
if [ -n "$COMMON_FILES" ]; then
|
||||||
|
@ -73,7 +75,7 @@ subtarget=$(. "$CONTROL"; echo "${SUBTARGET}")
|
||||||
make image FILES="$tmp" 1>&2
|
make image FILES="$tmp" 1>&2
|
||||||
)
|
)
|
||||||
|
|
||||||
cp "$IMAGEBUILDER_DIR"/bin/targets/ar71xx/"${subtarget}"/openwrt*-"${target}-${subtarget}-${profile}"-squashfs-sysupgrade.bin "$IMAGEDIR"/
|
cp "$IMAGEBUILDER_DIR"/bin/targets/ath79/"${subtarget}"/openwrt*-"${target}-${subtarget}-${profile}"-squashfs-sysupgrade.bin "$IMAGEDIR"/
|
||||||
|
|
||||||
ln -snf "$VERSION" images/latest
|
ln -snf "$VERSION" images/latest
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
PROFILE=ubnt-unifiac-lite
|
PROFILE=ubnt_unifiac-lite
|
||||||
FILES=files/ubnt-unifiac-lite
|
FILES=files/ubnt-unifiac-lite
|
||||||
TARGET=ar71xx
|
TARGET=ath79
|
||||||
SUBTARGET=generic
|
SUBTARGET=generic
|
||||||
COMMON_FILES=files/common/its
|
COMMON_FILES=files/common/its
|
||||||
PACKAGES='
|
PACKAGES='
|
||||||
|
|
Loading…
Reference in a new issue