URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [hal/] [powerpc/] [mbx/] [v2_0/] [cdl/] [hal_powerpc_mbx.cdl] - Rev 174
Compare with Previous | Blame | View Log
# ====================================================================## hal_powerpc_mbx.cdl## PowerPC/MBX 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): jskov# Original data: hmt# Contributors:# Date: 1999-11-02######DESCRIPTIONEND###### ====================================================================cdl_package CYGPKG_HAL_POWERPC_MBX {display "Motorola MBX PowerPC evaluation board"parent CYGPKG_HAL_POWERPCrequires CYGPKG_HAL_POWERPC_MPC8xxdefine_header hal_powerpc_mbx.hinclude_dir cyg/haldescription "The MBX HAL package provides the support needed to runeCos on a Motorola MBX board equipped with a PowerPC processor."compile hal_diag.c hal_aux.c mbx.Simplements CYGINT_HAL_DEBUG_GDB_STUBSimplements CYGINT_HAL_DEBUG_GDB_STUBS_BREAKimplements CYGINT_HAL_VIRTUAL_VECTOR_SUPPORTimplements CYGNUM_HAL_QUICC_SMC1define_proc {puts $::cdl_system_header "#define CYGBLD_HAL_TARGET_H <pkgconf/hal_powerpc_mpc8xx.h>"puts $::cdl_system_header "#define CYGBLD_HAL_PLATFORM_H <pkgconf/hal_powerpc_mbx.h>"puts $::cdl_header "#define HAL_PLATFORM_CPU \"PowerPC 860\""puts $::cdl_header "#define HAL_PLATFORM_BOARD \"Motorola MBX\""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 CYGHWR_HAL_POWERPC_BOARD_SPEED {display "Development board clock speed (MHz)"flavor datalegal_values 40 50default_value 50description "MBX Development Boards have various system clock speedsdepending on the processor fitted. Select the clock speedappropriate for your board so that the system can set the serialbaud rate correctly, amongst other things."}cdl_option CYGHWR_HAL_POWERPC_MBX_BOOT_32BIT_FLASH {display "Boot ROM is 32-bit Flash device"default_value 0description "MBX Development Boards have a socketed 8-bit ROM (AM27F040,AM29F040 or similar) and a permanently soldered 32-bit flashdevice. Which is used for booting is link selectable (refer tothe MBX Series documentation from Motorola). Enable this optionwhen booting from the 32-bit flash so that the correct memorytiming and access method is initialized. This considerationdoes apply to RAM start eCos applications as well as ROM startor stub ROMs."}# Real-time clock/counter specificscdl_component CYGNUM_HAL_RTC_CONSTANTS {display "Real-time clock constants."description "Period is busclock/16/100."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)/16)/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=860 -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=860 -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_SUPPORTrequires 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 suitable for programming usingthe board's EPPC-Bug firmware monitor."make -priority 320 {<PREFIX>/bin/gdb_module.bin : <PREFIX>/bin/gdb_module.img$(OBJCOPY) -O srec --change-address=0x02040000 $< $(@:.bin=.srec)$(OBJCOPY) -O binary $< $@}}}cdl_component CYGPKG_HAL_POWERPC_MBX_OPTIONS {display "MBX 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_MBX_CFLAGS_ADD {display "Additional compiler flags"flavor datano_definedefault_value { "" }description "This option modifies the set of compiler flags forbuilding the MBX HAL. These flags are used in additionto the set of global flags."}cdl_option CYGPKG_HAL_POWERPC_MBX_CFLAGS_REMOVE {display "Suppressed compiler flags"flavor datano_definedefault_value { "" }description "This option modifies the set of compiler flags forbuilding the MBX HAL. These flags are removed fromthe set of global flags if present."}cdl_option CYGPKG_HAL_POWERPC_MBX_TESTS {display "MBX tests"flavor datano_definecalculated { "tests/mbxtime" }description "This option specifies the set of tests for the MBX HAL."}}cdl_component CYGHWR_MEMORY_LAYOUT {display "Memory layout"flavor datano_definecalculated { CYG_HAL_STARTUP == "RAM" ? "powerpc_mbx_ram" : \"powerpc_mbx_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_mbx_ram.ldi>" : \"<pkgconf/mlt_powerpc_mbx_rom.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_mbx_ram.h>" : \"<pkgconf/mlt_powerpc_mbx_rom.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_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."cdl_option CYGSEM_REDBOOT_HAL_LINUX_BOOT {active_if CYGBLD_BUILD_REDBOOT_WITH_EXECdisplay "Support booting Linux via RedBoot"flavor booldefault_value 1description "This option enables RedBoot to support booting of a Linux kernel."compile -library=libextras.a redboot_linux_exec.c}cdl_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."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 $< $@}}}}
