first steps to make Makefile machine independent

This commit is contained in:
Markus Fröschle
2013-10-29 14:43:53 +00:00
parent dde60b17b8
commit a373d55795
4 changed files with 47 additions and 5 deletions

View File

@@ -1,10 +1,19 @@
#ifdef MACHINE_FIREBEE
#include "firebee.h"
#endif /* MACHINE_FIREBEE */
#ifdef MACHINE_M5484LITE
#include "m5484l.h"
#endif /* MACHINE_M5484LITE */
MEMORY
{
bas_rom (RX) : ORIGIN = TARGET_ADDRESS, LENGTH = 0x00100000
/*
* target to copy BaS data segment to. 20k should be enough for now
*/
bas_ram (WX) : ORIGIN = 0x1FFFC000, LENGTH = 0x005000
bas_ram (WX) : ORIGIN = 0x1FFFB000, LENGTH = 0x005000
}
SECTIONS
@@ -13,6 +22,7 @@ SECTIONS
.text :
{
objs/startcf.o(.text) /* this one is the entry point so it must be the first */
objs/sysinit.o(.text)
objs/fault_vectors.o(.text)
objs/init_fpga.o(.text)
@@ -90,8 +100,8 @@ SECTIONS
*/
/* SDRAM Initialization @ 0000_0000 - 1FFF_FFFF 512Mbytes */
___SDRAM = 0x00000000;
___SDRAM_SIZE = 0x20000000;
___SDRAM = SDRAM_START;
___SDRAM_SIZE = SDRAM_SIZE;
_SDRAM_VECTOR_TABLE = ___SDRAM;
/* ST-RAM */