2022-11-21 12:42:43 +00:00
|
|
|
ifeq ($(filter dist-% distg-%,$(MAKECMDGOALS)),)
|
2019-07-22 22:03:53 +00:00
|
|
|
include Makefile
|
|
|
|
endif
|
|
|
|
|
|
|
|
_OUTPUT := "."
|
|
|
|
# this section is needed in order to make O= to work
|
|
|
|
ifeq ("$(origin O)", "command line")
|
|
|
|
_OUTPUT := "$(abspath $(O))"
|
|
|
|
_EXTRA_ARGS := O=$(_OUTPUT)
|
|
|
|
endif
|
2020-05-12 23:54:03 +00:00
|
|
|
dist-%::
|
2022-11-21 12:42:43 +00:00
|
|
|
$(MAKE) -C redhat $(@) $(_EXTRA_ARGS)
|
2019-07-22 22:03:53 +00:00
|
|
|
|
2020-05-12 23:54:03 +00:00
|
|
|
distg-%::
|
2022-11-21 12:42:43 +00:00
|
|
|
$(MAKE) -C redhat $(@) $(_EXTRA_ARGS)
|
2019-07-22 22:03:53 +00:00
|
|
|
|
2023-01-05 23:18:40 +00:00
|
|
|
ifeq (,$(filter $(ARCH), x86 x86_64 powerpc s390 aarch64))
|
|
|
|
ifneq ($(KBUILD_EXTMOD),)
|
|
|
|
# always strip out error flags for external modules
|
|
|
|
KBUILD_CPPFLAGS := $(filter-out -Werror,$(KBUILD_CPPFLAGS))
|
|
|
|
KBUILD_RUSTFLAGS := $(filter-out -Dwarnings,$(KBUILD_RUSTFLAGS))
|
|
|
|
endif
|
|
|
|
endif
|