From d8490491e672cef628528904df559cdc618bbfd7 Mon Sep 17 00:00:00 2001 From: oharboe Date: Wed, 14 Jan 2009 19:30:51 +0000 Subject: Alan Carvalho de Assis - testcase git-svn-id: svn://svn.berlios.de/openocd/trunk@1319 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- testing/examples/ledtest-imx31pdk/Makefile | 42 ++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 testing/examples/ledtest-imx31pdk/Makefile (limited to 'testing/examples/ledtest-imx31pdk/Makefile') diff --git a/testing/examples/ledtest-imx31pdk/Makefile b/testing/examples/ledtest-imx31pdk/Makefile new file mode 100644 index 00000000..fc643adc --- /dev/null +++ b/testing/examples/ledtest-imx31pdk/Makefile @@ -0,0 +1,42 @@ +# $Header: $ +# This will make the test program for ARM. + +PROC=arm +TYPE=none-linux-gnueabi +LDSCRIPT=ldscript + +PATH:=/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/:$(PATH) +CC=$(PROC)-$(TYPE)-gcc +AS=$(PROC)-$(TYPE)-as +AR=$(PROC)-$(TYPE)-ar +LD=$(PROC)-$(TYPE)-ld +NM=$(PROC)-$(TYPE)-nm +OBJDUMP=$(PROC)-$(TYPE)-objdump +CFLAGS= -g -c -mcpu=arm1136j-s + +all: test.elf + +# Make a little endian image: +# In Eclipse, add the line : +# source gdbinit +# to : Run -> Debug... (menu) -> Commands (tab): Commands (listbox) +# To start gdb from a window use : arm-elf-gdb --command=gdbinit +test.elf: test.c Makefile ldscript crt0.S + $(CC) $(CFLAGS) -o crt0.o crt0.S + $(CC) $(CFLAGS) -o test.o test.c + $(LD) -g -v -T$(LDSCRIPT) -o test.elf crt0.o test.o + $(NM) test.elf + + +dump: + $(OBJDUMP) --all-headers test.elf + +dump_test: + $(OBJDUMP) --disassemble test.elf + +dump_full: + $(OBJDUMP) --full-contents test.elf + +clean: + -/bin/rm -f *.o *~ test.elf + -- cgit v1.2.3