Skip to content

Commit

Permalink
support snapshot feeds
Browse files Browse the repository at this point in the history
  • Loading branch information
arix00 committed Sep 16, 2024
1 parent 4d2be74 commit 4504fff
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build_mx4300.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: workflow_dispatch

jobs:
build:
name: Build MX4300 firmware images
name: Build MX4300 FOSS Images
runs-on: ubuntu-latest
permissions:
contents: write
Expand Down Expand Up @@ -37,13 +37,13 @@ jobs:
uses: actions/checkout@v4

- name: Update feeds
run: make package/symlinks
run: scripts/feeds update -a && scripts/feeds install -a

- name: Generate config
run: sh genconfig.sh

- name: Build firmware images
run: make -j$(($(nproc)+1)) download world
run: make -j$(($(nproc)+1)) world

- name: Get SHA
uses: benjlevesque/[email protected]
Expand Down
11 changes: 9 additions & 2 deletions genconfig.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@

#!/bin/sh

wget https://downloads.openwrt.org/snapshots/targets/qualcommax/ipq807x/config.buildinfo
cat config.buildinfo | grep -v CONFIG_TARGET_MULTI_PROFILE | grep -v CONFIG_TARGET_DEVICE_ | grep -v CONFIG_TARGET_ALL_PROFILES > .config
wget https://downloads.openwrt.org/snapshots/targets/qualcommax/ipq807x/config.buildinfo -O config.buildinfo
cat config.buildinfo | grep -v CONFIG_TARGET_DEVICE_ | grep -v CONFIG_TARGET_ALL_PROFILES | grep -v CONFIG_TARGET_MULTI_PROFILE > .config
echo CONFIG_TARGET_ALL_PROFILES=n >> .config
echo CONFIG_TARGET_MULTI_PROFILE=n >> .config
echo CONFIG_IB=n >> .config
echo CONFIG_TARGET_qualcommax_ipq807x_DEVICE_linksys_mx4300=y >> .config
echo CONFIG_TARGET_DEVICE_qualcommax_ipq807x_DEVICE_linksys_mx4300=y >> .config
echo CONFIG_TARGET_DEVICE_PACKAGES_qualcommax_ipq807x_DEVICE_linksys_mx4300=\"\" >> .config
make defconfig
#add libpam
#echo CONFIG_PACKAGE_libpam=y >> .config
#skip xdp
cat .config | grep -v "CONFIG_PACKAGE.*xdp" > .config

0 comments on commit 4504fff

Please sign in to comment.