os/boardsupport/haitest/bspsvs/suite/bsp/uart/group/uartscript.mk
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/boardsupport/haitest/bspsvs/suite/bsp/uart/group/uartscript.mk	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,190 @@
     1.4 +#
     1.5 +# Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.6 +# All rights reserved.
     1.7 +# This component and the accompanying materials are made available
     1.8 +# under the terms of "Eclipse Public License v1.0"
     1.9 +# which accompanies this distribution, and is available
    1.10 +# at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.11 +#
    1.12 +# Initial Contributors:
    1.13 +# Nokia Corporation - initial contribution.
    1.14 +#
    1.15 +# Contributors:
    1.16 +#
    1.17 +# Description:
    1.18 +#
    1.19 +
    1.20 +# To ensure that EPOCROOT always ends with a forward slash
    1.21 +TMPROOT:=$(subst \,/,$(EPOCROOT))
    1.22 +EPOCROOT2:=$(patsubst %/,%,$(TMPROOT))/
    1.23 +
    1.24 +include $(EPOCROOT2)epoc32/tools/shell/$(notdir $(basename $(SHELL))).mk
    1.25 +
    1.26 +UART_FOLDER=$(EPOCROOT)epoc32\release\$(PLATFORM)\$(CFG)\z\base\serial
    1.27 +
    1.28 +SCRIPT_PORT0=$(UART_FOLDER)\base-bsp-serial-driver-PORT0.script
    1.29 +INI_PORT0=$(UART_FOLDER)\base-bsp-serial-driver-PORT0.ini
    1.30 +
    1.31 +SCRIPT_PORT0_2400=$(UART_FOLDER)\base-bsp-serial-driver-PORT0-2400.script
    1.32 +INI_PORT0_2400=$(UART_FOLDER)\base-bsp-serial-driver-PORT0-2400.ini
    1.33 +
    1.34 +SCRIPT_PORT0_4800=$(UART_FOLDER)\base-bsp-serial-driver-PORT0-4800.script
    1.35 +INI_PORT0_4800=$(UART_FOLDER)\base-bsp-serial-driver-PORT0-4800.ini
    1.36 +
    1.37 +SCRIPT_PORT0_9600=$(UART_FOLDER)\base-bsp-serial-driver-PORT0-9600.script
    1.38 +INI_PORT0_9600=$(UART_FOLDER)\base-bsp-serial-driver-PORT0-9600.ini
    1.39 +
    1.40 +SCRIPT_PORT0_115200=$(UART_FOLDER)\base-bsp-serial-driver-PORT0-115200.script
    1.41 +INI_PORT0_115200=$(UART_FOLDER)\base-bsp-serial-driver-PORT0-115200.ini
    1.42 +
    1.43 +SCRIPT_STRESS_PORT0_2400=$(UART_FOLDER)\base-bsp-serial-driver-stress-PORT0-2400.script
    1.44 +INI_STRESS_PORT0_2400=$(UART_FOLDER)\base-bsp-serial-driver-stress-PORT0-2400.ini
    1.45 +
    1.46 +SCRIPT_STRESS_PORT0_4800=$(UART_FOLDER)\base-bsp-serial-driver-stress-PORT0-4800.script
    1.47 +INI_STRESS_PORT0_4800=$(UART_FOLDER)\base-bsp-serial-driver-stress-PORT0-4800.ini
    1.48 +
    1.49 +SCRIPT_STRESS_PORT0_9600=$(UART_FOLDER)\base-bsp-serial-driver-stress-PORT0-9600.script
    1.50 +INI_STRESS_PORT0_9600=$(UART_FOLDER)\base-bsp-serial-driver-stress-PORT0-9600.ini
    1.51 +
    1.52 +SCRIPT_STRESS_PORT0_115200=$(UART_FOLDER)\base-bsp-serial-driver-stress-PORT0-115200.script
    1.53 +INI_STRESS_PORT0_115200=$(UART_FOLDER)\base-bsp-serial-driver-stress-PORT0-115200.ini
    1.54 +
    1.55 +$(UART_FOLDER) :
    1.56 +	@perl -S emkdir.pl "$(UART_FOLDER)"
    1.57 +
    1.58 +$(SCRIPT_PORT0)			: ..\scripts\base-bsp-serial-driver-port.script
    1.59 +	perl uartscript.pl --in="$?" --out="$@" --port=0 --baud=9600
    1.60 +	@echo $@
    1.61 +
    1.62 +$(INI_PORT0)			: ..\testdata\base-bsp-serial-driver-port.ini
    1.63 +	perl uartscript.pl --in="$?" --out="$@" --port=0 --baud=9600
    1.64 +	@echo $@
    1.65 +
    1.66 +$(SCRIPT_PORT0_2400)	: ..\scripts\base-bsp-serial-driver-baud.script
    1.67 +	perl uartscript.pl --in="$?" --out="$@" --port=0 --baud=2400
    1.68 +	@echo $@
    1.69 +
    1.70 +$(INI_PORT0_2400)		: ..\testdata\base-bsp-serial-driver-baud.ini
    1.71 +	perl uartscript.pl --in="$?" --out="$@" --port=0 --baud=2400
    1.72 +	@echo $@
    1.73 +
    1.74 +$(SCRIPT_PORT0_4800)	: ..\scripts\base-bsp-serial-driver-baud.script
    1.75 +	perl uartscript.pl --in="$?" --out="$@" --port=0 --baud=4800
    1.76 +	@echo $@
    1.77 +
    1.78 +$(INI_PORT0_4800)		: ..\testdata\base-bsp-serial-driver-baud.ini
    1.79 +	perl uartscript.pl --in="$?" --out="$@" --port=0 --baud=4800
    1.80 +	@echo $@
    1.81 +
    1.82 +$(SCRIPT_PORT0_9600)	: ..\scripts\base-bsp-serial-driver-baud.script
    1.83 +	perl uartscript.pl --in="$?" --out="$@" --port=0 --baud=9600
    1.84 +	@echo $@
    1.85 +
    1.86 +$(INI_PORT0_9600)		: ..\testdata\base-bsp-serial-driver-baud.ini
    1.87 +	perl uartscript.pl --in="$?" --out="$@" --port=0 --baud=9600
    1.88 +	@echo $@
    1.89 +
    1.90 +$(SCRIPT_PORT0_115200)	: ..\scripts\base-bsp-serial-driver-baud.script
    1.91 +	perl uartscript.pl --in="$?" --out="$@" --port=0 --baud=115200
    1.92 +	@echo $@
    1.93 +
    1.94 +$(INI_PORT0_115200)		: ..\testdata\base-bsp-serial-driver-baud.ini
    1.95 +	perl uartscript.pl --in="$?" --out="$@" --port=0 --baud=115200
    1.96 +	@echo $@
    1.97 +
    1.98 +$(SCRIPT_STRESS_PORT0_2400)	: ..\scripts\base-bsp-serial-driver-stress.script
    1.99 +	perl uartscript.pl --in="$?" --out="$@" --port=0 --baud=2400
   1.100 +	@echo $@
   1.101 +
   1.102 +$(INI_STRESS_PORT0_2400)		: ..\testdata\base-bsp-serial-driver-stress.ini
   1.103 +	perl uartscript.pl --in="$?" --out="$@" --port=0 --baud=2400
   1.104 +	@echo $@
   1.105 +
   1.106 +$(SCRIPT_STRESS_PORT0_4800)	: ..\scripts\base-bsp-serial-driver-stress.script
   1.107 +	perl uartscript.pl --in="$?" --out="$@" --port=0 --baud=4800
   1.108 +	@echo $@
   1.109 +
   1.110 +$(INI_STRESS_PORT0_4800)		: ..\testdata\base-bsp-serial-driver-stress.ini
   1.111 +	perl uartscript.pl --in="$?" --out="$@" --port=0 --baud=4800
   1.112 +	@echo $@
   1.113 +
   1.114 +$(SCRIPT_STRESS_PORT0_9600)	: ..\scripts\base-bsp-serial-driver-stress.script
   1.115 +	perl uartscript.pl --in="$?" --out="$@" --port=0 --baud=9600
   1.116 +	@echo $@
   1.117 +
   1.118 +$(INI_STRESS_PORT0_9600)		: ..\testdata\base-bsp-serial-driver-stress.ini
   1.119 +	perl uartscript.pl --in="$?" --out="$@" --port=0 --baud=9600
   1.120 +	@echo $@
   1.121 +
   1.122 +$(SCRIPT_STRESS_PORT0_115200)	: ..\scripts\base-bsp-serial-driver-stress.script
   1.123 +	perl uartscript.pl --in="$?" --out="$@" --port=0 --baud=115200
   1.124 +	@echo $@
   1.125 +
   1.126 +$(INI_STRESS_PORT0_115200)		: ..\testdata\base-bsp-serial-driver-stress.ini
   1.127 +	perl uartscript.pl --in="$?" --out="$@" --port=0 --baud=115200
   1.128 +	@echo $@
   1.129 +
   1.130 +BLD				:	$(UART_FOLDER) \
   1.131 +					$(SCRIPT_PORT0) $(INI_PORT0) \
   1.132 +					$(SCRIPT_PORT0_2400) $(INI_PORT0_2400) \
   1.133 +					$(SCRIPT_PORT0_4800) $(INI_PORT0_4800) \
   1.134 +					$(SCRIPT_PORT0_9600) $(INI_PORT0_9600) \
   1.135 +					$(SCRIPT_PORT0_115200) $(INI_PORT0_115200) \
   1.136 +					$(SCRIPT_STRESS_PORT0_2400) $(INI_STRESS_PORT0_2400) \
   1.137 +					$(SCRIPT_STRESS_PORT0_4800) $(INI_STRESS_PORT0_4800) \
   1.138 +					$(SCRIPT_STRESS_PORT0_9600) $(INI_STRESS_PORT0_9600) \
   1.139 +					$(SCRIPT_STRESS_PORT0_115200) $(INI_STRESS_PORT0_115200)
   1.140 +
   1.141 +CLEAN			:
   1.142 +	-$(ERASE) $(SCRIPT_PORT0)
   1.143 +	-$(ERASE) $(INI_PORT0)
   1.144 +	-$(ERASE) $(SCRIPT_PORT0_2400)
   1.145 +	-$(ERASE) $(INI_PORT0_2400)
   1.146 +	-$(ERASE) $(SCRIPT_PORT0_4800)
   1.147 +	-$(ERASE) $(INI_PORT0_4800)
   1.148 +	-$(ERASE) $(SCRIPT_PORT0_9600)
   1.149 +	-$(ERASE) $(INI_PORT0_9600)
   1.150 +	-$(ERASE) $(SCRIPT_PORT0_115200)
   1.151 +	-$(ERASE) $(INI_PORT0_115200)
   1.152 +	-$(ERASE) $(SCRIPT_STRESS_PORT0_2400)
   1.153 +	-$(ERASE) $(INI_STRESS_PORT0_2400)
   1.154 +	-$(ERASE) $(SCRIPT_STRESS_PORT0_4800)
   1.155 +	-$(ERASE) $(INI_STRESS_PORT0_4800)
   1.156 +	-$(ERASE) $(SCRIPT_STRESS_PORT0_9600)
   1.157 +	-$(ERASE) $(INI_STRESS_PORT0_9600)
   1.158 +	-$(ERASE) $(SCRIPT_STRESS_PORT0_115200)
   1.159 +	-$(ERASE) $(INI_STRESS_PORT0_115200)
   1.160 +
   1.161 +CLEANLIB		:
   1.162 +
   1.163 +FINAL			:
   1.164 +
   1.165 +FREEZE			:
   1.166 +
   1.167 +LIB				:
   1.168 +
   1.169 +MAKMAKE			:
   1.170 +
   1.171 +RELEASABLES		:
   1.172 +	@echo $(SCRIPT_PORT0)
   1.173 +	@echo $(INI_PORT0)
   1.174 +	@echo $(SCRIPT_PORT0_2400)
   1.175 +	@echo $(INI_PORT0_2400)
   1.176 +	@echo $(SCRIPT_PORT0_4800)
   1.177 +	@echo $(INI_PORT0_4800)
   1.178 +	@echo $(SCRIPT_PORT0_9600)
   1.179 +	@echo $(INI_PORT0_9600)
   1.180 +	@echo $(SCRIPT_PORT0_115200)
   1.181 +	@echo $(INI_PORT0_115200)
   1.182 +	@echo $(SCRIPT_STRESS_PORT0_2400)
   1.183 +	@echo $(INI_STRESS_PORT0_2400)
   1.184 +	@echo $(SCRIPT_STRESS_PORT0_4800)
   1.185 +	@echo $(INI_STRESS_PORT0_4800)
   1.186 +	@echo $(SCRIPT_STRESS_PORT0_9600)
   1.187 +	@echo $(INI_STRESS_PORT0_9600)
   1.188 +	@echo $(SCRIPT_STRESS_PORT0_115200)
   1.189 +	@echo $(INI_STRESS_PORT0_115200)
   1.190 +
   1.191 +RESOURCE		:
   1.192 +
   1.193 +SAVESPACE		: