1 |
27 |
unneback |
# ====================================================================
|
2 |
|
|
#
|
3 |
|
|
# hal_v85x.cdl
|
4 |
|
|
#
|
5 |
|
|
# NEC architectural HAL package configuration data
|
6 |
|
|
#
|
7 |
|
|
# ====================================================================
|
8 |
|
|
#####ECOSGPLCOPYRIGHTBEGIN####
|
9 |
|
|
## -------------------------------------------
|
10 |
|
|
## This file is part of eCos, the Embedded Configurable Operating System.
|
11 |
|
|
## Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
|
12 |
|
|
##
|
13 |
|
|
## eCos is free software; you can redistribute it and/or modify it under
|
14 |
|
|
## the terms of the GNU General Public License as published by the Free
|
15 |
|
|
## Software Foundation; either version 2 or (at your option) any later version.
|
16 |
|
|
##
|
17 |
|
|
## eCos is distributed in the hope that it will be useful, but WITHOUT ANY
|
18 |
|
|
## WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
19 |
|
|
## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
20 |
|
|
## for more details.
|
21 |
|
|
##
|
22 |
|
|
## You should have received a copy of the GNU General Public License along
|
23 |
|
|
## with eCos; if not, write to the Free Software Foundation, Inc.,
|
24 |
|
|
## 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
|
25 |
|
|
##
|
26 |
|
|
## As a special exception, if other files instantiate templates or use macros
|
27 |
|
|
## or inline functions from this file, or you compile this file and link it
|
28 |
|
|
## with other works to produce a work based on this file, this file does not
|
29 |
|
|
## by itself cause the resulting work to be covered by the GNU General Public
|
30 |
|
|
## License. However the source code for this file must still be made available
|
31 |
|
|
## in accordance with section (3) of the GNU General Public License.
|
32 |
|
|
##
|
33 |
|
|
## This exception does not invalidate any other reasons why a work based on
|
34 |
|
|
## this file might be covered by the GNU General Public License.
|
35 |
|
|
##
|
36 |
|
|
## Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
|
37 |
|
|
## at http://sources.redhat.com/ecos/ecos-license/
|
38 |
|
|
## -------------------------------------------
|
39 |
|
|
#####ECOSGPLCOPYRIGHTEND####
|
40 |
|
|
# ====================================================================
|
41 |
|
|
######DESCRIPTIONBEGIN####
|
42 |
|
|
#
|
43 |
|
|
# Author(s): gthomas
|
44 |
|
|
# Contributors: jlarmour
|
45 |
|
|
# Date: 2001-03-21
|
46 |
|
|
#
|
47 |
|
|
#####DESCRIPTIONEND####
|
48 |
|
|
#
|
49 |
|
|
# ====================================================================
|
50 |
|
|
|
51 |
|
|
cdl_package CYGPKG_HAL_V85X {
|
52 |
|
|
display "NEC V85x architecture"
|
53 |
|
|
parent CYGPKG_HAL
|
54 |
|
|
hardware
|
55 |
|
|
include_dir cyg/hal
|
56 |
|
|
define_header hal_v85x.h
|
57 |
|
|
description "
|
58 |
|
|
The NEC V85x architecture HAL package provides generic support
|
59 |
|
|
for this processor architecture. It is also necessary to
|
60 |
|
|
select a CPU variant and a specific target platform HAL
|
61 |
|
|
package."
|
62 |
|
|
|
63 |
|
|
cdl_interface CYGINT_HAL_V85X_VARIANT {
|
64 |
|
|
display "Number of variant implementations in this configuration"
|
65 |
|
|
no_define
|
66 |
|
|
requires 1 == CYGINT_HAL_V85X_VARIANT
|
67 |
|
|
}
|
68 |
|
|
|
69 |
|
|
compile hal_misc.c
|
70 |
|
|
|
71 |
|
|
make -priority 1 {
|
72 |
|
|
/include/cyg/hal/nec_offsets.inc : /src/hal_mk_defs.c
|
73 |
|
|
$(CC) $(CFLAGS) $(INCLUDE_PATH) -Wp,-MD,nec_offsets.tmp -o hal_mk_defs.tmp -S $<
|
74 |
|
|
fgrep .equ hal_mk_defs.tmp | sed s/#// > $@
|
75 |
|
|
@echo $@ ": \\" > $(notdir $@).deps
|
76 |
|
|
@tail +2 nec_offsets.tmp >> $(notdir $@).deps
|
77 |
|
|
@echo >> $(notdir $@).deps
|
78 |
|
|
@rm nec_offsets.tmp hal_mk_defs.tmp
|
79 |
|
|
}
|
80 |
|
|
|
81 |
|
|
make {
|
82 |
|
|
/lib/vectors.o : /src/vectors.S
|
83 |
|
|
$(CC) -Wp,-MD,vectors.tmp $(INCLUDE_PATH) $(CFLAGS) -c -o $@ $<
|
84 |
|
|
@echo $@ ": \\" > $(notdir $@).deps
|
85 |
|
|
@tail +2 vectors.tmp >> $(notdir $@).deps
|
86 |
|
|
@echo >> $(notdir $@).deps
|
87 |
|
|
@rm vectors.tmp
|
88 |
|
|
}
|
89 |
|
|
|
90 |
|
|
cdl_option CYGSEM_HAL_V85X_INLINE_INTERRUPT_FUNCTIONS {
|
91 |
|
|
display "In-line interrupt functions"
|
92 |
|
|
flavor bool
|
93 |
|
|
default_value 1
|
94 |
|
|
description "
|
95 |
|
|
This option allows for the HAL interrupt functions,
|
96 |
|
|
e.g. HAL_ENABLE_INTERRUPTS() to be coded as either in-line
|
97 |
|
|
assembly code or real functions. The primary motivations
|
98 |
|
|
for the latter would be debugging, tracing, etc."
|
99 |
|
|
}
|
100 |
|
|
|
101 |
|
|
cdl_interface CYGINT_HAL_V85X_ICE_DEBUG {
|
102 |
|
|
display "Debugging via ICE support"
|
103 |
|
|
description "
|
104 |
|
|
This interface is enabled when the underlying variant or platform
|
105 |
|
|
supports ICE debugging."
|
106 |
|
|
}
|
107 |
|
|
}
|