diff --git a/sys/arm/include/cpuconf.h b/sys/arm/include/cpuconf.h index 1b7d81b8f2ba..298c98539291 100644 --- a/sys/arm/include/cpuconf.h +++ b/sys/arm/include/cpuconf.h @@ -103,7 +103,7 @@ #endif #define ARM_NARCH (ARM_ARCH_2 + ARM_ARCH_3 + ARM_ARCH_4 + ARM_ARCH_5) -#if ARM_NARCH == 0 +#if ARM_NARCH == 0 && !defined(_KLD_MODULE) #error ARM_NARCH is 0 #endif @@ -151,7 +151,7 @@ #define ARM_NMMUS (ARM_MMU_MEMC + ARM_MMU_GENERIC + \ ARM_MMU_SA1 + ARM_MMU_XSCALE) -#if ARM_NMMUS == 0 +#if ARM_NMMUS == 0 && !defined(KLD_MODULE) #error ARM_NMMUS is 0 #endif