⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hal_h8s_h8s2674_edosk2674.cdl

📁 ecos移植到R8H系列的源码。源码包来自http://www.cetoni.de/develop/develop_ecosh8s_en.html
💻 CDL
📖 第 1 页 / 共 2 页
字号:
        
        cdl_option CYGNUM_HAL_RTC_FREQUENCY {
            display       "Real-time clock frequency"
            flavor        data
            calculated    (1000000000 * CYGNUM_HAL_RTC_DENOMINATOR / CYGNUM_HAL_RTC_NUMERATOR)
            description   "
                This is the frequency of the of the realtime clock. This is the clock
                source for the eCos operating system. The frequency is calculated from numerator 
                and denominator."    
        }
    }

    cdl_option CYGHWR_HAL_H8S_CPG_INPUT {
        display "OSC/Clock Frequency"
	flavor	   data
	calculated 33000000
	description   "
	    The MCU crystal frequency has been chosen to support the fastest operation. 
	    The value of the crystal is 33 MHz."
    }

    cdl_component CYGBLD_GLOBAL_OPTIONS {
        display "Global build options"
        flavor  none
        parent  CYGPKG_NONE
        description   "
	    Global build options including control over
	    compiler flags, linker flags and choice of toolchain."


        cdl_option CYGBLD_GLOBAL_COMMAND_PREFIX {
            display "Global command prefix"
            flavor  data
            no_define
            default_value { "h8300-elf" }
            description "
                This option specifies the command prefix used when
                invoking the build tools."
        }

        cdl_option CYGBLD_GLOBAL_CFLAGS {
            display "Global compiler flags"
            flavor  data
            no_define
            default_value { CYGBLD_BUILD_FOR_DEBUG == 0 ? "-ms -ms2600 -mint32 -mecos -g -O2 -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -fsigned-char -fdata-sections -fno-rtti -fno-exceptions -finit-priority -finline-limit=100000" : \
                                                          "-ms -ms2600 -mint32 -mecos -g -g2 -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -fsigned-char -fdata-sections -fno-rtti -fno-exceptions -finit-priority -finline-limit=100000" }
            description   "
                This option controls the global compiler flags which
                are used to compile all packages by
                default. Individual packages may define
                options which override these global flags."
        }

        cdl_option CYGBLD_GLOBAL_LDFLAGS {
            display "Global linker flags"
            flavor  data
            no_define
            default_value { CYGBLD_BUILD_FOR_DEBUG == 0 ? "-ms -ms2600 -mint32 -mecos -g -nostdlib -Wl,--gc-sections -Wl,-static" : \
                                                          "-ms -ms2600 -mint32 -mecos -g -g2 -nostdlib -Wl,--gc-sections -Wl,-static" }
            description   "
                This option controls the global linker flags. Individual
                packages may define options which override these global flags."
        }
        
        cdl_option CYGBLD_BUILD_FOR_DEBUG {
            display "Build for debugging"
            default_value    0
            description "
                    This option controls the global compiler and linker flags. If active the
                    optimization level is 0 and debug level is 2"
        }
        
        cdl_option CYGBLD_BUILD_GDB_STUBS {
            display "Build GDB stub ROM image"
            default_value 0
            requires CYGSEM_HAL_ROM_MONITOR
            requires CYGBLD_BUILD_COMMON_GDB_STUBS
            requires CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS
            requires CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT
            requires CYGDBG_HAL_DEBUG_GDB_THREAD_SUPPORT
            no_define
            description "
                This option enables the building of the GDB stubs for the
                board. The common HAL controls takes care of most of the
                build process, but the final conversion from ELF image to
                binary data is handled by the platform CDL, allowing
                relocation of the data if necessary."
            
            make -priority 320 {
                <PREFIX>/bin/gdb_module.bin : <PREFIX>/bin/gdb_module.elf
                $(OBJCOPY) --strip-debug $< $(@:.bin=.img) 
                $(OBJCOPY) -O srec $< $(@:.bin=.srec)
                $(OBJCOPY) -O binary $< $@
            }
        }
    }

    
    cdl_option CYGSEM_HAL_ROM_MONITOR {
        display       "Behave as a ROM monitor"
        flavor        bool
        default_value { CYGPKG_REDBOOT ? 1 : 0 }
        parent        CYGPKG_HAL_ROM_MONITOR
        requires      { CYG_HAL_STARTUP == "ROM" ||    \
                        CYG_HAL_STARTUP == "ROMRAM" || \
                        CYGBLD_BUILD_REDBOOT}
        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 this
            ROM monitor may process exceptions or interrupts generated from the
            application. This enables features such as utilizing a separate
            interrupt stack when exceptions are generated. You should also
            enable this option if you build a RedBoot image for RAM startup. This
            is possible for H8S architecture because a shadow vector table in RAM
            is used for processing interrupts which can be overwritten by a RAM
            RedBoot image."
    }
    
    cdl_option CYGSEM_HAL_USE_ROM_MONITOR {
         display       "Work with a ROM monitor"
         flavor        booldata
         legal_values  { "Generic" "GDB_stubs" }
         default_value { (CYG_HAL_STARTUP == "RAM" || CYG_HAL_STARTUP == "RAMAPP") ? "GDB_stubs" : "" }
         parent        CYGPKG_HAL_ROM_MONITOR
         requires      { CYG_HAL_STARTUP == "RAM" || CYG_HAL_STARTUP == "RAMAPP" }
         description   "
             Support can be enabled for different varieties of ROM monitor.
             This support changes various eCos semantics such as the encoding
             of diagnostic output, or the overriding of hardware interrupt
             vectors.
             Firstly there is \"Generic\" support which prevents the HAL
             from overriding the hardware vectors that it does not use, to
             instead allow an installed ROM monitor to handle them. This is
             the most basic support which is likely to be common to most
             implementations of ROM monitor.
             \"GDB_stubs\" provides support when GDB stubs are included in
             the ROM monitor or boot ROM."
    }
     
   
    cdl_option CYGBLD_BUILD_REDBOOT_BIN {
        display       "Build Redboot ROM binary image"
        parent        CYGPKG_REDBOOT_H8S_OPTIONS
        active_if     CYGBLD_BUILD_REDBOOT
        default_value 1
        no_define
        description "This option enables the conversion of the Redboot ELF
                     image 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 binary $< $@
        }
    }
        
    cdl_option CYGDAT_REDBOOT_EDOSK2674_LINUX_BOOT_ENTRY {
        display        "Default kernel entry address"
        flavor         data
        parent         CYGSEM_REDBOOT_H8S_LINUX_BOOT
        default_value  0x430000
        description "
            Staring address for Linux kernel excecution."
    }
            
    cdl_option CYGDAT_REDBOOT_EDOSK2674_LINUX_COMMAND_START {
        display        "Default kernel command line start address"
        flavor         data
        parent         CYGSEM_REDBOOT_H8S_LINUX_BOOT
        default_value  0xffbe00
        description "
            Starting address of command line in memory. "
    }

    cdl_option CYGDAT_REDBOOT_EDOSK2674_LINUX_BOOT_COMMAND_LINE {
        display        "Default command line"
        flavor         data
        parent         CYGSEM_REDBOOT_H8S_LINUX_BOOT
        default_value  { "console=/dev/ttySC2" }
        description "
            Command line to pass to the linux kernel"
    }
    
    cdl_option CYGPKG_HAL_H8S_H8S2674_EDOSK2674_INTERACTIVE_TEST {
	    display "Build interactive tests"
	    flavor  bool
	    no_define
	    default_value 0
	    description   "
            This option enables the building of EDOSK-2674 tests
            which require user interactivity in order to pass. (For
            example the NMI switch test) These tests are built 
            separately since they only make sense to use interactively."
    }

    cdl_component CYGPKG_HAL_H8S_H8S2674_EDOSK2674_OPTIONS {
        display "EDOSK-2674 build options"
        flavor  none
        description   "
	    Package specific build options including control over
	    compiler flags used only in building this package,
	    and details of which tests are built."

        cdl_option CYGPKG_HAL_H8S_H8S2674_EDOSK2674_TESTS {
            display "EDOSK-2674 tests"
            flavor  data
            no_define
            calculated { 
                    ""
                    . ((CYGPKG_HAL_H8S_H8S2674_EDOSK2674_INTERACTIVE_TEST) ? (CYGFUN_KERNEL_API_C) ? "tests/knmi" : "" : "") 
            }

            description   "
                This option specifies the set of tests for the
                EDOSK-2674 platform."
        }
    }

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -