From 13e20e596c131d943666c7ac728d5caeac06ee72 Mon Sep 17 00:00:00 2001 From: Jeffrey Townsend Date: Sun, 1 Jan 2017 19:39:04 +0000 Subject: [PATCH] ARCH check. --- make/kmodule.mk | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/make/kmodule.mk b/make/kmodule.mk index 84a7bfbb..2347925c 100644 --- a/make/kmodule.mk +++ b/make/kmodule.mk @@ -10,5 +10,10 @@ ifndef PLATFORM $(error $$PLATFORM must be set) endif +ifndef ARCH +$(error $$ARCH must be set) +endif + + modules: - $(ONL)/tools/scripts/kmodbuild.sh "$(KERNELS)" "$(KMODULES)" $(PLATFORM) + ARCH=$(ARCH) $(ONL)/tools/scripts/kmodbuild.sh "$(KERNELS)" "$(KMODULES)" $(PLATFORM)