build.sh now uses the lede-project.org imagebuilder

This commit is contained in:
Attila Lendvai 2016-12-12 18:39:04 +01:00
parent 027da763aa
commit b8627f3eb3

View File

@ -25,27 +25,30 @@ BUILD=`absolutize $BUILD`
### ###
### chose a release ### chose a release
### ###
RELEASE_NAME="chaos_calmer" #RELEASE_NAME="chaos_calmer"
RELEASE="15.05" #RELEASE="15.05.1"
#RELEASE_NAME="snapshots" RELEASE_NAME="snapshots"
#RELEASE="trunk" RELEASE="targets"
if [ $RELEASE = "trunk" ]; then if [ $RELEASE = "targets" ]; then
IMGBUILDER_NAME="OpenWrt-ImageBuilder-${TARGET_ARCHITECTURE}-${TARGET_VARIANT}.Linux-x86_64" # TODO clean up once a release comes out and the naming conventions becomes apparent
IMGBUILDER_NAME="lede-imagebuilder-${TARGET_ARCHITECTURE}-${TARGET_VARIANT}.Linux-x86_64"
else else
IMGBUILDER_NAME="OpenWrt-ImageBuilder-${RELEASE}-${TARGET_ARCHITECTURE}-${TARGET_VARIANT}.Linux-x86_64" IMGBUILDER_NAME="lede-imagebuilder-${RELEASE}-${TARGET_ARCHITECTURE}-${TARGET_VARIANT}.Linux-x86_64"
fi fi
IMGBUILDER_DIR="${BUILD}/${IMGBUILDER_NAME}" IMGBUILDER_DIR="${BUILD}/${IMGBUILDER_NAME}"
IMGBUILDER_ARCHIVE="${IMGBUILDER_NAME}.tar.bz2" IMGBUILDER_ARCHIVE="${IMGBUILDER_NAME}.tar.xz"
IMGTEMPDIR="${BUILD}/openwrt-build-image-extras" IMGTEMPDIR="${BUILD}/openwrt-build-image-extras"
IMGBUILDERURL="https://downloads.openwrt.org/${RELEASE_NAME}/${RELEASE}/${TARGET_ARCHITECTURE}/${TARGET_VARIANT}/${IMGBUILDER_ARCHIVE}" #https://downloads.lede-project.org/snapshots/targets/ar71xx/generic/lede-imagebuilder-ar71xx-generic.Linux-x86_64.tar.xz
#https://downloads.lede-project.org/snapshots/targets/ar71xx/generic/lede-imagebuilder-ar71xx-generic.Linux-x86_64.tar.xz
IMGBUILDERURL="https://downloads.lede-project.org/${RELEASE_NAME}/${RELEASE}/${TARGET_ARCHITECTURE}/${TARGET_VARIANT}/${IMGBUILDER_ARCHIVE}"
if [ -z ${TARGET_DEVICE} ]; then if [ -z ${TARGET_DEVICE} ]; then
echo "Usage: $0 architecture variant device-profile" echo "Usage: $0 architecture variant device-profile"
echo " e.g.: $0 ar71xx generic TLWDR4300" echo " e.g.: $0 ar71xx generic tl-wr1043nd-v2"
echo " $0 ramips mt7621 ZBT-WG3526" echo " $0 ramips mt7621 zbt-wg3526"
echo " to get a list of supported devices issue a 'make info' in the OpenWRT image builder directory:" echo " to get a list of supported devices issue a 'make info' in the OpenWRT image builder directory:"
echo " '${IMGBUILDER_DIR}'" echo " '${IMGBUILDER_DIR}'"
kill -INT $$ kill -INT $$
@ -80,7 +83,7 @@ if [ ! -e ${IMGBUILDER_DIR} ]; then
pushd ${BUILD} pushd ${BUILD}
# --no-check-certificate if needed # --no-check-certificate if needed
wget --continue ${IMGBUILDERURL} wget --continue ${IMGBUILDERURL}
tar jvxf ${IMGBUILDER_ARCHIVE} xz -d <${IMGBUILDER_ARCHIVE} | tar vx
popd popd
fi fi