Files
OpenNetworkLinux/make/kmodule.mk
2018-10-26 00:00:50 +00:00

30 lines
447 B
Makefile

ifndef KERNELS
$(error $$KERNELS must be set)
endif
ifndef KMODULES
$(error $$KMODULES must be set)
endif
ifndef ARCH
$(error $$ARCH must be set)
endif
ifndef SUBDIR
ifndef VENDOR
$(error $$VENDOR must be set.)
endif
ifndef BASENAME
$(error $$BASENAME must be set.)
endif
SUBDIR := "onl/$(VENDOR)/$(BASENAME)"
endif
modules:
rm -rf lib
ARCH=$(ARCH) $(ONL)/tools/scripts/kmodbuild.sh "$(KERNELS)" "$(KMODULES)" "$(SUBDIR)" "$(KINCLUDES)"