From 174862f7bbe6e86b700b32335962130383967180 Mon Sep 17 00:00:00 2001 From: cognet Date: Thu, 4 Nov 2004 19:16:31 +0000 Subject: Don't barf if no CPU type is defined while compiling kernel modules. --- sys/arm/include/cpuconf.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/arm/include') diff --git a/sys/arm/include/cpuconf.h b/sys/arm/include/cpuconf.h index 1b7d81b..298c985 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 -- cgit v1.1