mirror of
https://github.com/Telecominfraproject/OpenNetworkLinux.git
synced 2025-10-30 01:42:50 +00:00
30 lines
447 B
Makefile
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)"
|