From 6ddbfdd95c221bf88315c313cc4ee4ef2ac45976 Mon Sep 17 00:00:00 2001 From: Daniel Pawlik Date: Sun, 20 Jul 2025 11:59:49 +0200 Subject: [PATCH] Add cudy ap3000 Signed-off-by: Daniel Pawlik --- .../{ax3000t.yaml => cudy_ap3000.yaml} | 47 ++++++++----------- .github/workflows/u6lite.yaml | 12 ++--- configs/mediatek/mt7981b/cudy_ap3000 | 8 ++++ openwrt-configure.sh | 2 +- 4 files changed, 34 insertions(+), 35 deletions(-) rename .github/workflows/{ax3000t.yaml => cudy_ap3000.yaml} (69%) create mode 100644 configs/mediatek/mt7981b/cudy_ap3000 diff --git a/.github/workflows/ax3000t.yaml b/.github/workflows/cudy_ap3000.yaml similarity index 69% rename from .github/workflows/ax3000t.yaml rename to .github/workflows/cudy_ap3000.yaml index 4b810b2..0fe9640 100644 --- a/.github/workflows/ax3000t.yaml +++ b/.github/workflows/cudy_ap3000.yaml @@ -1,24 +1,15 @@ --- -name: Xiaomi AX3000T +name: Cudy ap3000 on: workflow_dispatch: - inputs: - DEVICE_CONFIG: - description: "Device configuration selection: stock layout or u-boot (default: u-boot)" - required: true - type: choice - default: 'u-boot' - options: - - stock - - u-boot env: - REMOTE_REPOSITORY: danpawlik/openwrt - REMOTE_BRANCH: ax3000t - RELEASE_PREFIX: Mediatek_mt7981b_ax3000t - DEVICE_CONFIG: ${{ inputs.DEVICE_CONFIG == 'stock' && 'configs/mediatek/mt7981b/ax3000t-stock-layout' || 'configs/mediatek/mt7981b/ax3000t' }} - ROLE_CONFIG: configs/common/dumb_ap + REMOTE_REPOSITORY: openwrt/openwrt + REMOTE_BRANCH: main + RELEASE_PREFIX: Mediatek_mt7981b_ap3000 + ROLE_CONFIG: configs/common/parents + DEVICE_CONFIG: configs/mediatek/mt7981b/cudy_ap3000 jobs: check_commits: @@ -40,7 +31,7 @@ jobs: echo "latest_commit_sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT build: - name: Build OpenWRT for AX3000T + name: Build OpenWRT for ap3000 needs: [check_commits] runs-on: ubuntu-24.04 steps: @@ -65,14 +56,14 @@ jobs: - name: Configure firmware image run: | - curl -SL https://raw.githubusercontent.com/danpawlik/openwrt-builder/master/configs/mediatek/mt7981b/ax3000t > .config + curl -SL https://raw.githubusercontent.com/danpawlik/openwrt-builder/master/${{ env.DEVICE_CONFIG }} > .config curl -SL https://raw.githubusercontent.com/danpawlik/openwrt-builder/master/${{ env.ROLE_CONFIG }} >> .config curl -SL https://raw.githubusercontent.com/danpawlik/openwrt-builder/master/configs/common/snapshot >> .config - - name: Enable openssl - run: | - sed -i '/CONFIG_PACKAGE_wpad-mbedtls=y/d' .config - curl -SL https://raw.githubusercontent.com/danpawlik/openwrt-builder/master/configs/common/openssl >> .config +# - name: Enable openssl +# run: | +# sed -i '/CONFIG_PACKAGE_wpad-mbedtls=y/d' .config +# curl -SL https://raw.githubusercontent.com/danpawlik/openwrt-builder/master/configs/common/openssl >> .config - name: Run defconfig run: | @@ -86,13 +77,13 @@ jobs: run: make -j $(nproc) defconfig download world - name: Package output - run: tar -cvf ax_3000t-images.tar bin/targets/mediatek/filogic + run: tar -cvf ap3000-images.tar bin/targets/mediatek/filogic - name: Upload artifacts uses: actions/upload-artifact@v4 with: - name: ax_3000t-images - path: ax_3000t-images.tar + name: ap3000-images + path: ap3000-images.tar release: name: Create release @@ -103,10 +94,10 @@ jobs: - name: Download artifacts uses: actions/download-artifact@v4 with: - name: ax_3000t-images + name: ap3000-images - name: Extract artifacts - run: tar xf ax_3000t-images.tar + run: tar xf ap3000-images.tar - name: Get current date run: echo "RELEASE_DATE=$(date +%F)" >> $GITHUB_ENV @@ -117,9 +108,9 @@ jobs: files: bin/targets/mediatek/filogic/* tag_name: ${{ env.RELEASE_PREFIX }}-${{ env.REMOTE_BRANCH }}-${{ env.RELEASE_DATE }} name: | - OpenWRT AX3000T ${{ inputs.DEVICE_CONFIG == 'stock' && 'stock layout' || 'u-boot layout' }} - ${{ env.RELEASE_DATE }} + OpenWRT ap3000 - ${{ env.RELEASE_DATE }} body: | - Updated prebuilt images for AX3000T ${{ inputs.DEVICE_CONFIG == 'stock' && 'stock partition layout' || 'u-boot partition layout' }} + Updated prebuilt images for Cudy ap3000 Build Commit: ${{ needs.check_commits.outputs.latest_commit_sha }} diff --git a/.github/workflows/u6lite.yaml b/.github/workflows/u6lite.yaml index b815d81..f1b5e34 100644 --- a/.github/workflows/u6lite.yaml +++ b/.github/workflows/u6lite.yaml @@ -59,18 +59,18 @@ jobs: # curl -SL https://raw.githubusercontent.com/danpawlik/openwrt-builder/master/configs/common/snapshot-short >> .config - name: Configure firmware image run: | - curl -SL "https://raw.githubusercontent.com/danpawlik/openwrt-builder/master/$DEVICE_CONFIG" > .config - curl -SL "https://raw.githubusercontent.com/danpawlik/openwrt-builder/master/$ROLE_CONFIG" >> .config + curl -SL "https://raw.githubusercontent.com/danpawlik/openwrt-builder/master/${{ env.DEVICE_CONFIG }}" > .config + curl -SL "https://raw.githubusercontent.com/danpawlik/openwrt-builder/master/${{ env.ROLE_CONFIG }}" >> .config curl -SL https://raw.githubusercontent.com/danpawlik/openwrt-builder/master/configs/common/snapshot-short >> .config - name: Disable LTO run: | sed -i '/CONFIG_USE_LTO=y/d' .config - - name: Enable openssl - run: | - sed -i '/CONFIG_PACKAGE_wpad-mbedtls=y/d' .config - curl -SL https://raw.githubusercontent.com/danpawlik/openwrt-builder/master/configs/common/openssl >> .config +# - name: Enable openssl +# run: | +# sed -i '/CONFIG_PACKAGE_wpad-mbedtls=y/d' .config +# curl -SL https://raw.githubusercontent.com/danpawlik/openwrt-builder/master/configs/common/openssl >> .config - name: Run defconfig run: diff --git a/configs/mediatek/mt7981b/cudy_ap3000 b/configs/mediatek/mt7981b/cudy_ap3000 new file mode 100644 index 0000000..dc8125c --- /dev/null +++ b/configs/mediatek/mt7981b/cudy_ap3000 @@ -0,0 +1,8 @@ +# +# curl -SL https://raw.githubusercontent.com/danpawlik/openwrt-builder/master/configs/mediatek/mt7981b/cudy_ap3000 > .config +# + +CONFIG_TARGET_mediatek=y +CONFIG_TARGET_mediatek_filogic=y +CONFIG_TARGET_mediatek_filogic_DEVICE_cudy_ap3000-v1=y + diff --git a/openwrt-configure.sh b/openwrt-configure.sh index 329f968..dc1b789 100755 --- a/openwrt-configure.sh +++ b/openwrt-configure.sh @@ -47,7 +47,7 @@ if [ -n "$CRYPTO_LIB" ]; then echo -e "\n\n If this is ARMv8, you can replace libwolfssl with libwolfsslcpu-crypto \n\n" FS_FULL_WPAD_PACKAGES="$FS_FULL_WPAD_PACKAGES wpad-wolfssl libwolfssl" elif [[ "$CRYPTO_LIB" =~ ^(Openssl|openssl)$ ]]; then - FS_FULL_WPAD_PACKAGES="$FS_FULL_WPAD_PACKAGES wpad-openssl apk-openssl libopenssl-devcrypto" + FS_FULL_WPAD_PACKAGES="$FS_FULL_WPAD_PACKAGES wpad-openssl libopenssl-devcrypto" fi fi