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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [hal/] [arm/] [edb7xxx/] [v2_0/] [cdl/] [hal_arm_edb7xxx.cdl] - Blame information for rev 174

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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