Mercurial > nand-ecoscentric
annotate packages/hal/arm/lpc2xxx/olpcl2294/current/cdl/hal_arm_lpc2xxx_olpcl2294.cdl @ 2729:74dbf4c3f2e1 after-copyright-change-20090129
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
| author | jlarmour |
|---|---|
| date | Thu, 29 Jan 2009 17:47:46 +0000 |
| parents | 60c9e53bbe45 |
| children | 82f1df43f011 |
| rev | line source |
|---|---|
| 2665 | 1 # ==================================================================== |
| 2 # | |
| 3 # hal_arm_lpc2xxx_olpcl2294.cdl | |
| 4 # | |
| 5 # ARM LPC2XXX OLPCL2294 development board package configuration | |
| 6 # data | |
| 7 # | |
| 8 # ==================================================================== | |
|
2729
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2665
diff
changeset
|
9 ## ####ECOSGPLCOPYRIGHTBEGIN#### |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2665
diff
changeset
|
10 ## ------------------------------------------- |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2665
diff
changeset
|
11 ## This file is part of eCos, the Embedded Configurable Operating System. |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2665
diff
changeset
|
12 ## Copyright (C) 1998, 1999, 2000, 2001, 2002, 2008 Free Software Foundation, Inc. |
| 2665 | 13 ## |
|
2729
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2665
diff
changeset
|
14 ## eCos is free software; you can redistribute it and/or modify it under |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2665
diff
changeset
|
15 ## the terms of the GNU General Public License as published by the Free |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2665
diff
changeset
|
16 ## Software Foundation; either version 2 or (at your option) any later |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2665
diff
changeset
|
17 ## version. |
| 2665 | 18 ## |
|
2729
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2665
diff
changeset
|
19 ## eCos is distributed in the hope that it will be useful, but WITHOUT |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2665
diff
changeset
|
20 ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2665
diff
changeset
|
21 ## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2665
diff
changeset
|
22 ## for more details. |
| 2665 | 23 ## |
|
2729
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2665
diff
changeset
|
24 ## You should have received a copy of the GNU General Public License |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2665
diff
changeset
|
25 ## along with eCos; if not, write to the Free Software Foundation, Inc., |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2665
diff
changeset
|
26 ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 2665 | 27 ## |
|
2729
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2665
diff
changeset
|
28 ## As a special exception, if other files instantiate templates or use |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2665
diff
changeset
|
29 ## macros or inline functions from this file, or you compile this file |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2665
diff
changeset
|
30 ## and link it with other works to produce a work based on this file, |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2665
diff
changeset
|
31 ## this file does not by itself cause the resulting work to be covered by |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2665
diff
changeset
|
32 ## the GNU General Public License. However the source code for this file |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2665
diff
changeset
|
33 ## must still be made available in accordance with section (3) of the GNU |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2665
diff
changeset
|
34 ## General Public License v2. |
| 2665 | 35 ## |
|
2729
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2665
diff
changeset
|
36 ## This exception does not invalidate any other reasons why a work based |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2665
diff
changeset
|
37 ## on this file might be covered by the GNU General Public License. |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2665
diff
changeset
|
38 ## ------------------------------------------- |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2665
diff
changeset
|
39 ## ####ECOSGPLCOPYRIGHTEND#### |
| 2665 | 40 # ==================================================================== |
| 41 ######DESCRIPTIONBEGIN#### | |
| 42 # | |
| 43 # Author(s): Sergei Gavrikov | |
| 44 # Contributors: Sergei Gavrikov | |
| 45 # Date: 2008-08-31 | |
| 46 # | |
| 47 #####DESCRIPTIONEND#### | |
| 48 # | |
| 49 # ==================================================================== | |
| 50 | |
| 51 cdl_package CYGPKG_HAL_ARM_LPC2XXX_OLPCL2294 { | |
| 52 display "Olimex LPC-L2294-1MB development board HAL" | |
| 53 parent CYGPKG_HAL_ARM_LPC2XXX | |
| 54 define_header hal_arm_lpc2xxx_olpcl2294.h | |
| 55 include_dir cyg/hal | |
| 56 hardware | |
| 57 description " | |
| 58 The OLPCL2294 HAL package provides the support needed to run | |
| 59 eCos on Olimex LPC-L2294-1MB development board." | |
| 60 | |
| 61 compile olpcl2294_misc.c | |
| 62 | |
| 63 requires { CYGHWR_HAL_ARM_LPC2XXX == "LPC2294" } | |
| 64 | |
| 65 define_proc { | |
| 66 puts $::cdl_system_header "#define CYGBLD_HAL_TARGET_H <pkgconf/hal_arm.h>" | |
| 67 puts $::cdl_system_header "#define CYGBLD_HAL_VARIANT_H <pkgconf/hal_arm_lpc2xxx.h>" | |
| 68 puts $::cdl_system_header "#define CYGBLD_HAL_PLATFORM_H <pkgconf/hal_arm_lpc2xxx_olpcl2294.h>" | |
| 69 puts $::cdl_header "#define HAL_PLATFORM_CPU \"ARM7TDMI-S\"" | |
| 70 puts $::cdl_header "#define HAL_PLATFORM_BOARD \"Olimex LPC-L2294 development board\"" | |
| 71 puts $::cdl_header "#define HAL_PLATFORM_EXTRA \"\"" | |
| 72 } | |
| 73 | |
| 74 cdl_component CYG_HAL_STARTUP { | |
| 75 display "Startup type" | |
| 76 flavor data | |
| 77 default_value {"RAM"} | |
| 78 legal_values {"RAM" "ROM"} | |
| 79 no_define | |
| 80 define -file system.h CYG_HAL_STARTUP | |
| 81 description "Choose RAM or ROM startup type." | |
| 82 } | |
| 83 | |
| 84 cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_DEFAULT { | |
| 85 display "Default console channel." | |
| 86 flavor data | |
| 87 calculated 0 | |
| 88 } | |
| 89 | |
| 90 cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS { | |
| 91 display "Number of communication channels on the board" | |
| 92 flavor data | |
| 93 calculated 1 | |
| 94 } | |
| 95 | |
| 96 cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL { | |
| 97 display "Debug serial port" | |
| 98 active_if CYGPRI_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL_CONFIGURABLE | |
| 99 flavor data | |
| 100 legal_values 0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1 | |
| 101 default_value 0 | |
| 102 description " | |
| 103 There is one serial connector on the board." | |
| 104 } | |
| 105 | |
| 106 cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL { | |
| 107 display "Diagnostic serial port" | |
| 108 active_if CYGPRI_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_CONFIGURABLE | |
| 109 flavor data | |
| 110 legal_values 0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1 | |
| 111 default_value CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_DEFAULT | |
| 112 description " | |
| 113 There is one serial connector on the board." | |
| 114 } | |
| 115 | |
| 116 cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_BAUD { | |
| 117 display "Diagnostic serial port baud rate" | |
| 118 flavor data | |
| 119 legal_values 9600 19200 38400 57600 115200 | |
| 120 default_value 38400 | |
| 121 description " | |
| 122 This option selects the baud rate used for the diagnostic | |
| 123 port." | |
| 124 } | |
| 125 | |
| 126 cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL_BAUD { | |
| 127 display "GDB serial port baud rate" | |
| 128 flavor data | |
| 129 legal_values 9600 19200 38400 57600 115200 | |
| 130 default_value 38400 | |
| 131 description " | |
| 132 This option controls the baud rate used for the GDB | |
| 133 connection." | |
| 134 } | |
| 135 | |
| 136 # Real-time clock/counter specifics | |
| 137 cdl_option CYGNUM_HAL_ARM_LPC2XXX_XTAL_FREQ { | |
| 138 display "CPU xtal frequency" | |
| 139 flavor data | |
| 140 default_value {14745600} | |
| 141 } | |
| 142 | |
| 143 cdl_option CYGNUM_HAL_ARM_LPC2XXX_PLL_MUL { | |
| 144 display "CPU PLL multiplier" | |
| 145 flavor data | |
| 146 default_value {4} | |
| 147 } | |
| 148 | |
| 149 cdl_option CYGNUM_HAL_ARM_LPC2XXX_CLOCK_SPEED { | |
| 150 display "CPU clock speed" | |
| 151 flavor data | |
| 152 calculated { CYGNUM_HAL_ARM_LPC2XXX_PLL_MUL * | |
| 153 CYGNUM_HAL_ARM_LPC2XXX_XTAL_FREQ } | |
| 154 } | |
| 155 | |
| 156 cdl_component CYGBLD_GLOBAL_OPTIONS { | |
| 157 display "Global build options" | |
| 158 flavor none | |
| 159 parent CYGPKG_NONE | |
| 160 description " | |
| 161 Global build options including control over compiler flags, | |
| 162 linker flags and choice of toolchain." | |
| 163 | |
| 164 cdl_option CYGBLD_GLOBAL_COMMAND_PREFIX { | |
| 165 display "Global command prefix" | |
| 166 flavor data | |
| 167 no_define | |
| 168 default_value { "arm-eabi" } | |
| 169 description " | |
| 170 This option specifies the command prefix used when | |
| 171 invoking the build tools." | |
| 172 } | |
| 173 | |
| 174 cdl_option CYGBLD_GLOBAL_CFLAGS { | |
| 175 display "Global compiler flags" | |
| 176 flavor data | |
| 177 no_define | |
| 178 default_value { (CYGHWR_THUMB ? "-mthumb " : "") . (CYGBLD_ARM_ENABLE_THUMB_INTERWORK ? "-mthumb-interwork " : "") . "-mcpu=arm7tdmi -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions" } | |
| 179 description " | |
| 180 This option controls the global compiler flags which | |
| 181 are used to compile all packages by default. Individual | |
| 182 packages may define options which override these global | |
| 183 flags." | |
| 184 } | |
| 185 | |
| 186 cdl_option CYGBLD_GLOBAL_LDFLAGS { | |
| 187 display "Global linker flags" | |
| 188 flavor data | |
| 189 no_define | |
| 190 default_value { (CYGHWR_THUMB ? "-mthumb " : "") . (CYGBLD_ARM_ENABLE_THUMB_INTERWORK ? "-mthumb-interwork " : "") . "-mcpu=arm7tdmi -Wl,--gc-sections -Wl,-static -g -nostdlib" } | |
| 191 description " | |
| 192 This option controls the global linker flags. Individual | |
| 193 packages may define options which override these global | |
| 194 flags." | |
| 195 } | |
| 196 } | |
| 197 | |
| 198 cdl_option CYGSEM_HAL_ROM_MONITOR { | |
| 199 display "Behave as a ROM monitor" | |
| 200 flavor bool | |
| 201 default_value 0 | |
| 202 parent CYGPKG_HAL_ROM_MONITOR | |
| 203 requires { CYG_HAL_STARTUP == "ROM" } | |
| 204 description " | |
| 205 Enable this option if this program is to be used as a | |
| 206 ROM monitor, i.e. applications will be loaded into RAM on | |
| 207 the board, and this ROM monitor may process exceptions or | |
| 208 interrupts generated from the application. This enables | |
| 209 features such as utilizing a separate interrupt stack when | |
| 210 exceptions are generated." | |
| 211 } | |
| 212 | |
| 213 cdl_option CYGSEM_HAL_USE_ROM_MONITOR { | |
| 214 display "Work with a ROM monitor" | |
| 215 flavor booldata | |
| 216 legal_values { "Generic" "GDB_stubs" } | |
| 217 default_value { CYG_HAL_STARTUP == "RAM" ? "GDB_stubs" : 0 } | |
| 218 parent CYGPKG_HAL_ROM_MONITOR | |
| 219 requires { CYG_HAL_STARTUP == "RAM" } | |
| 220 description " | |
| 221 Support can be enabled for different varieties of ROM | |
| 222 monitor. This support changes various eCos semantics such | |
| 223 as the encoding of diagnostic output, or the overriding of | |
| 224 hardware interrupt vectors. | |
| 225 Firstly there is \"Generic\" support which prevents the | |
| 226 HAL from overriding the hardware vectors that it does not | |
| 227 use, to instead allow an installed ROM monitor to handle | |
| 228 them. This is the most basic support which is likely to be | |
| 229 common to most implementations of ROM monitor. | |
| 230 \"GDB_stubs\" provides support when GDB stubs are included | |
| 231 in the ROM monitor or boot ROM." | |
| 232 } | |
| 233 | |
| 234 cdl_component CYGPKG_REDBOOT_HAL_OPTIONS { | |
| 235 display "Redboot HAL options" | |
| 236 flavor none | |
| 237 no_define | |
| 238 parent CYGPKG_REDBOOT | |
| 239 active_if CYGPKG_REDBOOT | |
| 240 description " | |
| 241 This option lists the target's requirements for a valid | |
| 242 Redboot configuration." | |
| 243 | |
| 244 cdl_option CYGBLD_BUILD_REDBOOT_BIN { | |
| 245 display "Build Redboot ROM binary image" | |
| 246 active_if CYGBLD_BUILD_REDBOOT | |
| 247 requires { !CYGBLD_BUILD_REDBOOT_WITH_EXEC } | |
| 248 default_value 1 | |
| 249 no_define | |
| 250 description " | |
| 251 This option enables the conversion of the Redboot ELF | |
| 252 image to a binary image suitable for ROM programming." | |
| 253 | |
| 254 compile -library=libextras.a redboot_cmds.c | |
| 255 | |
| 256 compile -library=libextras.a redboot_cmds.c | |
| 257 | |
| 258 make -priority 325 { | |
| 259 <PREFIX>/bin/redboot.bin : <PREFIX>/bin/redboot.elf | |
| 260 $(OBJCOPY) --strip-debug $< $(@:.bin=.img) | |
| 261 $(OBJCOPY) -O srec $< $(@:.bin=.srec) | |
| 262 $(OBJCOPY) -O ihex $< $(@:.bin=.hex) | |
| 263 $(OBJCOPY) -O binary $< $@ | |
| 264 } | |
| 265 | |
| 266 } | |
| 267 } | |
| 268 | |
| 269 cdl_component CYGHWR_MEMORY_LAYOUT { | |
| 270 display "Memory layout" | |
| 271 flavor data | |
| 272 no_define | |
| 273 calculated { (CYG_HAL_STARTUP == "RAM") ? "arm_lpc2xxx_olpcl2294_ram" : | |
| 274 "arm_lpc2xxx_olpcl2294_rom" } | |
| 275 cdl_option CYGHWR_MEMORY_LAYOUT_LDI { | |
| 276 display "Memory layout linker script fragment" | |
| 277 flavor data | |
| 278 no_define | |
| 279 define -file system.h CYGHWR_MEMORY_LAYOUT_LDI | |
| 280 calculated { (CYG_HAL_STARTUP == "RAM") ? | |
| 281 "<pkgconf/mlt_arm_lpc2xxx_olpcl2294_ram.ldi>" : | |
| 282 "<pkgconf/mlt_arm_lpc2xxx_olpcl2294_rom.ldi>" } | |
| 283 } | |
| 284 | |
| 285 cdl_option CYGHWR_MEMORY_LAYOUT_H { | |
| 286 display "Memory layout header file" | |
| 287 flavor data | |
| 288 no_define | |
| 289 define -file system.h CYGHWR_MEMORY_LAYOUT_H | |
| 290 calculated { (CYG_HAL_STARTUP == "RAM") ? | |
| 291 "<pkgconf/mlt_arm_lpc2xxx_olpcl2294_ram.h>" : | |
| 292 "<pkgconf/mlt_arm_lpc2xxx_olpcl2294_rom.h>" } | |
| 293 } | |
| 294 } | |
| 295 } | |
| 296 |
