From cb1378c507722e2e407c5378211ed265094ba08f Mon Sep 17 00:00:00 2001 From: klever1988 <56048681+klever1988@users.noreply.github.com> Date: Thu, 5 Mar 2020 17:08:12 +0800 Subject: [PATCH] Update r2s_lienol.yml --- .github/workflows/r2s_lienol.yml | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/.github/workflows/r2s_lienol.yml b/.github/workflows/r2s_lienol.yml index ffa3e15..2dfa0a6 100644 --- a/.github/workflows/r2s_lienol.yml +++ b/.github/workflows/r2s_lienol.yml @@ -5,7 +5,7 @@ on: branches: - master paths: - - '.github/workflows/r2s_lienol.yml' + - '.github/workflows/r2s_lienol.yml_' schedule: - cron: '30 09 * * *' @@ -45,18 +45,24 @@ jobs: repo sync -c --no-clone-bundle -j8 cd friendlywrt/ && git fetch - - name: Mods - env: - url_fullconenat_patch: ${{ secrets.url1 }} - url_flowoffload_patch: ${{ secrets.url2 }} + - name: Patch Kernel run: | cd friendlywrt-rk3328 - cd kernel - wget -q ${url_fullconenat_patch} - wget -q ${url_flowoffload_patch} - git apply add_fullconenat.diff - #git apply add_flowoffload.diff - cd .. + cd kernel/ && git apply ../../add_fullconenat.diff && cd ../ + git clone https://github.com/openwrt/openwrt + rm openwrt/target/linux/generic/pending-5.4/403-mtd-hook-mtdsplit-to-Kbuild.patch + rm openwrt/target/linux/generic/hack-5.4/700-swconfig_switch_drivers.patch + cd openwrt/ + ./scripts/patch-kernel.sh ../kernel target/linux/generic/backport-5.4 + ./scripts/patch-kernel.sh ../kernel target/linux/generic/pending-5.4 + ./scripts/patch-kernel.sh ../kernel target/linux/generic/hack-5.4 + cd ../ + wget https://github.com/torvalds/linux/raw/master/scripts/kconfig/merge_config.sh && chmod +x merge_config.sh + grep -i '_NETFILTER_\|FLOW' ../.config.override > .config.override + ./merge_config.sh -m .config.override kernel/arch/arm64/configs/nanopi-r2_linux_defconfig && mv .config kernel/arch/arm64/configs/nanopi-r2_linux_defconfig + + - name: Mods + run: | . ../remove_unused_config.sh cat configs/config_rk3328 | grep "TARGET" >> ../base_rk3328.seed cat ../app_config.seed >> ../base_rk3328.seed @@ -75,6 +81,7 @@ jobs: #sed -i 's/option fullcone\t1/option fullcone\t0/' package/network/config/firewall/files/firewall.config sed -i '/8.8.8.8/d' package/base-files/files/root/setup.sh echo -e '\nDYC Build\n' >> package/base-files/files/etc/banner + rm target/linux/rockchip-rk3328/base-files/etc/modules.d/10-rtl8821cu - name: Mod luci run: |