From 527cd98d5b1a6d56156fbd7e436cd7750c69308d Mon Sep 17 00:00:00 2001 From: arix00 <15333224+arix00@users.noreply.github.com> Date: Sat, 21 Sep 2024 12:57:25 -0700 Subject: [PATCH] update --- .github/workflows/build_nss.yml | 58 +++++++++++++++++++++++++++++++++ genconfig_nss.sh | 8 +++++ 2 files changed, 66 insertions(+) create mode 100644 .github/workflows/build_nss.yml create mode 100644 genconfig_nss.sh diff --git a/.github/workflows/build_nss.yml b/.github/workflows/build_nss.yml new file mode 100644 index 00000000000000..bddf735c1513e2 --- /dev/null +++ b/.github/workflows/build_nss.yml @@ -0,0 +1,58 @@ +name: build nss + +on: workflow_dispatch + +jobs: + build: + name: build mx4300 nss + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - name: Install packages + run: | + sudo apt-get update && \ + sudo apt-get install -y \ + build-essential \ + clang \ + flex \ + bison \ + g++ \ + gawk \ + gcc-multilib \ + g++-multilib \ + gettext \ + git \ + libncurses-dev \ + libssl-dev \ + python3-distutils \ + rsync \ + unzip \ + zlib1g-dev \ + file \ + wget && \ + sudo apt-get clean + + - name: Checkout + uses: actions/checkout@v4 + + - name: Update feeds + run: scripts/feeds update -a && scripts/feeds install -a + + - name: Generate config + run: sh genconfig_nss.sh + + - name: Build firmware images + run: make -j$(($(nproc)+1)) world + + - name: Pack packages + run: tar cvfz bin.tar.gz bin/ + + - name: Get SHA + uses: benjlevesque/short-sha@v2.2 + + - name: Release + uses: ncipollo/release-action@v1 + with: + tag: qualcommax-nss-${{ env.SHA }} + artifacts: bin.tar.gz diff --git a/genconfig_nss.sh b/genconfig_nss.sh new file mode 100644 index 00000000000000..4f9a244cbdab40 --- /dev/null +++ b/genconfig_nss.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +cp nss-setup/config-nss.seed .config + +echo CONFIG_ATH11K_THERMAL=y >> .config +echo CONFIG_KMOD_ALL=y >> .config + +make defconfig