Don't #error if no CPU is defined but we're not compiling the kernel.

This commit is contained in:
Olivier Houchard 2006-06-02 09:39:06 +00:00
parent 809f920d59
commit b2adc703fd

View File

@ -72,7 +72,7 @@
#endif
#define ARM_NARCH (ARM_ARCH_4 + ARM_ARCH_5)
#if ARM_NARCH == 0 && !defined(KLD_MODULE)
#if ARM_NARCH == 0 && !defined(KLD_MODULE) && defined(_KERNEL)
#error ARM_NARCH is 0
#endif
@ -120,7 +120,7 @@
#define ARM_NMMUS (ARM_MMU_MEMC + ARM_MMU_GENERIC + \
ARM_MMU_SA1 + ARM_MMU_XSCALE)
#if ARM_NMMUS == 0 && !defined(KLD_MODULE)
#if ARM_NMMUS == 0 && !defined(KLD_MODULE) && defined(_KERNEL)
#error ARM_NMMUS is 0
#endif