1 Star 0 Fork 0

zhengzengkai/openEuler_scripts

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0003-pkgbuild-linux-change-default-build-config-to-defcon.patch 1.15 KB
一键复制 编辑 原始数据 按行查看 历史
zhengzengkai 提交于 2024-10-26 21:46 . commit20241026 for lkp
From 4e9fe684337dce7b9036657907927f056a322a85 Mon Sep 17 00:00:00 2001
From: Zheng Zengkai <[email protected]>
Date: Sat, 26 Oct 2024 20:09:35 +0800
Subject: [PATCH 3/3] pkgbuild/linux: change default build config to defconfig
In order to avoid some random errors introduced by
randconfig and build the linux kernel successfully,
change the default build config from randconfig to
defconfig.
Increase to 8 jobs to accelerate the build process.
Signed-off-by: Zheng Zengkai <[email protected]>
---
programs/linux/PKGBUILD | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/programs/linux/PKGBUILD b/programs/linux/PKGBUILD
index 129a8d42e..4fd1e4f2d 100644
--- a/programs/linux/PKGBUILD
+++ b/programs/linux/PKGBUILD
@@ -56,11 +56,12 @@ prepare() {
if [ -s $cci_dir/$pkgbase/$config ]; then
cp $cci_dir/$pkgbase/$config .config
else
- make randconfig
+ echo "make defconfig..."
+ make defconfig
sed -i 's/# CONFIG_MODULES is not set/CONFIG_MODULES=y/g' .config
fi
- make olddefconfig -j4
+ make olddefconfig -j8
if [ "$pkgbase" == 'linux' ]; then
cp .config "$linux_CGZDEST/kconfig"
else
--
2.23.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zhengzengkai/openEuler_scripts.git
[email protected]:zhengzengkai/openEuler_scripts.git
zhengzengkai
openEuler_scripts
openEuler_scripts
master

搜索帮助