Commit Graph

13 Commits

Author SHA1 Message Date
Jianping Liu 5071b58e39 config: enable CONFIG_DEBUG_INFO_BTF in eks config
eks container image build needing CONFIG_DEBUG_INFO_BTF, add it.

Signed-off-by: Jianping Liu <frankjpliu@tencent.com>
Reviewed-by: Yongliang Gao <leonylgao@tencent.com>
2024-04-18 19:45:33 +08:00
Jianping Liu 5f0491ad7c Loongarch: support loongarch and add kvm support for loongarch
Merge pull request !128 from lixianglai/next
2024-04-12 20:51:12 +08:00
Ming Wang 5ae49db3f0 dist: loongarch: add make dist support for loongarch
Upstream: no

Adds LoongArch64 processor architecture support in the Makefile.
Also add a soft link to the loongson3_defconfig config file.

Signed-off-by: Ming Wang <wangming01@loongson.cn>
2024-04-12 20:49:37 +08:00
linuszeng 4658d1f284 configs: enable config of X86_PAT for nvidia driver
The following errors are showing up when compiling nvidia driver:

/home/builder/rpmbuild/BUILD/gpu_src/kernel/nvidia/nv-pat.c: In function 'nv_disable_caches':
/home/builder/rpmbuild/BUILD/gpu_src/kernel/nvidia/nv-pat.c:66:5: error: implicit declaration of function '__flush_tlb'; did you
 mean '__flush_tlb_all'? [-Werror=implicit-function-declaration]
   66 |     __flush_tlb();
      |     ^~~~~~~~~~~
      |     __flush_tlb_all
cc1: some warnings being treated as errors

Solve these issues by:
enable CONFIG_X86_PAT

Signed-off-by: Zeng Jingxiang <linuszeng@tencent.com>
2024-04-12 11:01:07 +00:00
linuszeng 5a0da8cdef configs: enable config of TEXT_UNEVICTABLE for memcg granularity
This enables CONFIG_TEXT_UNEVICTABLE on x86 and arm64

Backport-reason: Add code segment unevictable feature support [PATCH 8/8]

Signed-off-by: Xin Hao <vernhao@tencent.com>
2024-04-03 17:59:25 +08:00
Kairui Song 432d074030 dist: add eks base config
Copied from 0017 with EMM enabled and tidyup with defconfig.

Signed-off-by: Kairui Song <kasong@tencent.com>
2024-04-03 15:36:21 +08:00
Jianping Liu 36e05b10d8 Makefile, dist: add "make tencentconfig" support
Tkci depending on "make tencentconfig", add it. And this is compatible
with TK4.

Signed-off-by: Jianping Liu <frankjpliu@tencent.com>
Reviewed-by: Jason Xing <kernelxing@tencent.com>
Reviewed-by: aurelianliu <aurelianliu@tencent.com>
2024-03-04 13:25:26 +08:00
Kairui Song 9952a6aca6 config: update configs for better compatibility
Upstream: no

Signed-off-by: Kairui Song <kasong@tencent.com>
2024-03-01 17:07:24 +08:00
Aichun Shi 51051c65b9 x86: configs: Add Intel In Field Scan(IFS) kernel config
Upstream: no

Intel-SIG: no upstream x86: configs: Add Intel In Field Scan(IFS) kernel config
Backport to support IFS SAF & Array BIST on GNR & SRF

Signed-off-by: Aichun Shi <aichun.shi@intel.com>
2024-01-25 09:40:47 +08:00
Kairui Song 86271f7645 config: update config for ocks-2401
Upstream: no

- Update for 6.6
- Enabled downstream features
- DWARF5 requires gcc 11+, let's be compatible with gcc 8.5 use DWARF4

Signed-off-by: Kairui Song <kasong@tencent.com>
2023-12-12 15:56:44 +08:00
Kairui Song ee14e5223e dist: config: update config from ocks-2303
Upstream: no

Add unselected configs using default config val, remove deprecated
configs.

Signed-off-by: Kairui Song <kasong@tencent.com>
2023-12-12 15:56:44 +08:00
Kairui Song 8ca7380d36 dist: config: add default config files
Upstream: no

Add two config target, generic-release and generic-debug.

generic-release is inherited from OCKS 2207, which is based on Centos 9
and TK4, with following key changes:

- Disabled Firewire, ATM, Memstick, TIPC, and some really legacy drivers
- Enable more NETFILTER, NET_ACT, NET_SCHE, NET_VENDOR, fit requirement
from TK4.
- Enable some drivers that are enabled in TK4 but not in RHEL, like some
IR_DECODER, network card drivers like QLCNIC, we can disable them
later if not needed.
- Enable compatibility options like USELIB and LEGACY_VSYSCALL.
- I thought about dropping DVBs, but RHEL/Fedora have them enabled, we
can disable them later if no one uses it.

Also enabled some configs even for defconfig, so the build process is
unified.

Signed-off-by: Kairui Song <kasong@tencent.com>
2023-12-12 15:56:44 +08:00
Kairui Song cf5d03932d dist: initial support
Upstream: no
Check-Patch: no

Imported from OCKS-2303:
https://github.com/openCloudOS/OpenCloudOS-Kernel-Stream/tree/ocks-2303

This build system is re-written from scratch except some code snips:

- Compatible with systems that were using TK kernel.
- Compatible with RHEL-like systems.
- Resolved tons of hacks and workaround from TK/RHEL. (leftovers are
  marked as TODO)
- All RPM builtin debuginfo utilities are well leveraged (buildid
  re-generate, dwarf compression, etc...)
- For bpftool and BTF info extracting, this package will try self-bootstrap
  and don't depend on host kernel during build time.
- Well commented, and targeted for maximum compatibility.
- Integrated config management system.
- Integrated with version management system.
- Provides many utils.
- Cross-build and cross packaging, also cross kABI checking/updating.
- ...

To start, just run:
make dist-rpm

And for help, just run:
make dist-help

It will build following packages:
  kernel
    Main meta package, empty, depend on kernel-core and kernel-modules
  kernel-core
    The package contains kernel image and core modules, able to boot
    all machines, all kinds of VMs etc.
  kernel-modules
    Contains extra modules and drivers, most modules that are not
    required for VMs and common hardware should go into this pacakge.
  kernel-devel
    Devel files for building custom kernel modules.
  kernel-headers
    Kernel headers.
  perf
  python3-perf
    Userspace tool perf.
  kernel-tools
  kernel-tools-libs
  kernel-tools-libs-devel
    Userspace tools like cpupower, slabinfo, etc...
  bpftool
    bpftool
  kernel-debuginfo
  kernel-debuginfo-common
  perf-debuginfo
  python3-perf-debuginfo
  kernel-tools-debuginfo
  bpftool-debuginfo
    All kinds of debuginfo

Signed-off-by: Kairui Song <kasong@tencent.com>
2023-12-12 15:56:34 +08:00