OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [hal/] [arm/] [edb7xxx/] [current/] [cdl/] [hal_arm_edb7xxx.cdl] - Blame information for rev 786

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 786 skrzyp
# ====================================================================
2
#
3
#      hal_arm_edb7xxx.cdl
4
#
5
#      Cirrus Logic EDB7XXX evaluation board 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, 2003 Free Software Foundation, 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
16
## version.
17
##
18
## eCos is distributed in the hope that it will be useful, but WITHOUT
19
## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20
## FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
21
## for more details.
22
##
23
## You should have received a copy of the GNU General Public License
24
## along with eCos; if not, write to the Free Software Foundation, Inc.,
25
## 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
26
##
27
## As a special exception, if other files instantiate templates or use
28
## macros or inline functions from this file, or you compile this file
29
## and link it with other works to produce a work based on this file,
30
## this file does not by itself cause the resulting work to be covered by
31
## the GNU General Public License. However the source code for this file
32
## must still be made available in accordance with section (3) of the GNU
33
## General Public License v2.
34
##
35
## This exception does not invalidate any other reasons why a work based
36
## on this file might be covered by the GNU General Public License.
37
## -------------------------------------------
38
## ####ECOSGPLCOPYRIGHTEND####
39
# ====================================================================
40
######DESCRIPTIONBEGIN####
41
#
42
# Author(s):      jskov
43
# Original data:  gthomas
44
# Contributors:
45
# Date:           1999-07-01
46
#
47
#####DESCRIPTIONEND####
48
#
49
# ====================================================================
50
 
51
cdl_package CYGPKG_HAL_ARM_EDB7XXX {
52
    display       "Cirrus Logic ARM7 based development boards"
53
    parent        CYGPKG_HAL_ARM
54
    include_dir   cyg/hal
55
    hardware
56
    define_header hal_arm_edb7xxx.h
57
    description   "
58
The EDB7XXX HAL package provides the support needed to run eCos on Cirrus Logic
59
CL-PS7111 and EP7xxx based development boards."
60
 
61
    compile       hal_diag.c edb7xxx_misc.c
62
 
63
    implements    CYGINT_HAL_DEBUG_GDB_STUBS
64
    implements    CYGINT_HAL_DEBUG_GDB_STUBS_BREAK
65
    implements    CYGINT_HAL_VIRTUAL_VECTOR_SUPPORT
66
    implements    CYGINT_HAL_VIRTUAL_VECTOR_COMM_BAUD_SUPPORT
67
    implements    CYGINT_HAL_ARM_ARCH_ARM7
68
    implements    CYGINT_HAL_SUPPORTS_MMU_TABLES
69
 
70
    define_proc {
71
        puts $::cdl_system_header "#define CYGBLD_HAL_TARGET_H   "
72
        puts $::cdl_system_header "#define CYGBLD_HAL_PLATFORM_H "
73
        puts $::cdl_header "#define HAL_PLATFORM_MACHINE_TYPE  131"
74
        puts $::cdl_header "#define CYGHWR_REDBOOT_ARM_TRAMPOLINE_ADDRESS 0x00001f00"
75
    }
76
 
77
    requires { (CYGBLD_BUILD_REDBOOT_WITH_EXEC == 0) || \
78
               (CYGHWR_REDBOOT_ARM_LINUX_EXEC_ADDRESS_DEFAULT == 0xC0038000) }
79
 
80
    cdl_option CYGHWR_HAL_ARM_EDB7XXX_VARIANT {
81
        display       "Cirrus Logic processor variant"
82
        flavor        data
83
        legal_values  { "CL_PS7111" "EP7209" "EP7211" "EP7212" "EP7312" }
84
        default_value { "EP7211" }
85
        description   "
86
            The Cirrus Logic processor variant."
87
        define -file system.h CYGHWR_HAL_ARM_EDB7XXX_VARIANT
88
    }
89
 
90
    cdl_option CYGHWR_HAL_ARM_EDB7XXX_BOARD_VARIANT {
91
        display       "Cirrus Logic board variant"
92
        flavor        data
93
        legal_values  { "CL7111" "EDB7209" "EDB7211" "EDB7212" "EDB7312" }
94
        default_value { CYGHWR_HAL_ARM_EDB7XXX_VARIANT == "CL_PS7111" ? "CL7111" : \
95
                        CYGHWR_HAL_ARM_EDB7XXX_VARIANT == "EP7209" ? "EDB7209" : \
96
                        CYGHWR_HAL_ARM_EDB7XXX_VARIANT == "EP7211" ? "EDB7211" : \
97
                        CYGHWR_HAL_ARM_EDB7XXX_VARIANT == "EP7212" ? "EDB7212" : \
98
                        CYGHWR_HAL_ARM_EDB7XXX_VARIANT == "EP7312" ? "EDB7312" : \
99
                        "" }
100
        description   "
101
            The board type which uses a Cirrus Logic processor variant."
102
        define -file system.h CYGHWR_HAL_ARM_EDB7XXX_BOARD_VARIANT
103
        define_proc {
104
            puts $::cdl_header ""
105
            puts $::cdl_header "#ifdef CYGHWR_HAL_ARM_EDB7XXX_BOARD_VARIANT_CL7111"
106
            puts $::cdl_header "#define HAL_PLATFORM_CPU    \"ARM 710C\""
107
            puts $::cdl_header "#define HAL_PLATFORM_BOARD  \"Cirrus Logic CL-PS7111\""
108
            puts $::cdl_header "#define HAL_PLATFORM_EXTRA  \"\""
109
            puts $::cdl_header "#define __CL7111"
110
            puts $::cdl_header "#endif //CYGHWR_HAL_ARM_EDB7XXX_BOARD_VARIANT_CL7111"
111
            puts $::cdl_header ""
112
            puts $::cdl_header "#ifdef CYGHWR_HAL_ARM_EDB7XXX_BOARD_VARIANT_EDB7209"
113
            puts $::cdl_header "#define HAL_PLATFORM_CPU    \"ARM 720T\""
114
            puts $::cdl_header "#define HAL_PLATFORM_BOARD  \"Cirrus Logic EDB7209\""
115
            puts $::cdl_header "#define HAL_PLATFORM_EXTRA  \"\""
116
            puts $::cdl_header "#define __EDB7209"
117
            puts $::cdl_header "#endif //CYGHWR_HAL_ARM_EDB7XXX_BOARD_VARIANT_EDB7209"
118
            puts $::cdl_header ""
119
            puts $::cdl_header "#ifdef CYGHWR_HAL_ARM_EDB7XXX_BOARD_VARIANT_EDB7211"
120
            puts $::cdl_header "#define HAL_PLATFORM_CPU    \"ARM 720T\""
121
            puts $::cdl_header "#define HAL_PLATFORM_BOARD  \"Cirrus Logic EDB7211\""
122
            puts $::cdl_header "#define HAL_PLATFORM_EXTRA  \"\""
123
            puts $::cdl_header "#define __EDB7211"
124
            puts $::cdl_header "#endif //CYGHWR_HAL_ARM_EDB7XXX_BOARD_VARIANT_EDB7211"
125
            puts $::cdl_header ""
126
            puts $::cdl_header "#ifdef CYGHWR_HAL_ARM_EDB7XXX_BOARD_VARIANT_EDB7212"
127
            puts $::cdl_header "#define HAL_PLATFORM_CPU    \"ARM 720T\""
128
            puts $::cdl_header "#define HAL_PLATFORM_BOARD  \"Cirrus Logic EDB7212\""
129
            puts $::cdl_header "#define HAL_PLATFORM_EXTRA  \"\""
130
            puts $::cdl_header "#define __EDB7209"
131
            puts $::cdl_header "#define __EDB7212"
132
            puts $::cdl_header "#endif //CYGHWR_HAL_ARM_EDB7XXX_BOARD_VARIANT_EDB7212"
133
            puts $::cdl_header ""
134
            puts $::cdl_header "#ifdef CYGHWR_HAL_ARM_EDB7XXX_BOARD_VARIANT_EDB7312"
135
            puts $::cdl_header "#define HAL_PLATFORM_CPU    \"ARM 720T\""
136
            puts $::cdl_header "#define HAL_PLATFORM_BOARD  \"Cogent EDB7312\""
137
            puts $::cdl_header "#define HAL_PLATFORM_EXTRA  \"Cirrus Logic EP7312\""
138
            puts $::cdl_header "#define __EDB7312"
139
            puts $::cdl_header "#endif //CYGHWR_HAL_ARM_EDB7XXX_BOARD_VARIANT_EDB7312"
140
            puts $::cdl_header ""
141
        }
142
    }
143
 
144
    cdl_component CYG_HAL_STARTUP {
145
        display       "Startup type"
146
        flavor        data
147
        legal_values  { "ROM"
148
                        ((CYGHWR_HAL_ARM_EDB7XXX_VARIANT == "EP7209") ? "" : "RAM")
149
                        ((CYGHWR_HAL_ARM_EDB7XXX_VARIANT == "EP7312") ? "ROMRAM" : "")
150
        }
151
        default_value  { CYGHWR_HAL_ARM_EDB7XXX_VARIANT == "EP7209" ? "ROM" : "RAM"}
152
        no_define
153
        define -file system.h CYG_HAL_STARTUP
154
        description   "
155
            When targetting the Cirrus Logic evaluation boards it is possible to build
156
            the system for either RAM bootstrap or ROM bootstrap(s). Select
157
            'ram' when building programs to load into RAM using onboard
158
            debug software such as Angel or eCos GDB stubs.  Select 'rom'
159
            when building a stand-alone application which will be put
160
            into ROM."
161
    }
162
 
163
    cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_BAUD {
164
        display       "Diagnostic serial port baud rate"
165
        flavor        data
166
        legal_values  9600 19200 38400 115200
167
        default_value 38400
168
        description   "
169
            This option selects the baud rate used for the diagnostic port.
170
            Note: this should match the value chosen for the GDB port if the
171
            diagnostic and GDB port are the same."
172
    }
173
 
174
    cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL_BAUD {
175
        display       "GDB serial port baud rate"
176
        flavor        data
177
        legal_values  9600 19200 38400 115200
178
        default_value 38400
179
        description   "
180
            This option controls the baud rate used for the GDB connection."
181
    }
182
 
183
    cdl_component CYGSEM_EDB7XXX_LCD_COMM {
184
        display        "Support LCD/touchscreen for comminication channel"
185
        active_if      CYGPKG_REDBOOT && {CYGHWR_HAL_ARM_EDB7XXX_VARIANT == "EP7312"}
186
        flavor         bool
187
        default_value  1
188
        compile        lcd_support.c
189
        description    "
190
          Enabling this option will use the LCD and touchscreen for a
191
          communications channel, suitable for RedBoot, etc."
192
 
193
        cdl_option  CYGSEM_EDB7XXX_LCD_COMM_PORTRAIT_MODE {
194
            display       "LCD portrait mode"
195
            flavor        bool
196
            default_value 0
197
            description   "
198
                Setting this option will orient the data on the LCD screen
199
                in portrait (240x320) mode."
200
        }
201
 
202
        cdl_option  CYGOPT_EDB7XXX_LCD_COMM_LOGO {
203
            display       "RedHat logo location"
204
            flavor        booldata
205
            legal_values  { "TOP" "BOTTOM" }
206
            default_value { "TOP" }
207
            description   "
208
                Use this option to control where the RedHat logo is placed
209
                on the LCD screen."
210
        }
211
    }
212
 
213
    cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS {
214
        display      "Number of communication channels on the board"
215
        flavor       data
216
        calculated   2+CYGSEM_EDB7XXX_LCD_COMM
217
    }
218
 
219
    cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_DEFAULT {
220
        display      "Default console channel."
221
        flavor       data
222
        legal_values     0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1
223
        calculated   0
224
    }
225
 
226
    cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL {
227
        display          "Debug serial port"
228
        active_if        CYGPRI_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL_CONFIGURABLE
229
        flavor data
230
        legal_values     0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1
231
        default_value    0
232
        description      "
233
            The EDB7xxx boards have two serial ports. This option
234
            chooses which port will be used to connect to a host
235
            running GDB."
236
     }
237
 
238
     cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL {
239
         display          "Diagnostic serial port"
240
         active_if        CYGPRI_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_CONFIGURABLE
241
         flavor data
242
         legal_values     0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1
243
         default_value    CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_DEFAULT
244
         description      "
245
            The EDB7xxx boards have two serial ports.  This option
246
            chooses which port will be used for diagnostic output."
247
     }
248
 
249
    cdl_option CYGHWR_HAL_ARM_EDB7XXX_PROCESSOR_CLOCK {
250
        display       "Processor clock rate (kHz)"
251
        flavor        data
252
            legal_values  18432 36864 49152 73728 90317
253
        default_value { CYGHWR_HAL_ARM_EDB7XXX_VARIANT == "CL_PS7111" ? 18432 : 73728 }
254
        description   "
255
            The processor can run at various frequencies."
256
    }
257
 
258
    cdl_option CYGHWR_HAL_ARM_EDB7XXX_DRAM_SIZE {
259
        display       "Installed DRAM on board"
260
        flavor        data
261
        legal_values  0 2 16
262
        default_value { CYGHWR_HAL_ARM_EDB7XXX_BOARD_VARIANT == "CL7111" ? 2 : \
263
                        CYGHWR_HAL_ARM_EDB7XXX_BOARD_VARIANT == "EDB7209" ? 0 : 16 }
264
        description   "
265
            The Cirrus Logic boards can have various amounts of DRAM installed.
266
            The machine needs to be initialized differently, depending
267
            upon the amount installed."
268
    }
269
 
270
    cdl_option CYGHWR_HAL_ARM_EDB7XXX_SOFTWARE_DRAM_REFRESH {
271
        display "Perform DRAM refresh in software"
272
        flavor   bool
273
        default_value 0
274
        description "
275
           This option will add code that refreshes the DRAM by
276
           touching all of DRAM during the system clock interrupt
277
           processing."
278
    }
279
 
280
    cdl_option CYGHWR_HAL_ARM_EDB7XXX_LCD_INSTALLED {
281
        display       "LCD installed"
282
        flavor        bool
283
        default_value 1
284
        description   "
285
            If an LCD panel is installed, 128K of DRAM will be dedicated to the
286
            LCD buffer by the system intialization.  Note: changing this value
287
            from the default will alter the memory map and a new debug enviroment
288
            (GDB or RedBoot) may be required."
289
    }
290
 
291
    # Real-time clock/counter specifics
292
    cdl_component CYGNUM_HAL_RTC_CONSTANTS {
293
        display       "Real-time clock constants"
294
        flavor        none
295
 
296
        cdl_option CYGNUM_HAL_RTC_NUMERATOR {
297
            display       "Real-time clock numerator"
298
            flavor        data
299
            default_value 1000000000
300
        }
301
        cdl_option CYGNUM_HAL_RTC_DENOMINATOR {
302
            display       "Real-time clock denominator"
303
            flavor        data
304
            default_value 100
305
        }
306
        cdl_option CYGNUM_HAL_RTC_PERIOD {
307
            display       "Real-time clock period"
308
            flavor        data
309
            default_value { CYGHWR_HAL_ARM_EDB7XXX_PROCESSOR_CLOCK <= 73728 ? 5120 : 6272 };
310
            # Assumes 512KHz clock - usually.
311
        }
312
    }
313
 
314
    cdl_component CYGBLD_GLOBAL_OPTIONS {
315
        display "Global build options"
316
        flavor  none
317
        description   "
318
            Global build options including control over
319
            compiler flags, linker flags and choice of toolchain."
320
 
321
        parent  CYGPKG_NONE
322
 
323
        cdl_option CYGBLD_GLOBAL_COMMAND_PREFIX {
324
            display "Global command prefix"
325
            flavor  data
326
            no_define
327
            default_value { "arm-eabi"}
328
            description "
329
                This option specifies the command prefix used when
330
                invoking the build tools."
331
        }
332
 
333
        cdl_option CYGBLD_GLOBAL_CFLAGS {
334
            display "Global compiler flags"
335
            flavor  data
336
            no_define
337
            default_value { CYGBLD_GLOBAL_WARNFLAGS . CYGBLD_ARCH_CFLAGS .
338
                            (CYGHWR_HAL_ARM_EDB7XXX_VARIANT == "CL_PS7111" ? "-mcpu=arm710c" : "-mcpu=arm7tdmi") .
339
                            " -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions "
340
            }
341
            description   "
342
                This option controls the global compiler flags which are used to
343
                compile all packages by default. Individual packages may define
344
                options which override these global flags."
345
        }
346
 
347
        cdl_option CYGBLD_GLOBAL_LDFLAGS {
348
            display "Global linker flags"
349
            flavor  data
350
            no_define
351
            default_value { CYGBLD_ARCH_LDFLAGS .
352
                           (CYGHWR_HAL_ARM_EDB7XXX_VARIANT == "CL_PS7111" ? "-mcpu=arm710c" : "-mcpu=arm7tdmi" ) .
353
                           " -Wl,--gc-sections -Wl,-static -g -nostdlib" }
354
            description   "
355
                This option controls the global linker flags. Individual
356
                packages may define options which override these global flags."
357
        }
358
 
359
        cdl_option CYGBLD_BUILD_GDB_STUBS {
360
            display "Build GDB stub ROM image"
361
            default_value 0
362
            requires { (CYG_HAL_STARTUP == "ROM") || (CYG_HAL_STARTUP == "ROMRAM") }
363
            requires CYGSEM_HAL_ROM_MONITOR
364
            requires CYGBLD_BUILD_COMMON_GDB_STUBS
365
            requires CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS
366
            requires CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT
367
            requires CYGDBG_HAL_DEBUG_GDB_THREAD_SUPPORT
368
            requires ! CYGDBG_HAL_COMMON_INTERRUPTS_SAVE_MINIMUM_CONTEXT
369
            requires ! CYGDBG_HAL_COMMON_CONTEXT_SAVE_MINIMUM
370
            no_define
371
            description "
372
                This option enables the building of the GDB stubs for the
373
                board. The common HAL controls takes care of most of the
374
                build process, but the final conversion from ELF image to
375
                binary data is handled by the platform CDL, allowing
376
                relocation of the data if necessary."
377
 
378
            make -priority 320 {
379
                /bin/gdb_module.bin : /bin/gdb_module.img
380
                $(OBJCOPY) -O binary $< $@
381
            }
382
        }
383
 
384
        cdl_option CYGBLD_BUILD_FLASH_TOOL {
385
            display "Build flash programming tool"
386
            default_value 0
387
            requires { CYG_HAL_STARTUP == "RAM" }
388
            requires CYGPKG_LIBC
389
            requires CYGPKG_KERNEL
390
            no_define
391
            description "This option enables the building of the flash programming tool for copying the GDB stubs into flash memory."
392
 
393
            make -priority 320 {
394
                /bin/prog_flash.img : /misc/prog_flash.c
395
                @sh -c "mkdir -p misc $(dir $@)"
396
                $(CC) -c $(INCLUDE_PATH) -Wp,-MD,deps.tmp -I$(dir $<) $(CFLAGS) -o misc/prog_flash.o $<
397
                @echo $@ ": \\" > $(notdir $@).deps
398
                @echo $(wildcard $(PREFIX)/lib/*) " \\" >> $(notdir $@).deps
399
                @tail -n +2 deps.tmp >> $(notdir $@).deps
400
                @echo >> $(notdir $@).deps
401
                @rm deps.tmp
402
                $(CC) $(LDFLAGS) -L$(PREFIX)/lib -Ttarget.ld -o $@ misc/prog_flash.o
403
            }
404
        }
405
 
406
        cdl_option CYGBLD_BUILD_AUX_TESTS {
407
            display "Build tests for auxiliaries"
408
            default_value 0
409
            requires { CYG_HAL_STARTUP == "RAM" }
410
            requires CYGPKG_LIBC
411
            requires CYGPKG_KERNEL
412
            no_define
413
            description "
414
               This option enables the building of some tests for the
415
               auxiliary devices."
416
 
417
            make -priority 320 {
418
                /bin/lcd_test.img : /misc/lcd_test.c
419
                @sh -c "mkdir -p misc $(dir $@)"
420
                $(CC) -c $(INCLUDE_PATH) -Wp,-MD,deps.tmp -I$(dir $<) $(CFLAGS) -o misc/lcd_test.o $<
421
                @echo $@ ": \\" > $(notdir $@).deps
422
                @echo $(wildcard $(PREFIX)/lib/*) " \\" >> $(notdir $@).deps
423
                @tail -n +2 deps.tmp >> $(notdir $@).deps
424
                @echo >> $(notdir $@).deps
425
                @rm deps.tmp
426
                $(CC) $(LDFLAGS) -L$(PREFIX)/lib -Ttarget.ld -o $@ misc/lcd_test.o
427
            }
428
 
429
            make -priority 320 {
430
                /bin/panel_test.img : /misc/panel_test.c
431
                @sh -c "mkdir -p misc $(dir $@)"
432
                $(CC) -c $(INCLUDE_PATH) -Wp,-MD,deps.tmp -I$(dir $<) $(CFLAGS) -o misc/panel_test.o $<
433
                @echo $@ ": \\" > $(notdir $@).deps
434
                @echo $(wildcard $(PREFIX)/lib/*) " \\" >> $(notdir $@).deps
435
                @tail -n +2 deps.tmp >> $(notdir $@).deps
436
                @echo >> $(notdir $@).deps
437
                @rm deps.tmp
438
                $(CC) $(LDFLAGS) -L$(PREFIX)/lib -Ttarget.ld -o $@ misc/panel_test.o
439
            }
440
 
441
            make -priority 320 {
442
                /bin/kbd_test.img : /misc/kbd_test.c
443
                @sh -c "mkdir -p misc $(dir $@)"
444
                $(CC) -c $(INCLUDE_PATH) -Wp,-MD,deps.tmp -I$(dir $<) $(CFLAGS) -o misc/kbd_test.o $<
445
                @echo $@ ": \\" > $(notdir $@).deps
446
                @echo $(wildcard $(PREFIX)/lib/*) " \\" >> $(notdir $@).deps
447
                @tail -n +2 deps.tmp >> $(notdir $@).deps
448
                @echo >> $(notdir $@).deps
449
                @rm deps.tmp
450
                $(CC) $(LDFLAGS) -L$(PREFIX)/lib -Ttarget.ld -o $@ misc/kbd_test.o
451
            }
452
 
453
            make -priority 320 {
454
                /bin/i2s_audio_test.img : /misc/i2s_audio_test.c /misc/i2s_audio_fiq.S
455
                @sh -c "mkdir -p misc $(dir $@)"
456
                $(CC) -c $(INCLUDE_PATH) -Wp,-MD,deps.tmp -I$(dir $<) $(CFLAGS) -o misc/i2s_audio_test.o $<
457
                @echo $@ ": \\" > $(notdir $@).deps
458
                @echo $(wildcard $(PREFIX)/lib/*) " \\" >> $(notdir $@).deps
459
                @tail -n +2 deps.tmp >> $(notdir $@).deps
460
                @echo >> $(notdir $@).deps
461
                # warning: no proper deps here
462
                $(CC) -c $(INCLUDE_PATH) -I$(dir $<) $(CFLAGS) -o misc/i2s_audio_fiq.o $(REPOSITORY)/$(PACKAGE)/misc/i2s_audio_fiq.S
463
                $(CC) $(LDFLAGS) -L$(PREFIX)/lib -Ttarget.ld -o $@ misc/i2s_audio_test.o misc/i2s_audio_fiq.o
464
            }
465
 
466
        }
467
    }
468
 
469
 
470
    cdl_component CYGPKG_HAL_ARM_EDB7XXX_OPTIONS {
471
        display "Cirrus Logic build options"
472
        flavor  none
473
        description   "
474
            Package specific build options including control over
475
            compiler flags used only in building this package,
476
            and details of which tests are built."
477
 
478
# Note: now defined in 
479
#            default_value { CYGHWR_HAL_ARM_EDB7XXX_VARIANT == "CL_PS7111" ? "-D__CL7111" :
480
#                            CYGHWR_HAL_ARM_EDB7XXX_VARIANT == "EP7209" ? "-D__EDB7209" :
481
#                            CYGHWR_HAL_ARM_EDB7XXX_VARIANT == "EP7211" ? "-D__EDB7211" :
482
#                            CYGHWR_HAL_ARM_EDB7XXX_VARIANT == "EP7212" ? "-D__EDB7209 -D__EDB7212" :
483
#                            CYGHWR_HAL_ARM_EDB7XXX_VARIANT == "EP7312" ? "-D__EDB7312" :
484
#                            "" }
485
 
486
        cdl_option CYGPKG_HAL_ARM_EDB7XXX_CFLAGS_ADD {
487
            display "Additional compiler flags"
488
            flavor  data
489
            no_define
490
            default_value { "" }
491
            description   "
492
                This option modifies the set of compiler flags for
493
                building the Cirrus Logic HAL. These flags are used in addition
494
                to the set of global flags."
495
        }
496
 
497
        cdl_option CYGPKG_HAL_ARM_EDB7XXX_CFLAGS_REMOVE {
498
            display "Suppressed compiler flags"
499
            flavor  data
500
            no_define
501
            default_value { "" }
502
            description   "
503
                This option modifies the set of compiler flags for
504
                building the Cirrus Logic HAL. These flags are removed from
505
                the set of global flags if present."
506
        }
507
 
508
        cdl_option CYGPKG_HAL_ARM_EDB7XXX_TESTS {
509
            display "Cirrus Logic tests"
510
            flavor  data
511
            no_define
512
            calculated { "tests/dram_test" }
513
            description   "
514
                This option specifies the set of tests for the Cirrus Logic HAL."
515
        }
516
    }
517
 
518
    cdl_component CYGHWR_MEMORY_LAYOUT {
519
        display "Memory layout"
520
        flavor data
521
        no_define
522
        calculated {
523
          CYGHWR_HAL_ARM_EDB7XXX_BOARD_VARIANT == "CL7111" ?
524
            (CYG_HAL_STARTUP == "RAM" ? "arm_cl7111_ram" : \
525
             CYG_HAL_STARTUP == "ROM" ? "arm_cl7111_rom" : "BOGUS.mlt" ) : \
526
          CYGHWR_HAL_ARM_EDB7XXX_BOARD_VARIANT == "EDB7209" ?
527
            (CYG_HAL_STARTUP == "ROM" ? "arm_edb7209_rom" : "BOGUS.mlt" ) : \
528
          CYGHWR_HAL_ARM_EDB7XXX_BOARD_VARIANT == "EDB7211" ?
529
            (CYG_HAL_STARTUP == "RAM" ? "arm_edb7211_ram" : \
530
             CYG_HAL_STARTUP == "ROM" ? "arm_edb7211_rom" : "BOGUS.mlt" ) : \
531
          CYGHWR_HAL_ARM_EDB7XXX_BOARD_VARIANT == "EDB7212" ?
532
            (CYG_HAL_STARTUP == "RAM" ? "arm_edb7212_ram" : \
533
             CYG_HAL_STARTUP == "ROM" ? "arm_edb7212_rom" : "BOGUS.mlt" ) : \
534
          CYGHWR_HAL_ARM_EDB7XXX_BOARD_VARIANT == "EDB7312" ?
535
            (CYG_HAL_STARTUP == "RAM" ? "arm_edb7312_ram" : \
536
             CYG_HAL_STARTUP == "ROMRAM" ? "arm_edb7312_romram" : \
537
             CYG_HAL_STARTUP == "ROM" ? "arm_edb7312_rom" : "BOGUS.mlt" ) : \
538
          "BOGUS.mlt"
539
        }
540
 
541
        cdl_option CYGHWR_MEMORY_LAYOUT_LDI {
542
            display "Memory layout linker script fragment"
543
            flavor data
544
            no_define
545
            define -file system.h CYGHWR_MEMORY_LAYOUT_LDI
546
            calculated {
547
              CYGHWR_HAL_ARM_EDB7XXX_BOARD_VARIANT == "CL7111" ?
548
                (CYG_HAL_STARTUP == "RAM" ? "" :  \
549
                 CYG_HAL_STARTUP == "ROM" ? "" :  "BOGUS.ldi" ) : \
550
              CYGHWR_HAL_ARM_EDB7XXX_BOARD_VARIANT == "EDB7209" ?
551
                (CYG_HAL_STARTUP == "ROM" ? "" :  "BOGUS.ldi" ) : \
552
              CYGHWR_HAL_ARM_EDB7XXX_BOARD_VARIANT == "EDB7211" ?
553
                (CYG_HAL_STARTUP == "RAM" ? "" :  \
554
                 CYG_HAL_STARTUP == "ROM" ? "" :  "BOGUS.ldi" ) : \
555
              CYGHWR_HAL_ARM_EDB7XXX_BOARD_VARIANT == "EDB7212" ?
556
                (CYG_HAL_STARTUP == "RAM" ? "" :  \
557
                 CYG_HAL_STARTUP == "ROM" ? "" :  "BOGUS.ldi" ) : \
558
              CYGHWR_HAL_ARM_EDB7XXX_BOARD_VARIANT == "EDB7312" ?
559
                (CYG_HAL_STARTUP == "RAM" ? "" :  \
560
                 CYG_HAL_STARTUP == "ROMRAM" ? "" : \
561
                 CYG_HAL_STARTUP == "ROM" ? "" :  "BOGUS.ldi" ) : \
562
              "BOGUS.ldi" }
563
        }
564
 
565
        cdl_option CYGHWR_MEMORY_LAYOUT_H {
566
            display "Memory layout header file"
567
            flavor data
568
            no_define
569
            define -file system.h CYGHWR_MEMORY_LAYOUT_H
570
            calculated {
571
              CYGHWR_HAL_ARM_EDB7XXX_BOARD_VARIANT == "CL7111" ?
572
                (CYG_HAL_STARTUP == "RAM" ? "" :  \
573
                 CYG_HAL_STARTUP == "ROM" ? "" :  "BOGUS.h" ) : \
574
              CYGHWR_HAL_ARM_EDB7XXX_BOARD_VARIANT == "EDB7209" ?
575
                (CYG_HAL_STARTUP == "ROM" ? "" :  "BOGUS.h" ) : \
576
              CYGHWR_HAL_ARM_EDB7XXX_BOARD_VARIANT == "EDB7211" ?
577
                (CYG_HAL_STARTUP == "RAM" ? "" :  \
578
                 CYG_HAL_STARTUP == "ROM" ? "" :  "BOGUS.h" ) : \
579
              CYGHWR_HAL_ARM_EDB7XXX_BOARD_VARIANT == "EDB7212" ?
580
                (CYG_HAL_STARTUP == "RAM" ? "" :  \
581
                 CYG_HAL_STARTUP == "ROM" ? "" :  "BOGUS.h" ) : \
582
              CYGHWR_HAL_ARM_EDB7XXX_BOARD_VARIANT == "EDB7312" ?
583
                (CYG_HAL_STARTUP == "RAM" ? "" :  \
584
                 CYG_HAL_STARTUP == "ROMRAM" ? "" : \
585
                 CYG_HAL_STARTUP == "ROM" ? "" :  "BOGUS.h" ) : \
586
              "BOGUS.h" }
587
        }
588
    }
589
 
590
    cdl_option CYGSEM_HAL_ROM_MONITOR {
591
        display       "Behave as a ROM monitor"
592
        flavor        bool
593
        default_value 0
594
        parent        CYGPKG_HAL_ROM_MONITOR
595
        requires      { (CYG_HAL_STARTUP == "ROM") || (CYG_HAL_STARTUP == "ROMRAM") }
596
        description   "
597
            Enable this option if this program is to be used as a ROM monitor,
598
            i.e. applications will be loaded into RAM on the board, and this
599
            ROM monitor may process exceptions or interrupts generated from the
600
            application. This enables features such as utilizing a separate
601
            interrupt stack when exceptions are generated."
602
    }
603
 
604
    cdl_component CYGPKG_CYGMON_HAL_OPTIONS {
605
        display       "CygMon HAL options"
606
        flavor        none
607
        no_define
608
        parent        CYGPKG_CYGMON
609
        active_if     CYGPKG_CYGMON
610
        requires      CYGPKG_IO_SERIAL_ARM_EDB7XXX
611
        requires      {(CYGDAT_CYGMON_CONSOLE_DEV != "\"/dev/ser1\"") || \
612
                       (CYGPKG_IO_SERIAL_ARM_EDB7XXX_SERIAL1)}
613
        requires      {(CYGDAT_CYGMON_CONSOLE_DEV != "\"/dev/ser2\"") || \
614
                       (CYGPKG_IO_SERIAL_ARM_EDB7XXX_SERIAL2)}
615
        description   "
616
            This option lists the target's requirements for a valid CygMon
617
            configuration."
618
 
619
 
620
        cdl_option CYGDAT_CYGMON_CONSOLE_DEV {
621
            display       "Serial port for default console"
622
            flavor data
623
            default_value { "\"/dev/ser1\"" }
624
            description   "
625
               This option selects the physical device to use as the default
626
               console device for CygMon."
627
 
628
        }
629
 
630
        cdl_option CYGBLD_BUILD_CYGMON_BIN {
631
            display       "Build CygMon ROM binary image"
632
            active_if     CYGBLD_BUILD_CYGMON
633
            default_value 1
634
            no_define
635
            description "This option enables the conversion of the CygMon ELF
636
                         image to a binary image suitable for ROM programming."
637
 
638
            make -priority 325 {
639
                /bin/cygmon.bin : /bin/cygmon.elf
640
                $(OBJCOPY) --strip-debug $< $(@:.bin=.img)
641
                $(OBJCOPY) -O srec $< $(@:.bin=.srec)
642
                $(OBJCOPY) -O binary $< $@
643
            }
644
        }
645
    }
646
 
647
    cdl_option CYGSEM_HAL_USE_ROM_MONITOR {
648
         display       "Work with a ROM monitor"
649
         flavor        booldata
650
         legal_values  { "Generic" "GDB_stubs" }
651
         default_value { CYG_HAL_STARTUP == "RAM" ? "GDB_stubs" : 0 }
652
         parent        CYGPKG_HAL_ROM_MONITOR
653
         requires      { CYG_HAL_STARTUP == "RAM" }
654
         description   "
655
             Support can be enabled for different varieties of ROM monitor.
656
             This support changes various eCos semantics such as the encoding
657
             of diagnostic output, or the overriding of hardware interrupt
658
             vectors.
659
             Firstly there is \"Generic\" support which prevents the HAL
660
             from overriding the hardware vectors that it does not use, to
661
             instead allow an installed ROM monitor to handle them. This is
662
             the most basic support which is likely to be common to most
663
             implementations of ROM monitor.
664
             \"GDB_stubs\" provides support when GDB stubs are included in
665
             the ROM monitor or boot ROM."
666
     }
667
 
668
    cdl_component CYGPKG_REDBOOT_HAL_OPTIONS {
669
        display       "Redboot HAL options"
670
        flavor        none
671
        no_define
672
        parent        CYGPKG_REDBOOT
673
        active_if     CYGPKG_REDBOOT
674
        description   "
675
            This option lists the target's requirements for a valid Redboot
676
            configuration."
677
 
678
        cdl_option CYGBLD_BUILD_REDBOOT_BIN {
679
            display       "Build Redboot ROM binary image"
680
            active_if     CYGBLD_BUILD_REDBOOT
681
            default_value 1
682
            no_define
683
            description "This option enables the conversion of the Redboot ELF
684
                         image to a binary image suitable for ROM programming."
685
 
686
            make -priority 325 {
687
                /bin/redboot.bin : /bin/redboot.elf
688
                $(OBJCOPY) --strip-debug $< $(@:.bin=.img)
689
                $(OBJCOPY) -O srec $< $(@:.bin=.srec)
690
                $(OBJCOPY) -O binary $< $@
691
            }
692
        }
693
    }
694
 
695
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.