error out if trying to build a module thats off or base
This commit is contained in:
parent
97749e2a2e
commit
84313262d7
@ -141,6 +141,10 @@ endif
|
||||
# Build module packages
|
||||
#
|
||||
tmp/%.mod: $(M4SUPPORT) tmp/generated_definitions.conf tmp/all_interfaces.conf %.te
|
||||
@if test -z "$(filter $^,$(MOD_MODS))"; then \
|
||||
echo "The $(notdir $(basename $@)) module is not configured to be compiled as a lodable module." ;\
|
||||
false ;\
|
||||
fi
|
||||
@echo "Compliling $(NAME) $(@F) module"
|
||||
$(QUIET) m4 $(M4PARAM) -s $^ > $(@:.mod=.tmp)
|
||||
$(QUIET) $(CHECKMODULE) -m $(@:.mod=.tmp) -o $@
|
||||
|
Loading…
Reference in New Issue
Block a user