dist,Makefile: generic-debug config only build kernel rpm

We intend to archive kernle-debug rpm in yum. Release kernel will
build perf/tools/bpf-tools rpm, to avoid kernle-debug build the same
rpm, disable them.

Signed-off-by: Jianping Liu <frankjpliu@tencent.com>
This commit is contained in:
Jianping Liu 2024-09-25 19:07:13 +08:00
parent 007360a952
commit 57c24f79d0
2 changed files with 10 additions and 4 deletions

12
dist/Makefile vendored
View File

@ -100,11 +100,15 @@ endif
### RPM build options
# All params enabled by default (except kABI check, see below), ENABLED overrides DEFAULT_DISABLE.
DISABLED=$(DEFAULT_DISABLED)
ENABLED=$(DEFAULT_ENABLED)
# Automatically disable non core package for non standard build
DISABLED = $(DEFAULT_DISABLED)
ENABLED = $(DEFAULT_ENABLED)
# Automatically disable non core package for non standard build, such as eks/cloudgame
ifneq ($(CONFIG),generic-release)
DISABLED=ofed bpftool perf tools
override DISABLED := ofed $(DISABLED)
endif
# generic-debug only build kernel rpm, disable other rpms
ifeq ($(CONFIG),generic-debug)
override DISABLED := bpftool perf tools headers keypkg doc $(DISABLED)
endif
## A few shortcut for commonly used params:

View File

@ -1,3 +1,5 @@
CONFIG_LOCALVERSION="+debug"
# CONFIG_MODULE_SIG_FORCE is not set
CONFIG_KASAN=y