summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mk/vars.mk9
1 files changed, 7 insertions, 2 deletions
diff --git a/mk/vars.mk b/mk/vars.mk
index 1f4206b29..eca2c2fd3 100644
--- a/mk/vars.mk
+++ b/mk/vars.mk
@@ -316,15 +316,20 @@ SED:= PATH='${HOST_PATH}' sed -i -e
XZ:= PATH='${HOST_PATH}' xz
CPIO:= PATH='${HOST_PATH}' cpio
LINUX_DIR:= $(BUILD_DIR)/linux
-KERNEL_MODULE_FLAGS:= ARCH=${ADK_TARGET_ARCH} \
+KERNEL_MODULE_FLAGS:= ARCH=${ADK_TARGET_KARCH} \
PREFIX=/usr \
KERNEL_PATH=${LINUX_DIR} \
KERNELDIR=${LINUX_DIR} \
KERNEL_DIR=${LINUX_DIR} \
CROSS_COMPILE="${TARGET_CROSS}" \
- CFLAGS_MODULE="-fhonour-copts" \
V=1
+ifeq ($(ADK_BUILD_COMPILER_GCC),y)
+ifeq ($(ADK_DISABLE_HONOUR_CFLAGS),)
+KERNEL_MODULE_FLAGS+= CFLAGS_MODULE="-fhonour-copts"
+endif
+endif
+
COMMON_ENV= CONFIG_SHELL='$(strip ${SHELL})' \
AUTOM4TE='${STAGING_HOST_DIR}/usr/bin/autom4te' \
M4='${STAGING_HOST_DIR}/usr/bin/m4' \