update script
This commit is contained in:
44
.github/workflows/r2s_lean.yml
vendored
44
.github/workflows/r2s_lean.yml
vendored
@@ -12,11 +12,12 @@ on:
|
||||
jobs:
|
||||
|
||||
build:
|
||||
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
if: github.event.repository.owner.id == 56048681
|
||||
|
||||
steps:
|
||||
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@master
|
||||
with:
|
||||
@@ -31,35 +32,24 @@ jobs:
|
||||
sudo apt-get -y install bc build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex uglifyjs git-core gcc-multilib p7zip p7zip-full msmtp libssl-dev texinfo libglib2.0-dev xmlto qemu-utils upx libelf-dev autoconf automake libtool autopoint device-tree-compiler
|
||||
wget -O - https://raw.githubusercontent.com/friendlyarm/build-env-on-ubuntu-bionic/master/install.sh | bash
|
||||
sudo rm -rf /usr/share/dotnet /usr/local/lib/android/sdk
|
||||
|
||||
|
||||
- name: Install Repo
|
||||
run: |
|
||||
git clone https://github.com/friendlyarm/repo
|
||||
sudo cp repo/repo /usr/bin/
|
||||
|
||||
|
||||
- name: Init Source
|
||||
run: |
|
||||
mkdir friendlywrt-rk3328
|
||||
cd friendlywrt-rk3328
|
||||
repo init -u https://github.com/friendlyarm/friendlywrt_manifests -b master-v19.07.1 -m rk3328.xml --repo-url=https://github.com/friendlyarm/repo --no-clone-bundle
|
||||
repo sync -c --no-clone-bundle -j8
|
||||
|
||||
repo init -u https://github.com/friendlyarm/friendlywrt_manifests -b master-v19.07.1 -m rk3328.xml --repo-url=https://github.com/friendlyarm/repo --no-clone-bundle --depth=1
|
||||
repo sync -c --no-tags --no-clone-bundle -j8
|
||||
cd friendlywrt/ && git fetch --unshallow
|
||||
|
||||
- name: Patch Kernel
|
||||
run: |
|
||||
cd friendlywrt-rk3328
|
||||
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
|
||||
|
||||
. patch_kernel_5.4.22.sh
|
||||
|
||||
- name: Mods
|
||||
run: |
|
||||
cd friendlywrt-rk3328
|
||||
@@ -85,10 +75,12 @@ jobs:
|
||||
#dnsmasq.ssr/ad.conf
|
||||
#dnsmasq.ssr/gfw_base.conf' | xargs rm
|
||||
#cd ../../../
|
||||
rm -rf luci-theme-argon
|
||||
rm -rf luci-theme-argon
|
||||
git clone -b 18.06 https://github.com/jerrykuku/luci-theme-argon.git
|
||||
cd ../../
|
||||
sed -i '/exit/i\mv /etc/rc.d/S25dockerd /etc/rc.d/S92dockerd && sed -i "s/START=25/START=92/g" S92dockerd' package/lean/default-settings/files/zzz-default-settings
|
||||
git apply ../../enable_autocore.diff
|
||||
#sed -i '/exit/i\mv /etc/rc.d/S25dockerd /etc/rc.d/S92dockerd && sed -i "s/START=25/START=92/g" S92dockerd' package/lean/default-settings/files/zzz-default-settings
|
||||
sed -i '/exit/i\/etc/init.d/dockerd disabled' package/lean/default-settings/files/zzz-default-settings
|
||||
sed -i '/uci commit luci/i\uci set luci.main.mediaurlbase="/luci-static/argon"' package/lean/default-settings/files/zzz-default-settings
|
||||
sed -i '/exit/i\chown -R root:root /usr/share/netdata/web' package/lean/default-settings/files/zzz-default-settings
|
||||
#sed -i 's/option fullcone\t1/option fullcone\t0/' package/network/config/firewall/files/firewall.config
|
||||
@@ -102,13 +94,13 @@ jobs:
|
||||
./scripts/feeds update -a && ./scripts/feeds install -a
|
||||
sed -i '/Load Average/i\<tr><td width="33%"><%:CPU Temperature%></td><td><%=luci.sys.exec("cut -c1-2 /sys/class/thermal/thermal_zone0/temp")%></td></tr>' feeds/luci/modules/luci-mod-admin-full/luasrc/view/admin_status/index.htm
|
||||
sed -i 's/pcdata(boardinfo.system or "?")/"ARMv8"/' feeds/luci/modules/luci-mod-admin-full/luasrc/view/admin_status/index.htm
|
||||
|
||||
|
||||
- name: Build FriendlyWrt
|
||||
run: |
|
||||
cd friendlywrt-rk3328
|
||||
sed -i 's/set -eu/set -u/' scripts/mk-friendlywrt.sh
|
||||
./build.sh nanopi_r2s.mk
|
||||
|
||||
|
||||
- name: Zip Files
|
||||
run: |
|
||||
gzip friendlywrt-rk3328/out/*.img
|
||||
|
||||
Reference in New Issue
Block a user