Don't barf if no CPU type is defined while compiling kernel modules.

This commit is contained in:
Olivier Houchard 2004-11-04 19:16:31 +00:00
parent 3ce6572f9f
commit dba13dd1d3

View File

@ -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