Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Jul 27, 2024
2 parents fca3ed4 + 54f8413 commit 775253c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
26 changes: 12 additions & 14 deletions openwrt/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -472,9 +472,9 @@ if [ "$platform" = "x86_64" ]; then
if [ "$1" = "rc2" ]; then
mkdir -p ota
if [ "$MINIMAL_BUILD" = "y" ]; then
BUILD_TYPE=minimal
OTA_URL="https://x86.cooluc.com/d/minimal/openwrt-23.05"
else
BUILD_TYPE=releases
OTA_URL="https://github.com/sbwml/builder/releases/download"
fi
VERSION=$(sed 's/v//g' version.txt)
SHA256=$(sha256sum bin/targets/x86/64*/*-generic-squashfs-combined-efi.img.gz | awk '{print $1}')
Expand All @@ -484,7 +484,7 @@ if [ "$platform" = "x86_64" ]; then
{
"build_date": "$CURRENT_DATE",
"sha256sum": "$SHA256",
"url": "https://github.com/sbwml/builder/releases/download/v$VERSION/openwrt-$VERSION-x86-64-generic-squashfs-combined-efi.img.gz"
"url": "$OTA_URL/v$VERSION/openwrt-$VERSION-x86-64-generic-squashfs-combined-efi.img.gz"
}
]
}
Expand Down Expand Up @@ -538,9 +538,9 @@ elif [ "$platform" = "bcm53xx" ]; then
if [ "$1" = "rc2" ]; then
mkdir -p ota
if [ "$MINIMAL_BUILD" = "y" ]; then
BUILD_TYPE=minimal
OTA_URL="https://r8500.cooluc.com/d/minimal/openwrt-23.05"
else
BUILD_TYPE=releases
OTA_URL="https://github.com/sbwml/builder/releases/download"
fi
VERSION=$(sed 's/v//g' version.txt)
SHA256=$(sha256sum bin/targets/bcm53xx/generic/*-bcm53xx-generic-netgear_r8500-squashfs.chk | awk '{print $1}')
Expand All @@ -550,7 +550,7 @@ elif [ "$platform" = "bcm53xx" ]; then
{
"build_date": "$CURRENT_DATE",
"sha256sum": "$SHA256",
"url": "https://github.com/sbwml/builder/releases/download/v$VERSION/openwrt-$VERSION-bcm53xx-generic-netgear_r8500-squashfs.chk"
"url": "$OTA_URL/v$VERSION/openwrt-$VERSION-bcm53xx-generic-netgear_r8500-squashfs.chk"
}
]
}
Expand All @@ -570,26 +570,24 @@ else
# OTA json
if [ "$1" = "rc2" ]; then
mkdir -p ota
if [ "$MINIMAL_BUILD" = "y" ]; then
BUILD_TYPE=minimal
else
BUILD_TYPE=releases
fi
OTA_URL="https://github.com/sbwml/builder/releases/download"
VERSION=$(sed 's/v//g' version.txt)
if [ "$model" = "nanopi-r4s" ]; then
[ "$MINIMAL_BUILD" = "y" ] && OTA_URL="https://r4s.cooluc.com/d/minimal/openwrt-23.05"
SHA256=$(sha256sum bin/targets/rockchip/armv8*/*-squashfs-sysupgrade.img.gz | awk '{print $1}')
cat > ota/fw.json <<EOF
{
"friendlyarm,nanopi-r4s": [
{
"build_date": "$CURRENT_DATE",
"sha256sum": "$SHA256",
"url": "https://github.com/sbwml/builder/releases/download/v$VERSION/v$VERSION/openwrt-$VERSION-rockchip-armv8-friendlyarm_nanopi-r4s-squashfs-sysupgrade.img.gz"
"url": "$OTA_URL/v$VERSION/v$VERSION/openwrt-$VERSION-rockchip-armv8-friendlyarm_nanopi-r4s-squashfs-sysupgrade.img.gz"
}
]
}
EOF
elif [ "$model" = "nanopi-r5s" ]; then
[ "$MINIMAL_BUILD" = "y" ] && OTA_URL="https://r5s.cooluc.com/d/minimal/openwrt-23.05"
SHA256_R5C=$(sha256sum bin/targets/rockchip/armv8*/*-r5c-squashfs-sysupgrade.img.gz | awk '{print $1}')
SHA256_R5S=$(sha256sum bin/targets/rockchip/armv8*/*-r5s-squashfs-sysupgrade.img.gz | awk '{print $1}')
cat > ota/fw.json <<EOF
Expand All @@ -598,14 +596,14 @@ EOF
{
"build_date": "$CURRENT_DATE",
"sha256sum": "$SHA256_R5C",
"url": "https://github.com/sbwml/builder/releases/download/v$VERSION/openwrt-$VERSION-rockchip-armv8-friendlyarm_nanopi-r5c-squashfs-sysupgrade.img.gz"
"url": "$OTA_URL/v$VERSION/openwrt-$VERSION-rockchip-armv8-friendlyarm_nanopi-r5c-squashfs-sysupgrade.img.gz"
}
],
"friendlyarm,nanopi-r5s": [
{
"build_date": "$CURRENT_DATE",
"sha256sum": "$SHA256_R5S",
"url": "https://github.com/sbwml/builder/releases/download/v$VERSION/openwrt-$VERSION-rockchip-armv8-friendlyarm_nanopi-r5s-squashfs-sysupgrade.img.gz"
"url": "$OTA_URL/v$VERSION/openwrt-$VERSION-rockchip-armv8-friendlyarm_nanopi-r5s-squashfs-sysupgrade.img.gz"
}
]
}
Expand Down
3 changes: 3 additions & 0 deletions openwrt/scripts/02-prepare_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -180,3 +180,6 @@ git clone https://$github/sbwml/feeds_packages_utils_unzip feeds/packages/utils/

# tcp-brutal
git clone https://$github/sbwml/package_kernel_tcp-brutal package/kernel/tcp-brutal

# watchcat - clean config
true > feeds/packages/utils/watchcat/files/watchcat.config

0 comments on commit 775253c

Please sign in to comment.