kernel: Linux 6.18-rc5 #815
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build rockchip firmware on arm64 | |
| on: [push] | |
| jobs: | |
| build: | |
| name: Build rockchip linux v6.18 images | |
| runs-on: ubuntu-24.04-arm | |
| steps: | |
| - name: Setup Ubuntu | |
| run: | | |
| sudo apt update | |
| sudo apt install -y subversion build-essential gettext 2to3 python3-pyelftools python3-distutils-extra | |
| - name: Setup Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.24.4' | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Build | |
| run: | | |
| git clone https://github.com/mj22226/openwrt.git | |
| cd openwrt | |
| git pull | |
| git checkout linux-6.18 | |
| ./scripts/feeds update -a | |
| ./scripts/feeds install -a | |
| cd feeds/luci | |
| wget https://gist.githubusercontent.com/mj22226/363cefecd314e45b49d8eafff8473fcf/raw/f327d1fcae5513be3abbeea1c6696c1da845a635/01-diskman.patch | |
| git apply 01-diskman.patch | |
| cd - | |
| cd feeds/packages | |
| wget https://gist.githubusercontent.com/mj22226/351f11e66f08f06e37a985719a31ddb4/raw/2cf67633587d351b66fdf1bd902df6494cd42e68/01-cpu.patch | |
| wget https://gist.githubusercontent.com/mj22226/b66f5c1bd5fc7e1cb3cf2c690b5dbd5a/raw/b955e726cbb0948d932c8d6143229ad604320149/20-lxc.patch | |
| wget https://github.com/mj22226/packages/commit/0cdb99f86c8f6c4e2a69e4cdecf4166311552f70.patch | |
| git apply 01-cpu.patch | |
| git apply 20-lxc.patch | |
| git apply 0cdb99f86c8f6c4e2a69e4cdecf4166311552f70.patch | |
| cd - | |
| sed -i "71s/'0'/'1'/" feeds/luci/applications/luci-app-statistics/root/etc/config/luci_statistics | |
| sed -i "84s/'0'/'1'/" feeds/luci/applications/luci-app-statistics/root/etc/config/luci_statistics | |
| sed -i "195s/'0'/'1'/" feeds/luci/applications/luci-app-statistics/root/etc/config/luci_statistics | |
| sed -i "212s/'0'/'1'/" feeds/luci/applications/luci-app-statistics/root/etc/config/luci_statistics | |
| sed -i "13s/'1'/'0'/" feeds/packages/utils/dockerd/files/etc/config/dockerd | |
| sed -i "4s/login/login -f root/" feeds/packages/utils/ttyd/files/ttyd.config | |
| ./scripts/feeds update -a | |
| ./scripts/feeds install -a -f | |
| cp .github/workflows/rk-config .config | |
| echo 'CONFIG_GOLANG_EXTERNAL_BOOTSTRAP_ROOT="/opt/hostedtoolcache/go/1.24.4/arm64/bin"' >> .config | |
| make defconfig | |
| wget https://gist.githubusercontent.com/mj22226/9a69bb754a83e8a5cf03fcc60d62d473/raw/cc6f36831d6098de4a7fccf04a312d36a0dbc999/01-key.patch | |
| git apply 01-key.patch | |
| make download -j32 | |
| rm 01-key.patch | |
| make -j$(nproc) 'IGNORE_ERRORS=n m' | |
| tar -czvf bin/targets/rockchip/armv8/logs.tar.gz logs | |
| rm -rf bin/targets/rockchip/armv8/packages | |
| echo "DATE=$(date +'%Y.%m.%d')" >> $GITHUB_ENV | |
| echo "HASH=$(git log -1 --format="%H")" >> $GITHUB_ENV | |
| - name: Delete tag | |
| run: gh release delete rockchip-6.18 --cleanup-tag || true | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Create release | |
| uses: ncipollo/[email protected] | |
| with: | |
| allowUpdates: true | |
| commit: ${{ env.HASH }} | |
| name: Rockchip v6.18 Images ${{ env.DATE }} | |
| tag: rockchip-6.18 | |
| replacesArtifacts: true | |
| prerelease: true | |
| token: "${{ secrets.GITHUB_TOKEN }}" | |
| artifacts: openwrt/bin/targets/rockchip/armv8/* |