From 5d374c633e69ae84bc8e02fc3bb3d0cbeded201e Mon Sep 17 00:00:00 2001 From: gdisirio Date: Mon, 30 Apr 2012 09:40:21 +0000 Subject: Fixed bug 3522301. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4151 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- test/coverage/Makefile | 7 +++++-- test/coverage/main.c | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'test/coverage') diff --git a/test/coverage/Makefile b/test/coverage/Makefile index 82dda4737..d19014202 100644 --- a/test/coverage/Makefile +++ b/test/coverage/Makefile @@ -35,6 +35,9 @@ DLIBDIR = # List all default libraries here DLIBS = -lws2_32 + +# Must be a directory in ${CHIBIOS}/os/hal/platforms +HOST_TYPE = Win32 # # End of default section @@ -60,7 +63,7 @@ UADEFS = CHIBIOS = ../.. include $(CHIBIOS)/boards/simulator/board.mk include ${CHIBIOS}/os/hal/hal.mk -include ${CHIBIOS}/os/hal/platforms/Win32/platform.mk +include ${CHIBIOS}/os/hal/platforms/$(HOST_TYPE)/platform.mk include ${CHIBIOS}/os/ports/GCC/SIMIA32/port.mk include ${CHIBIOS}/os/kernel/kernel.mk include ${CHIBIOS}/test/test.mk @@ -72,7 +75,7 @@ SRC = ${PORTSRC} \ ${HALSRC} \ ${PLATFORMSRC} \ $(BOARDSRC) \ - ${CHIBIOS}/os/hal/platforms/Win32/console.c \ + ${CHIBIOS}/os/hal/platforms/$(HOST_TYPE)/console.c \ main.c # List ASM source files here diff --git a/test/coverage/main.c b/test/coverage/main.c index 4d8249483..16c2702ec 100644 --- a/test/coverage/main.c +++ b/test/coverage/main.c @@ -20,6 +20,7 @@ #include #include +#include #include "ch.h" #include "hal.h" -- cgit v1.2.3