dist,Makefile: use override when set DISABLED again

Using override and add space character, let the code more readable.

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 21:55:41 +08:00
parent fb399fc9d8
commit 9689e83ae9
1 changed files with 4 additions and 4 deletions

8
dist/Makefile vendored
View File

@ -104,15 +104,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)
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
DISABLED = ofed
endif
# generic-debug only build kernel rpm, disable other rpms
ifeq ($(CONFIG),generic-debug)
DISABLED=ofed bpftool perf tools headers keypkg doc
override DISABLED := bpftool perf tools headers keypkg doc $(DISABLED)
endif
## A few shortcut for commonly used params: