arm-test
This commit is contained in:
4
.github/workflows/arm-test.yml
vendored
4
.github/workflows/arm-test.yml
vendored
@@ -5,7 +5,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build kernel
|
name: Build kernel
|
||||||
runs-on: self-hosted
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
# 由于默认的 Ubuntu 环境只有 17G 左右的剩余空间,所以我们需要先利用如下 action 对编译环境进行扩容
|
# 由于默认的 Ubuntu 环境只有 17G 左右的剩余空间,所以我们需要先利用如下 action 对编译环境进行扩容
|
||||||
@@ -29,5 +29,5 @@ jobs:
|
|||||||
sudo apt install neofetch -y
|
sudo apt install neofetch -y
|
||||||
neofetch
|
neofetch
|
||||||
df -H /
|
df -H /
|
||||||
#bash build_action.sh 0
|
bash build_action-aarch64.sh 0
|
||||||
|
|
||||||
|
|||||||
10
README.md
10
README.md
@@ -16,13 +16,3 @@
|
|||||||
#### 4. 推送修改
|
#### 4. 推送修改
|
||||||
推送后,action 自动触发,可以在您的仓库页面的 `Actions` 选项卡查看进度详情。
|
推送后,action 自动触发,可以在您的仓库页面的 `Actions` 选项卡查看进度详情。
|
||||||
|
|
||||||
Enjoy~ :grin:
|
|
||||||
|
|
||||||
qq交流群:851323386
|
|
||||||

|
|
||||||
|
|
||||||
了解更多请看:
|
|
||||||
|
|
||||||
[利用 GitHub Actions 自动构建 Linux 内核为 deb 包](https://www.debuggerx.com/2021/08/17/Using-github-actions-to-build-kernel-deb-packages/)
|
|
||||||
|
|
||||||
[修改 Linux 内核使系统启动时间缩短约 30 秒](https://www.debuggerx.com/2021/07/07/Modify-the-linux-kernel-to-reduce-the-boot-speed-by-about-30-seconds/)
|
|
||||||
|
|||||||
@@ -15,7 +15,12 @@ fi
|
|||||||
# install dep
|
# install dep
|
||||||
sudo apt install -y wget xz-utils make gcc flex bison dpkg-dev bc rsync kmod cpio libssl-dev git lsb vim libelf-dev
|
sudo apt install -y wget xz-utils make gcc flex bison dpkg-dev bc rsync kmod cpio libssl-dev git lsb vim libelf-dev
|
||||||
sudo apt build-dep -y linux
|
sudo apt build-dep -y linux
|
||||||
|
wget http://releases.linaro.org/components/toolchain/binaries/7.5-2019.12/aarch64-linux-gnu/gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu.tar.xz
|
||||||
|
tar -xvf gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu.tar.xz
|
||||||
|
sudo mkdir /usr/bin/toolchain
|
||||||
|
sudo cp gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu /usr/bin/toolchain/ -rfv
|
||||||
|
export PATH=$PATH:/usr/bin/toolchain/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu/bin/
|
||||||
|
echo $PATH
|
||||||
# change dir to workplace
|
# change dir to workplace
|
||||||
cd "${GITHUB_WORKSPACE}" || exit
|
cd "${GITHUB_WORKSPACE}" || exit
|
||||||
|
|
||||||
@@ -25,7 +30,7 @@ tar -xf linux-"$VERSION".tar.xz
|
|||||||
cd linux-"$VERSION" || exit
|
cd linux-"$VERSION" || exit
|
||||||
|
|
||||||
# copy config file
|
# copy config file
|
||||||
cp ../config .config
|
cp ../config-arm64 .config
|
||||||
#
|
#
|
||||||
# disable DEBUG_INFO to speedup build
|
# disable DEBUG_INFO to speedup build
|
||||||
scripts/config --disable DEBUG_INFO
|
scripts/config --disable DEBUG_INFO
|
||||||
@@ -36,7 +41,7 @@ scripts/config --set-str SYSTEM_TRUSTED_KEYS ""
|
|||||||
|
|
||||||
# build deb packages
|
# build deb packages
|
||||||
CPU_CORES=$(($(grep -c processor < /proc/cpuinfo)*2))
|
CPU_CORES=$(($(grep -c processor < /proc/cpuinfo)*2))
|
||||||
sudo make bindeb-pkg -j"$CPU_CORES"
|
sudo make bindeb-pkg ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- -j"$CPU_CORES"
|
||||||
|
|
||||||
# move deb packages to artifact dir
|
# move deb packages to artifact dir
|
||||||
cd ..
|
cd ..
|
||||||
|
|||||||
8503
config-arm64
Normal file
8503
config-arm64
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user