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:
parent
6325da052c
commit
9ff04f78b7
|
@ -106,10 +106,14 @@ endif
|
||||||
# All params enabled by default (except kABI check, see below), ENABLED overrides DEFAULT_DISABLE.
|
# All params enabled by default (except kABI check, see below), ENABLED overrides DEFAULT_DISABLE.
|
||||||
DISABLED=$(DEFAULT_DISABLED)
|
DISABLED=$(DEFAULT_DISABLED)
|
||||||
ENABLED=$(DEFAULT_ENABLED)
|
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)
|
ifneq ($(CONFIG),generic-release)
|
||||||
DISABLED=ofed
|
DISABLED=ofed
|
||||||
endif
|
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:
|
## A few shortcut for commonly used params:
|
||||||
# Disable KABI check by default
|
# Disable KABI check by default
|
||||||
|
@ -160,8 +164,10 @@ dist-tarball:
|
||||||
dist-drivers:
|
dist-drivers:
|
||||||
@echo "Preparing thirdparty drivers."
|
@echo "Preparing thirdparty drivers."
|
||||||
ifneq ($(DIST),oc9)
|
ifneq ($(DIST),oc9)
|
||||||
|
ifneq ($(filter ofed, $(DISABLED)), ofed)
|
||||||
@cd $(TOPDIR)/dist/sources/ ; ./download-and-copy-drivers.sh ; cd $(TOPDIR)
|
@cd $(TOPDIR)/dist/sources/ ; ./download-and-copy-drivers.sh ; cd $(TOPDIR)
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
$(CONFIGFILE): $(DISTFILES)
|
$(CONFIGFILE): $(DISTFILES)
|
||||||
@echo "Generating kernel config style '$(CONFIG)'"
|
@echo "Generating kernel config style '$(CONFIG)'"
|
||||||
|
|
Loading…
Reference in New Issue