From 9689e83ae91a2eb68152105aaeffc5ea7776139a Mon Sep 17 00:00:00 2001 From: Jianping Liu Date: Tue, 24 Sep 2024 21:55:41 +0800 Subject: [PATCH] dist,Makefile: use override when set DISABLED again Using override and add space character, let the code more readable. Signed-off-by: Jianping Liu Reviewed-by: Yongliang Gao --- dist/Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/Makefile b/dist/Makefile index dfe4ae9e095c..d649499a4700 100644 --- a/dist/Makefile +++ b/dist/Makefile @@ -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: