os/boardsupport/haitest/bspsvs/suite/bsp/uart/group/uartscript.mk
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     1 #
     2 # Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
     3 # All rights reserved.
     4 # This component and the accompanying materials are made available
     5 # under the terms of "Eclipse Public License v1.0"
     6 # which accompanies this distribution, and is available
     7 # at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 #
     9 # Initial Contributors:
    10 # Nokia Corporation - initial contribution.
    11 #
    12 # Contributors:
    13 #
    14 # Description:
    15 #
    16 
    17 # To ensure that EPOCROOT always ends with a forward slash
    18 TMPROOT:=$(subst \,/,$(EPOCROOT))
    19 EPOCROOT2:=$(patsubst %/,%,$(TMPROOT))/
    20 
    21 include $(EPOCROOT2)epoc32/tools/shell/$(notdir $(basename $(SHELL))).mk
    22 
    23 UART_FOLDER=$(EPOCROOT)epoc32\release\$(PLATFORM)\$(CFG)\z\base\serial
    24 
    25 SCRIPT_PORT0=$(UART_FOLDER)\base-bsp-serial-driver-PORT0.script
    26 INI_PORT0=$(UART_FOLDER)\base-bsp-serial-driver-PORT0.ini
    27 
    28 SCRIPT_PORT0_2400=$(UART_FOLDER)\base-bsp-serial-driver-PORT0-2400.script
    29 INI_PORT0_2400=$(UART_FOLDER)\base-bsp-serial-driver-PORT0-2400.ini
    30 
    31 SCRIPT_PORT0_4800=$(UART_FOLDER)\base-bsp-serial-driver-PORT0-4800.script
    32 INI_PORT0_4800=$(UART_FOLDER)\base-bsp-serial-driver-PORT0-4800.ini
    33 
    34 SCRIPT_PORT0_9600=$(UART_FOLDER)\base-bsp-serial-driver-PORT0-9600.script
    35 INI_PORT0_9600=$(UART_FOLDER)\base-bsp-serial-driver-PORT0-9600.ini
    36 
    37 SCRIPT_PORT0_115200=$(UART_FOLDER)\base-bsp-serial-driver-PORT0-115200.script
    38 INI_PORT0_115200=$(UART_FOLDER)\base-bsp-serial-driver-PORT0-115200.ini
    39 
    40 SCRIPT_STRESS_PORT0_2400=$(UART_FOLDER)\base-bsp-serial-driver-stress-PORT0-2400.script
    41 INI_STRESS_PORT0_2400=$(UART_FOLDER)\base-bsp-serial-driver-stress-PORT0-2400.ini
    42 
    43 SCRIPT_STRESS_PORT0_4800=$(UART_FOLDER)\base-bsp-serial-driver-stress-PORT0-4800.script
    44 INI_STRESS_PORT0_4800=$(UART_FOLDER)\base-bsp-serial-driver-stress-PORT0-4800.ini
    45 
    46 SCRIPT_STRESS_PORT0_9600=$(UART_FOLDER)\base-bsp-serial-driver-stress-PORT0-9600.script
    47 INI_STRESS_PORT0_9600=$(UART_FOLDER)\base-bsp-serial-driver-stress-PORT0-9600.ini
    48 
    49 SCRIPT_STRESS_PORT0_115200=$(UART_FOLDER)\base-bsp-serial-driver-stress-PORT0-115200.script
    50 INI_STRESS_PORT0_115200=$(UART_FOLDER)\base-bsp-serial-driver-stress-PORT0-115200.ini
    51 
    52 $(UART_FOLDER) :
    53 	@perl -S emkdir.pl "$(UART_FOLDER)"
    54 
    55 $(SCRIPT_PORT0)			: ..\scripts\base-bsp-serial-driver-port.script
    56 	perl uartscript.pl --in="$?" --out="$@" --port=0 --baud=9600
    57 	@echo $@
    58 
    59 $(INI_PORT0)			: ..\testdata\base-bsp-serial-driver-port.ini
    60 	perl uartscript.pl --in="$?" --out="$@" --port=0 --baud=9600
    61 	@echo $@
    62 
    63 $(SCRIPT_PORT0_2400)	: ..\scripts\base-bsp-serial-driver-baud.script
    64 	perl uartscript.pl --in="$?" --out="$@" --port=0 --baud=2400
    65 	@echo $@
    66 
    67 $(INI_PORT0_2400)		: ..\testdata\base-bsp-serial-driver-baud.ini
    68 	perl uartscript.pl --in="$?" --out="$@" --port=0 --baud=2400
    69 	@echo $@
    70 
    71 $(SCRIPT_PORT0_4800)	: ..\scripts\base-bsp-serial-driver-baud.script
    72 	perl uartscript.pl --in="$?" --out="$@" --port=0 --baud=4800
    73 	@echo $@
    74 
    75 $(INI_PORT0_4800)		: ..\testdata\base-bsp-serial-driver-baud.ini
    76 	perl uartscript.pl --in="$?" --out="$@" --port=0 --baud=4800
    77 	@echo $@
    78 
    79 $(SCRIPT_PORT0_9600)	: ..\scripts\base-bsp-serial-driver-baud.script
    80 	perl uartscript.pl --in="$?" --out="$@" --port=0 --baud=9600
    81 	@echo $@
    82 
    83 $(INI_PORT0_9600)		: ..\testdata\base-bsp-serial-driver-baud.ini
    84 	perl uartscript.pl --in="$?" --out="$@" --port=0 --baud=9600
    85 	@echo $@
    86 
    87 $(SCRIPT_PORT0_115200)	: ..\scripts\base-bsp-serial-driver-baud.script
    88 	perl uartscript.pl --in="$?" --out="$@" --port=0 --baud=115200
    89 	@echo $@
    90 
    91 $(INI_PORT0_115200)		: ..\testdata\base-bsp-serial-driver-baud.ini
    92 	perl uartscript.pl --in="$?" --out="$@" --port=0 --baud=115200
    93 	@echo $@
    94 
    95 $(SCRIPT_STRESS_PORT0_2400)	: ..\scripts\base-bsp-serial-driver-stress.script
    96 	perl uartscript.pl --in="$?" --out="$@" --port=0 --baud=2400
    97 	@echo $@
    98 
    99 $(INI_STRESS_PORT0_2400)		: ..\testdata\base-bsp-serial-driver-stress.ini
   100 	perl uartscript.pl --in="$?" --out="$@" --port=0 --baud=2400
   101 	@echo $@
   102 
   103 $(SCRIPT_STRESS_PORT0_4800)	: ..\scripts\base-bsp-serial-driver-stress.script
   104 	perl uartscript.pl --in="$?" --out="$@" --port=0 --baud=4800
   105 	@echo $@
   106 
   107 $(INI_STRESS_PORT0_4800)		: ..\testdata\base-bsp-serial-driver-stress.ini
   108 	perl uartscript.pl --in="$?" --out="$@" --port=0 --baud=4800
   109 	@echo $@
   110 
   111 $(SCRIPT_STRESS_PORT0_9600)	: ..\scripts\base-bsp-serial-driver-stress.script
   112 	perl uartscript.pl --in="$?" --out="$@" --port=0 --baud=9600
   113 	@echo $@
   114 
   115 $(INI_STRESS_PORT0_9600)		: ..\testdata\base-bsp-serial-driver-stress.ini
   116 	perl uartscript.pl --in="$?" --out="$@" --port=0 --baud=9600
   117 	@echo $@
   118 
   119 $(SCRIPT_STRESS_PORT0_115200)	: ..\scripts\base-bsp-serial-driver-stress.script
   120 	perl uartscript.pl --in="$?" --out="$@" --port=0 --baud=115200
   121 	@echo $@
   122 
   123 $(INI_STRESS_PORT0_115200)		: ..\testdata\base-bsp-serial-driver-stress.ini
   124 	perl uartscript.pl --in="$?" --out="$@" --port=0 --baud=115200
   125 	@echo $@
   126 
   127 BLD				:	$(UART_FOLDER) \
   128 					$(SCRIPT_PORT0) $(INI_PORT0) \
   129 					$(SCRIPT_PORT0_2400) $(INI_PORT0_2400) \
   130 					$(SCRIPT_PORT0_4800) $(INI_PORT0_4800) \
   131 					$(SCRIPT_PORT0_9600) $(INI_PORT0_9600) \
   132 					$(SCRIPT_PORT0_115200) $(INI_PORT0_115200) \
   133 					$(SCRIPT_STRESS_PORT0_2400) $(INI_STRESS_PORT0_2400) \
   134 					$(SCRIPT_STRESS_PORT0_4800) $(INI_STRESS_PORT0_4800) \
   135 					$(SCRIPT_STRESS_PORT0_9600) $(INI_STRESS_PORT0_9600) \
   136 					$(SCRIPT_STRESS_PORT0_115200) $(INI_STRESS_PORT0_115200)
   137 
   138 CLEAN			:
   139 	-$(ERASE) $(SCRIPT_PORT0)
   140 	-$(ERASE) $(INI_PORT0)
   141 	-$(ERASE) $(SCRIPT_PORT0_2400)
   142 	-$(ERASE) $(INI_PORT0_2400)
   143 	-$(ERASE) $(SCRIPT_PORT0_4800)
   144 	-$(ERASE) $(INI_PORT0_4800)
   145 	-$(ERASE) $(SCRIPT_PORT0_9600)
   146 	-$(ERASE) $(INI_PORT0_9600)
   147 	-$(ERASE) $(SCRIPT_PORT0_115200)
   148 	-$(ERASE) $(INI_PORT0_115200)
   149 	-$(ERASE) $(SCRIPT_STRESS_PORT0_2400)
   150 	-$(ERASE) $(INI_STRESS_PORT0_2400)
   151 	-$(ERASE) $(SCRIPT_STRESS_PORT0_4800)
   152 	-$(ERASE) $(INI_STRESS_PORT0_4800)
   153 	-$(ERASE) $(SCRIPT_STRESS_PORT0_9600)
   154 	-$(ERASE) $(INI_STRESS_PORT0_9600)
   155 	-$(ERASE) $(SCRIPT_STRESS_PORT0_115200)
   156 	-$(ERASE) $(INI_STRESS_PORT0_115200)
   157 
   158 CLEANLIB		:
   159 
   160 FINAL			:
   161 
   162 FREEZE			:
   163 
   164 LIB				:
   165 
   166 MAKMAKE			:
   167 
   168 RELEASABLES		:
   169 	@echo $(SCRIPT_PORT0)
   170 	@echo $(INI_PORT0)
   171 	@echo $(SCRIPT_PORT0_2400)
   172 	@echo $(INI_PORT0_2400)
   173 	@echo $(SCRIPT_PORT0_4800)
   174 	@echo $(INI_PORT0_4800)
   175 	@echo $(SCRIPT_PORT0_9600)
   176 	@echo $(INI_PORT0_9600)
   177 	@echo $(SCRIPT_PORT0_115200)
   178 	@echo $(INI_PORT0_115200)
   179 	@echo $(SCRIPT_STRESS_PORT0_2400)
   180 	@echo $(INI_STRESS_PORT0_2400)
   181 	@echo $(SCRIPT_STRESS_PORT0_4800)
   182 	@echo $(INI_STRESS_PORT0_4800)
   183 	@echo $(SCRIPT_STRESS_PORT0_9600)
   184 	@echo $(INI_STRESS_PORT0_9600)
   185 	@echo $(SCRIPT_STRESS_PORT0_115200)
   186 	@echo $(INI_STRESS_PORT0_115200)
   187 
   188 RESOURCE		:
   189 
   190 SAVESPACE		: