URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [hal/] [powerpc/] [vads/] [v2_0/] [cdl/] [hal_powerpc_vads.cdl] - Rev 174
Compare with Previous | Blame | View Log
# ====================================================================## hal_powerpc_vads.cdl## Motorola MPC8260 Voyager ADS board HAL package configuration data## ====================================================================#####ECOSGPLCOPYRIGHTBEGIN###### -------------------------------------------## This file is part of eCos, the Embedded Configurable Operating System.## Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.## Copyright (C) 2002 Gary Thomas#### eCos is free software; you can redistribute it and/or modify it under## the terms of the GNU General Public License as published by the Free## Software Foundation; either version 2 or (at your option) any later version.#### eCos is distributed in the hope that it will be useful, but WITHOUT ANY## WARRANTY; without even the implied warranty of MERCHANTABILITY or## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License## for more details.#### You should have received a copy of the GNU General Public License along## with eCos; if not, write to the Free Software Foundation, Inc.,## 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.#### As a special exception, if other files instantiate templates or use macros## or inline functions from this file, or you compile this file and link it## with other works to produce a work based on this file, this file does not## by itself cause the resulting work to be covered by the GNU General Public## License. However the source code for this file must still be made available## in accordance with section (3) of the GNU General Public License.#### This exception does not invalidate any other reasons why a work based on## this file might be covered by the GNU General Public License.#### Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.## at http://sources.redhat.com/ecos/ecos-license/## -------------------------------------------#####ECOSGPLCOPYRIGHTEND##### ====================================================================######DESCRIPTIONBEGIN###### Author(s): wpd# Original data: hmt# Contributors:# Date: YYYY-MM-DD######DESCRIPTIONEND###### ====================================================================cdl_package CYGPKG_HAL_POWERPC_VADS {display "MPC8260 VADS board"parent CYGPKG_HAL_POWERPCrequires CYGPKG_HAL_POWERPC_MPC8260define_header hal_powerpc_vads.hinclude_dir cyg/haldescription "The VADS HAL package provides the support needed to runeCos on a Mototola MPC8260 VADS board."compile hal_diag.c hal_aux.c vads.Simplements CYGINT_HAL_DEBUG_GDB_STUBS# removed by WPD for nowimplements CYGINT_HAL_DEBUG_GDB_STUBS_BREAKimplements CYGINT_HAL_VIRTUAL_VECTOR_SUPPORT# added by WPD for now# Note: uncomment this to get old-style debug behaviour# implements CYGINT_HAL_VIRTUAL_VECTOR_SUPPORT_NOT_GUARANTEEDdefine_proc {puts $::cdl_system_header "#define CYGBLD_HAL_TARGET_H <pkgconf/hal_powerpc_mpc8260.h>"puts $::cdl_system_header "#define CYGBLD_HAL_PLATFORM_H <pkgconf/hal_powerpc_vads.h>"puts $::cdl_header "#define HAL_PLATFORM_CPU \"PowerPC MPC8260\""puts $::cdl_header "#define HAL_PLATFORM_BOARD \"Voyager ADS\""puts $::cdl_header "#define HAL_PLATFORM_EXTRA \"\""}cdl_component CYG_HAL_STARTUP {display "Startup type"flavor datalegal_values {"RAM" "ROM"}default_value {"RAM"}no_definedefine -file system.h CYG_HAL_STARTUPdescription "This option is used to control where the application program willrun, either from RAM or ROM (flash) memory. ROM based applicationsmust be self contained, while RAM applications will typically assumethe existence of a debug environment, such as GDB stubs."cdl_option DCSPRI_HAL_VADS_ROM_MLT {display "Memory Layout for ROM Startup"flavor datalegal_values {"LOW" "HIGH" "RAM"}default_value {"HIGH"}description "This option selects which memory layout file should beused when configuring the VADS board for ROM startup.The LOW option selects the memory layout for an imagestored at the beginning of the FLASH. It should beused when the (hard reset) IP and boot memory spaceare both mapped to address 0.The HIGH option selects the memory layout for an imagestored in the last Megabyte of FLASH. It should beused when the (hard reset) IP maps the interruptvector base address to 0xFFF00000 and the boot memoryspace to the last 32 Megabytes of FLASH.The RAM option is a hack used to place the ROM imagein RAM in order to simplify the development of a ROMmonitor by using the existing ROM monitor to load itinto RAM, but pretend like it is in ROM."}}cdl_option CYGHWR_HAL_POWERPC_DISABLE_MMU {display "DISABLE MMU"flavor booldefault_value 1# calculated 1description "This option will disable the MMU enabled."}cdl_option CYGHWR_HAL_POWERPC_BOARD_SPEED {display "Development board clock speed (MHz)"flavor datalegal_values 45 60 66default_value 66description "The Delphi TigerSHARC-6 board will probably run at either45 or 60 MHz. In the short term, however, we will be usingan MPC8260ADS board running at 66 MHz. Select the clockspeed appropriate for your board so that the system can setthe serial baud rate correctly, amongst other things."}# Real-time clock/counter specificscdl_component CYGNUM_HAL_RTC_CONSTANTS {display "Real-time clock constants."description "Period is busclock/4/CYGNUM_HAL_RTC_DENOMINATOR. VERIFY THIS!!!"flavor noneno_definecdl_option CYGNUM_HAL_RTC_NUMERATOR {display "Real-time clock numerator"flavor datacalculated 1000000000}cdl_option CYGNUM_HAL_RTC_DENOMINATOR {display "Real-time clock denominator"flavor datadefault_value 100description "This option selects the number of system clock 'ticks'per second. This rate is sometimes known as the heartbeat rate."}cdl_option CYGNUM_HAL_RTC_PERIOD {display "Real-time clock period"flavor datacalculated { (((CYGHWR_HAL_POWERPC_BOARD_SPEED*1000000)/4)/CYGNUM_HAL_RTC_DENOMINATOR) }}}cdl_component CYGBLD_GLOBAL_OPTIONS {display "Global build options"flavor nonedescription "Global build options including control overcompiler flags, linker flags and choice of toolchain."parent CYGPKG_NONEcdl_option CYGBLD_GLOBAL_COMMAND_PREFIX {display "Global command prefix"flavor datano_definedefault_value { "powerpc-eabi" }description "This option specifies the command prefix used wheninvoking the build tools."}cdl_option CYGBLD_GLOBAL_CFLAGS {display "Global compiler flags"flavor datano_definedefault_value { "-msoft-float -mcpu=603e -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" }description "This option controls the global compiler flags whichare used to compile all packages bydefault. Individual packages may defineoptions which override these global flags."}cdl_option CYGBLD_GLOBAL_LDFLAGS {display "Global linker flags"flavor datano_definedefault_value { "-msoft-float -mcpu=603e -g -nostdlib -Wl,--gc-sections -Wl,-static" }description "This option controls the global linker flags. Individualpackages may define options which override these global flags."}cdl_option CYGBLD_BUILD_GDB_STUBS {display "Build GDB stub ROM image"default_value 0requires { CYG_HAL_STARTUP == "ROM" }requires CYGSEM_HAL_ROM_MONITORrequires CYGBLD_BUILD_COMMON_GDB_STUBSrequires CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBSrequires CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT# We don't support GDB BREAK (yet)# requires ! CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT#requires CYGDBG_HAL_DEBUG_GDB_THREAD_SUPPORTrequires ! CYGDBG_HAL_COMMON_INTERRUPTS_SAVE_MINIMUM_CONTEXTrequires ! CYGDBG_HAL_COMMON_CONTEXT_SAVE_MINIMUMno_definedescription "This option enables the building of the GDB stubs for theboard. The common HAL controls takes care of most of thebuild process, but the platform CDL takes care of creatingan S-Record data file. -- This needs more work"make -priority 320 {<PREFIX>/bin/gdb_module.bin : <PREFIX>/bin/gdb_module.img$(OBJCOPY) -O srec --srec-forceS3 $< $(@:.bin=.s19)$(OBJCOPY) -O binary $< $@# }# Changed the .srec extentsion to .txt for ease of downloading with hyperterm# Changed the .txt extentsion to .s19 for ease of downloading with OCD}}cdl_component CYGPKG_HAL_POWERPC_VADS_OPTIONS {display "MPC8260 VADS build options"flavor nonedescription "Package specific build options including control overcompiler flags used only in building this package,and details of which tests are built."cdl_option CYGPKG_HAL_POWERPC_VADS_CFLAGS_ADD {display "Additional compiler flags"flavor datano_definedefault_value { "" }description "This option modifies the set of compiler flags forbuilding the VADS HAL. These flags are used in additionto the set of global flags."}cdl_option CYGPKG_HAL_POWERPC_VADS_CFLAGS_REMOVE {display "Suppressed compiler flags"flavor datano_definedefault_value { "" }description "This option modifies the set of compiler flags forbuilding the VADS HAL. These flags are removed fromthe set of global flags if present."}}cdl_component CYGHWR_MEMORY_LAYOUT {display "Memory layout"flavor datano_definecalculated { CYG_HAL_STARTUP == "RAM" ? "powerpc_vads_ram" : \"powerpc_vads_rom" }cdl_option CYGHWR_MEMORY_LAYOUT_LDI {display "Memory layout linker script fragment"flavor datano_definedefine -file system.h CYGHWR_MEMORY_LAYOUT_LDIcalculated { CYG_HAL_STARTUP == "RAM" ? "<pkgconf/mlt_powerpc_vads_ram.ldi>" : \DCSPRI_HAL_VADS_ROM_MLT == "LOW" ? "<pkgconf/mlt_powerpc_vads_romlow.ldi>" : \DCSPRI_HAL_VADS_ROM_MLT == "HIGH" ? "<pkgconf/mlt_powerpc_vads_romhigh.ldi>" : \"<pkgconf/mlt_powerpc_vads_romram.ldi>" }}cdl_option CYGHWR_MEMORY_LAYOUT_H {display "Memory layout header file"flavor datano_definedefine -file system.h CYGHWR_MEMORY_LAYOUT_Hcalculated { CYG_HAL_STARTUP == "RAM" ? "<pkgconf/mlt_powerpc_vads_ram.h>" : \DCSPRI_HAL_VADS_ROM_MLT == "LOW" ? "<pkgconf/mlt_powerpc_vads_romlow.h>" : \DCSPRI_HAL_VADS_ROM_MLT == "HIGH" ? "<pkgconf/mlt_powerpc_vads_romhigh.h>" : \"<pkgconf/mlt_powerpc_vads_romram.h>" }}}cdl_option CYGSEM_HAL_ROM_MONITOR {display "Behave as a ROM monitor"flavor booldefault_value 0parent CYGPKG_HAL_ROM_MONITORrequires { CYG_HAL_STARTUP == "ROM" }description "Enable this option if this program is to be used as a ROM monitor,i.e. applications will be loaded into RAM on the board, and thisROM monitor may process exceptions or interrupts generated from theapplication. This enables features such as utilizing a separateinterrupt stack when exceptions are generated."}cdl_option CYGSEM_HAL_USE_ROM_MONITOR {display "Work with a ROM monitor"flavor booldefault_value { (CYG_HAL_STARTUP == "RAM" &&!CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS &&!CYGINT_HAL_USE_ROM_MONITOR_UNSUPPORTED &&!CYGSEM_HAL_POWERPC_COPY_VECTORS) ? 1 : 0 }parent CYGPKG_HAL_ROM_MONITORrequires { CYG_HAL_STARTUP == "RAM" }requires ! CYGSEM_HAL_POWERPC_COPY_VECTORSrequires ! CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBSrequires ! CYGINT_HAL_USE_ROM_MONITOR_UNSUPPORTEDdescription "Allow coexistence with ROM monitor (CygMon or GDB stubs) byonly initializing interrupt vectors on startup, thus leavingexception handling to the ROM monitor."}# FIXME: the option above should be adjusted to select between monitor# variantscdl_option CYGSEM_HAL_USE_ROM_MONITOR_GDB_stubs {parent CYGPKG_HAL_ROM_MONITORdisplay "Bad CDL workaround"calculated 1active_if CYGSEM_HAL_USE_ROM_MONITOR}cdl_component CYGPKG_REDBOOT_HAL_OPTIONS {display "Redboot HAL options"flavor noneno_defineparent CYGPKG_REDBOOTactive_if CYGPKG_REDBOOTdescription "This option lists the target's requirements for a valid Redbootconfiguration."# compile -library=libextras.a redboot_cmds.ccdl_option CYGBLD_BUILD_REDBOOT_BIN {display "Build Redboot ROM binary image"active_if CYGBLD_BUILD_REDBOOTdefault_value 1no_definedescription "This option enables the conversion of the Redboot ELFimage to a binary image suitable for ROM programming.This needs more work."make -priority 325 {<PREFIX>/bin/redboot.bin : <PREFIX>/bin/redboot.elf$(OBJCOPY) --strip-debug $< $(@:.bin=.img)$(OBJCOPY) -O srec $< $(@:.bin=.srec)$(OBJCOPY) -O srec --change-address=0x02040000 $< $(@:.bin=.ppcbug)$(OBJCOPY) -O binary $< $@}}}}
