2008-11-27 Øyvind Harboe <oyvind.harboe@zylin.com>
[nios2ecos.git] / packages / hal / nios2 / arch / current / gtf / ECOS_GTF_DIR.gtf
blobc835b5887e1f8f5e7ccac39666dea6c9a856db98
1 <?xml version="1.0" encoding="ISO-8859-1"?>
3 <!--=========================================================================##
4 * ECOS_GTF_DIR.gtf
5 *=============================================================================
6 *###ECOSGPLCOPYRIGHTBEGIN####
7 *
8 * This file is part of eCos, the Embedded Configurable Operating System.
10 * eCos is free software; you can redistribute it and/or modify it under
11 * the terms of the GNU General Public License as published by the Free
12 * Software Foundation; either version 2 or (at your option) any later version.
14 * eCos is distributed in the hope that it will be useful, but WITHOUT ANY
15 * WARRANTY; without even the implied warranty of MERCHANTABILITY or
16 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
17 * for more details.
19 * You should have received a copy of the GNU General Public License along
20 * with eCos; if not, write to the Free Software Foundation, Inc.,
21 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
23 * As a special exception, if other files instantiate templates or use macros
24 * or inline functions from this file, or you compile this file and link it
25 * with other works to produce a work based on this file, this file does not
26 * by itself cause the resulting work to be covered by the GNU General Public
27 * License. However the source code for this file must still be made available
28 * in accordance with section (3) of the GNU General Public License.
30 * This exception does not invalidate any other reasons why a work based on
31 * this file might be covered by the GNU General Public License.
33 *###ECOSGPLCOPYRIGHTEND####
34 *==========================================================================-->
36 <!-- This GTF script is used to redirect the variable GTF_DIR to point
37 to the gtf directory of the Nios2 kit. The original value can be
38 obtained using the variable ECOS_GTF_DIR. This allows us to reuse
39 some of the scripts supplied with the Nios II kit. -->
41 <generate_set>
43 <!-- only set ECOS_GTF_DIR (and reset GTF_DIR) if it hasn't
44 already been set
45 (since this GTF may be included multiple times) -->
46 <if true="!( %ECOS_GTF_DIR% )">
48 <set_variable variable="ECOS_GTF_DIR" to="%GTF_DIR%"/>
49 <set_variable variable="GTF_DIR" to="%SOPC_KIT_NIOS2_DIR%/bin/gtf"/>
51 </if>
53 </generate_set>