SV: Fix to ROMRAM applications for EB40a

Andrew Lunn andrew@lunn.ch
Sun Sep 14 13:23:00 GMT 2003


On Sun, Sep 14, 2003 at 03:04:56PM +0200, ?yvind Harboe wrote:
> >> +	ROMRAM now copies to internal SRAM instead of the external
> >> +	RAM board @ 0x2000000.
> >
> >This changes the current behaviour in an unconditional way. Could you
> >change this so its controlled by CDL and by default uses the old
> >behaviour.
> 
> How can I make .ldi scripts configurable via CDL?

Unfortunately, you don't. You have multiple .ldi scripts and use CDL to
pick the correct one. You need to edit this bit and the same for the
header file.

        cdl_option CYGHWR_MEMORY_LAYOUT_LDI {
            display "Memory layout linker script fragment"
            flavor data
            no_define
            define -file system.h CYGHWR_MEMORY_LAYOUT_LDI
            calculated { (CYG_HAL_STARTUP == "RAM") ? "<pkgconf/mlt_arm_at91_eb40a_ram.ldi>" :
                         (CYG_HAL_STARTUP == "ROMRAM") ? "<pkgconf/mlt_arm_at91_eb40a_romram.ldi>" :
                                                      "<pkgconf/mlt_arm_at91_eb40a_rom.ldi>" }
        }


        Andrew



More information about the Ecos-patches mailing list