Make nightly build test works.
[bertos.git] / bertos / cpu / avr / hw / switch_avr.S
index e6d0edfa4875ed6010e849b161b8b0dfddcfc16f..8de975fce005ae34c489be3d1bc6310921e41756 100644 (file)
@@ -1,2 +1,6 @@
-#warning This file is deprecated, use switch_ctx_avr.S
-#include "switch_ctx_avr.S"
+#include <cfg/cfg_arch.h>
+
+#if !(ARCH & ARCH_NIGHTTEST)
+       #warning This file is deprecated, use switch_ctx_avr.S
+       #include "switch_ctx_avr.S"
+#endif