Skip to content

Commit

Permalink
updated sdk and imagebuilder profile config files to use Onion custom…
Browse files Browse the repository at this point in the history
…ized SDK and Image Builder, and to build using Onion built packages
  • Loading branch information
greenbreakfast committed Jun 7, 2024
1 parent f009a2f commit ad38ffa
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
14 changes: 7 additions & 7 deletions imagebuilder-profile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ SUBTARGET="mt76x8"

# Default base URL from where openwrt SDKs are available for the respective openwrt version and targets
# BASE_URL="https://downloads.openwrt.org/releases/$OPENWRT_VERSION/targets/$TARGET/$SUBTARGET"
BASE_URL="http://downloads.openwrt.org/releases/$OPENWRT_VERSION/targets/$TARGET/$SUBTARGET"
BASE_URL="http://downloads.onioniot.com.s3.amazonaws.com/releases/$OPENWRT_VERSION/targets/$TARGET/$SUBTARGET"

# imagebuilder file name available and downloaded from BASE_URL ((Needs change whenever new openwrt release is available with different gcc version))
IMAGE_BUILDER_FILE="openwrt-imagebuilder-$OPENWRT_VERSION-$TARGET-$SUBTARGET.Linux-$(uname -p).tar.xz"
Expand All @@ -21,12 +21,12 @@ ADDITIONS_DIR="$PWD/additions"
## specify ipk repos to be included in the firmware (each repo in new line)
PACKAGE_REPOS="
# Override openwrt_core repo with Onion Core repo
src/gz openwrt_core http://downloads.openwrt.org/releases/$OPENWRT_VERSION/targets/$TARGET/$SUBTARGET/packages
src/gz onion_base http://downloads.openwrt.org/releases/$OPENWRT_VERSION/packages/$ARCH/base
src/gz onion_luci http://downloads.openwrt.org/releases/$OPENWRT_VERSION/packages/$ARCH/luci
src/gz onion_packages http://downloads.openwrt.org/releases/$OPENWRT_VERSION/packages/$ARCH/packages
src/gz onion_routing http://downloads.openwrt.org/releases/$OPENWRT_VERSION/packages/$ARCH/routing
src/gz onion_telephony http://downloads.openwrt.org/releases/$OPENWRT_VERSION/packages/$ARCH/telephony"
src/gz openwrt_core http://downloads.onioniot.com/releases/$OPENWRT_VERSION/targets/$TARGET/$SUBTARGET/packages
src/gz onion_base http://downloads.onioniot.com/releases/$OPENWRT_VERSION/packages/$ARCH/base
src/gz onion_luci http://downloads.onioniot.com/releases/$OPENWRT_VERSION/packages/$ARCH/luci
src/gz onion_packages http://downloads.onioniot.com/releases/$OPENWRT_VERSION/packages/$ARCH/packages
src/gz onion_routing http://downloads.onioniot.com/releases/$OPENWRT_VERSION/packages/$ARCH/routing
src/gz onion_telephony http://downloads.onioniot.com/releases/$OPENWRT_VERSION/packages/$ARCH/telephony"

# use different repo for dev vs release builds
if [ "$DEV_BUILD" != "" ]; then
Expand Down
2 changes: 1 addition & 1 deletion omega2-base/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=omega2-base
PKG_VERSION:=23.05.3
PKG_RELEASE:=20240531
PKG_RELEASE:=20240607

PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)

Expand Down
3 changes: 2 additions & 1 deletion sdk-profile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ TARGET="ramips"
SUBTARGET="mt76x8"

# Default base URL from where openwrt SDKs are available for the respective openwrt version and targets
BASE_URL="http://downloads.openwrt.org/releases/$OPENWRT_VERSION/targets/$TARGET/$SUBTARGET"
#BASE_URL="http://downloads.openwrt.org/releases/$OPENWRT_VERSION/targets/$TARGET/$SUBTARGET"
BASE_URL="http://downloads.onioniot.com.s3.amazonaws.com/releases/$OPENWRT_VERSION/targets/$TARGET/$SUBTARGET"

# SDK file name available and downloaded from BASE_URL ((Needs change whenever new openwrt release is available with different gcc version))
SDK_FILE="openwrt-sdk-$OPENWRT_VERSION-$TARGET-${SUBTARGET}_gcc-12.3.0_musl.Linux-$(uname -p).tar.xz"
Expand Down

0 comments on commit ad38ffa

Please sign in to comment.