未验证 提交 37c3c863 编写于 作者: O openeuler-ci-bot 提交者: Gitee

!337 config: add initial openeuler_defconfig for devel-6.1

Merge Pull Request from: @xiexiuqi 
 
Prepare initial configs for devel-6.1 branch.

The defconfig is based on openEuler 22.03 LTS SP1,
we use this cmd to generate config files:

  cp /boot/config-5.10.0-136.12.0.86.oe2203sp1.aarch64 arch/arm64/configs/openeuler_defconfig
  make update_oedefconfig 
 
Link:https://gitee.com/openeuler/kernel/pulls/337 
Reviewed-by: Zheng Zengkai <zhengzengkai@huawei.com> 
Reviewed-by: Liu Chao <liuchao173@huawei.com> 
Signed-off-by: Zheng Zengkai <zhengzengkai@huawei.com> 
此差异已折叠。
此差异已折叠。
......@@ -81,6 +81,14 @@ PHONY += savedefconfig defconfig
savedefconfig: $(obj)/conf
$(Q)$< $(silent) --$@=defconfig $(Kconfig)
update_oedefconfig: $(obj)/conf
$(Q)$< $(silent) --defconfig=arch/$(SRCARCH)/configs/openeuler_defconfig $(Kconfig)
$(Q)$(CONFIG_SHELL) $(srctree)/scripts/kconfig/makeconfig.sh $(SRCARCH)
save_oedefconfig: $(obj)/conf
$(Q)$(CONFIG_SHELL) $(srctree)/scripts/kconfig/makeconfig.sh $(SRCARCH)
defconfig: $(obj)/conf
ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/configs/$(KBUILD_DEFCONFIG)),)
@$(kecho) "*** Default configuration is based on '$(KBUILD_DEFCONFIG)'"
......@@ -141,6 +149,8 @@ help:
@echo ' default value without prompting'
@echo ' tinyconfig - Configure the tiniest possible kernel'
@echo ' testconfig - Run Kconfig unit tests (requires python3 and pytest)'
@echo ' update_oedefconfig - Update arch/<ARCH>/configs/openeuler_defconfig base on current source code'
@echo ' save_oedefconfig - Save current .config to arch/<ARCH>/configs/openeuler_defconfig'
# ===========================================================================
# object files used by all kconfig flavours
......
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
if [ ! -f .config ]; then
echo ".config does not exist"
exit 1
fi
sed -e '/CONFIG_CC_VERSION_TEXT/d' \
-e '/CONFIG_CC_IS_GCC/d' \
-e '/CONFIG_GCC_VERSION/d' \
-e '/CONFIG_LD_VERSION/d' \
-e '/CONFIG_LD_IS/d' \
-e '/CONFIG_CLANG_VERSION/d' \
-e '/CONFIG_LLD_VERSION/d' \
-e '/CONFIG_CC_CAN/d' \
-e '/CONFIG_CC_HAS/d' \
-e '/CONFIG_AS_VERSION/d' \
-e '/CONFIG_AS_HAS/d' \
-e '/CONFIG_AS_IS/d' \
-e '/CONFIG_PAHOLE_VERSION/d' \
-i .config
cp .config arch/$1/configs/openeuler_defconfig
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册