From a25bd38551283b68a7da6216be34ec4269e069aa Mon Sep 17 00:00:00 2001 From: zhao Date: Wed, 19 Mar 2025 21:59:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20toolchain/build.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhao --- toolchain/build.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/toolchain/build.sh b/toolchain/build.sh index e69de29..cd4b3c2 100644 --- a/toolchain/build.sh +++ b/toolchain/build.sh @@ -0,0 +1,21 @@ +#!/bin/bash -e + +# Clone source code +if [ "$matrix.model" = "Padavanonly_MT798X_v24.10" ]; then + git clone -b 2410 --single-branch --filter=blob:none https://github.com/padavanonly/immortalwrt-mt798x-24.10 openwrt +elif [ "$matrix.model" = "Hanwckf_MT798X_v21.02" ]; then + git clone --depth=1 https://github.com/hanwckf/immortalwrt-mt798x openwrt +fi + +# Enter source code +cd openwrt + +# Load devices Config +cp -f defconfig/mt7981-ax3000.config .config + +# Init feeds +./scripts/feeds update -a +./scripts/feeds install -a + +# Compile +make toolchain/compile -j$(nproc) \ No newline at end of file