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>
Reviewed-by: Yongliang Gao <leonylgao@tencent.com>
This commit is contained in:
Jianping Liu 2024-09-24 19:58:07 +08:00
parent 6325da052c
commit 9ff04f78b7
1 changed files with 7 additions and 1 deletions

8
dist/Makefile vendored
View File

@ -106,10 +106,14 @@ endif
# 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
# Automatically disable non core package for non standard build, such as eks/cloudgame
ifneq ($(CONFIG),generic-release)
DISABLED=ofed
endif
# generic-debug only build kernel rpm, disable other rpms
ifeq ($(CONFIG),generic-debug)
DISABLED=ofed bpftool perf tools headers keypkg doc
endif
## A few shortcut for commonly used params:
# Disable KABI check by default
@ -160,8 +164,10 @@ dist-tarball:
dist-drivers:
@echo "Preparing thirdparty drivers."
ifneq ($(DIST),oc9)
ifneq ($(filter ofed, $(DISABLED)), ofed)
@cd $(TOPDIR)/dist/sources/ ; ./download-and-copy-drivers.sh ; cd $(TOPDIR)
endif
endif
$(CONFIGFILE): $(DISTFILES)
@echo "Generating kernel config style '$(CONFIG)'"