From 55df603a996e906d05db873448cb624c18a7a2e5 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Fri, 31 Mar 2017 05:16:27 +0200 Subject: kernel modules: handle missing -fhonour-copts --- mk/vars.mk | 9 +++++++-- 1 file 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' \ -- cgit v1.2.3