@ -23,83 +23,40 @@
i n c l u d e $( TOPDIR ) / c o n f i g . m k
ELF = hello_world
SREC = hello_world.srec
BIN = hello_world.bin
ELF += atmel_df_pow2
SREC += atmel_df_pow2.srec
BIN += atmel_df_pow2.bin
i f e q ( $( CPU ) , m p c 8 x x )
ELF += test_burst
SREC += test_burst.srec
BIN += test_burst.bin
e n d i f
i f e q ( $( ARCH ) , i 3 8 6 )
ELF += 82559_eeprom
SREC += 82559_eeprom.srec
BIN += 82559_eeprom.bin
e n d i f
i f e q ( $( ARCH ) , p p c )
ELF += sched
SREC += sched.srec
BIN += sched.bin
e n d i f
i f e q ( $( ARCH ) , b l a c k f i n )
BFIN_BIN = smc91111_eeprom smc911x_eeprom
ELF += $( BFIN_BIN)
SREC += $( addsuffix .srec,$( BFIN_BIN) )
BIN += $( addsuffix .bin,$( BFIN_BIN) )
e n d i f
# The following example is pretty 8xx specific...
i f e q ( $( CPU ) , m p c 8 x x )
ELF += timer
SREC += timer.srec
BIN += timer.bin
e n d i f
# The following example is 8260 specific...
i f e q ( $( CPU ) , m p c 8 2 6 0 )
ELF += mem_to_mem_idma2intr
SREC += mem_to_mem_idma2intr.srec
BIN += mem_to_mem_idma2intr.bin
e n d i f
# Demo for 52xx IRQs
i f e q ( $( CPU ) , m p c 5 x x x )
ELF += interrupt
SREC += interrupt.srec
BIN += interrupt.bin
e n d i f
# Utility for resetting i82559 EEPROM
i f e q ( $( BOARD ) , o x c )
ELF += eepro100_eeprom
SREC += eepro100_eeprom.srec
BIN += eepro100_eeprom.bin
e n d i f
COBJS := $( SREC:.srec= .o)
ELF-$(ARCH) :=
ELF-$(BOARD) :=
ELF-$(CPU) :=
ELF-y := hello_world
ELF-$(CONFIG_SMC91111) += smc91111_eeprom
ELF-$(CONFIG_SMC911X) += smc911x_eeprom
ELF-$(CONFIG_SPI_FLASH_ATMEL) += atmel_df_pow2
ELF-i386 += 82559_eeprom
ELF-mpc5xxx += interrupt
ELF-mpc8xx += test_burst timer
ELF-mpc8260 += mem_to_mem_idma2intr
ELF-ppc += sched
ELF-oxc += eepro100_eeprom
ELF := $( ELF-y) $( ELF-$( ARCH) ) $( ELF-$( BOARD) ) $( ELF-$( CPU) )
SREC = $( addsuffix .srec,$( ELF) )
BIN = $( addsuffix .bin,$( ELF) )
COBJS := $( ELF:= .o)
LIB = $( obj) libstubs.a
LIBAOBJS =
i f e q ( $( ARCH ) , p p c )
LIBAOBJS += $( ARCH) _longjmp.o $( ARCH) _setjmp.o
e n d i f
i f e q ( $( CPU ) , m p c 8 x x )
LIBAOBJS += test_burst_lib.o
e n d i f
LIBCOBJS = stubs.o
LIBAOBJS-$(ARCH) :=
LIBAOBJS-$(CPU) :=
LIBAOBJS-ppc += $( ARCH) _longjmp.o $( ARCH) _setjmp.o
LIBAOBJS-mpc8xx += test_burst_lib.o
LIBAOBJS := $( LIBAOBJS-$( ARCH) ) $( LIBAOBJS-$( CPU) )
LIBCOBJS = stubs.o
LIBOBJS = $( addprefix $( obj) ,$( LIBAOBJS) $( LIBCOBJS) )
SRCS := $( COBJS:.o= .c) $( LIBCOBJS:.o= .c) $( if $( LIBAOBJS) ,$( LIBAOBJS:.o= .S) )
SRCS := $( COBJS:.o= .c) $( LIBCOBJS:.o= .c) $( LIBAOBJS:.o= .S)
OBJS := $( addprefix $( obj) ,$( COBJS) )
ELF := $( addprefix $( obj) ,$( ELF) )
BIN := $( addprefix $( obj) ,$( BIN) )