[LTP] [PATCH v2 1/1] Makefile: Add kernel modules related make targets

Petr Vorel pvorel@suse.cz
Wed Aug 6 13:47:02 CEST 2025


Hi Li, all,

..
> > We could allow to fail build with:
> > $ make modules FORCE=1

> > with these changes to include/mk/module.mk:

> > ifneq ($(SKIP),0)
> > MAKE_TARGETS := $(filter-out %.ko, $(MAKE_TARGETS))

> > ifeq ($(FORCE),1)
> > $(error Modules not built)


> This suggestion looks good, maybe we can also add a helpful error
> message showing how to fix it:

> ifeq ($(FORCE),1)
> $(error Kernel modules not built! \
> Check that kernel-devel/kernel-headers for
> $(LINUX_VERSION_MAJOR).$(LINUX_VERSION_PATCH) are installed, \
> and try again. You can build anyway by omitting FORCE=1.)

+1. I'll probably do this as a separate effort (or at least a separate commit).

Kind regards,
Petr


More information about the ltp mailing list