Changeset 3538a0c in ada-examples
- Timestamp:
- 09/17/07 21:49:50 (15 years ago)
- Branches:
- ada-examples-4-10-branch, ada-examples-4-8-branch, ada-examples-4-9-branch, master
- Children:
- 0855e87, fd0047e
- Parents:
- ed30e2b
- Location:
- hello_world_ada
- Files:
-
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
hello_world_ada/ChangeLog
red30e2b r3538a0c 1 2007-09-17 Joel Sherrill <joel.sherrill@oarcorp.com> 2 3 * Makefile.anybsp: pc86 now builds with Makefile.anybsp. 4 * Makefile.pc386: Removed. 5 1 6 2007-08-17 Joel Sherrill <joel.sherrill@oarcorp.com> 2 7 -
hello_world_ada/Makefile.anybsp
red30e2b r3538a0c 1 1 # 2 # Makefile for hello world example -- any BSP without special help2 # Makefile for Ada sockets example 3 3 # 4 # Directly produces an executable for a nyBSP which directly runs4 # Directly produces an executable for a BSP which directly runs 5 5 # the format (usually ELF) produced by just linking an application. 6 # There are a couple of BSP families which require just a bit of 7 # assistance that this Makefile knows about -- gen5200 and pc386. 6 8 # The executables produced by this Makefile should run on at least the 7 9 # following BSPs: 8 10 # arm/edb7312 11 # i386/pc386 9 12 # mips/jmr3904 13 # powerpc/icecube 10 14 # powerpc/psim 11 15 # powerpc/score603e 12 16 # sparc/erc32 13 # sparc/sis 17 # sparc/leon2 18 # sparc/leon3 19 # 20 # Some BSPs require extra manipulation of the ELF file before it can 21 # be run on the target hardware. 14 22 # 15 23 16 MAIN=hello24 PROGRAM=hello 17 25 18 26 include $(RTEMS_MAKEFILE_PATH)/Makefile.inc 19 20 27 include $(RTEMS_CUSTOM) 21 28 include $(PROJECT_ROOT)/make/leaf.cfg 22 29 30 # GEN5200 Specific Information 23 31 ifeq ($(RTEMS_BSP_FAMILY),gen5200) 24 LINKARGS+=-qnolinkcmds -T$(RTEMS_LINKCMDS) 32 LINKARGS+=-qnolinkcmds -T$(RTEMS_LINKCMDS) 33 endif 34 35 # PC386 Specific Information 36 ifeq ($(RTEMS_BSP_FAMILY),pc386) 37 HEADERADDR=0x00097E00 38 START16FILE=$(RTEMS_MAKEFILE_PATH)/lib/start16.bin 39 START16ADDR=0x00097C00 40 RELOCADDR=0x00100000 41 LINKARGS+= -Wl,-Ttext,$(RELOCADDR) 25 42 endif 26 43 27 44 # Tool helpers 28 rtemsdir=${RTEMS_MAKEFILE_PATH}29 45 GNATMAKE=$(AS:as=gnatmake) 30 CARGS =-B${ rtemsdir}/lib/ -specs bsp_specs -qrtems $(CPU_CFLAGS)46 CARGS =-B${RTEMS_MAKEFILE_PATH}/lib/ -specs bsp_specs -qrtems $(CPU_CFLAGS) 31 47 CARGS+=-DGNAT_MAIN_STACKSPACE=100 32 48 33 all: init.o 34 $(GNATMAKE) -v -O -gnata -gnatE -gnato $(MAIN) -g \ 49 all: $(PROGRAM) 50 51 $(PROGRAM): init.o *.adb 52 $(GNATMAKE) -v -O -gnata -gnatE -gnato $(@) -g \ 53 -I../src \ 35 54 -bargs -Mgnat_main \ 36 55 -largs $(CARGS) $(LINKARGS) init.o 37 $(SIZE) $(MAIN) 56 $(SIZE) $(@) 57 ifeq ($(RTEMS_BSP_FAMILY),pc386) 58 mv $(@) $(@).obj 59 $(OBJCOPY) -O elf32-i386 \ 60 --remove-section=.rodata \ 61 --remove-section=.comment \ 62 --remove-section=.note \ 63 --strip-unneeded $(@).obj $(@) 64 $(OBJCOPY) -O binary $(@).obj $(@).bin 65 $(RTEMS_MAKEFILE_PATH)/build-tools/bin2boot -v $(@).bt $(HEADERADDR) \ 66 $(START16FILE) $(START16ADDR) 0 $(@).bin $(RELOCADDR) 0 67 else 68 endif 38 69 39 70 init.o: init.c … … 41 72 42 73 clean: 43 rm -f b~ $(MAIN).* *.o *.ali $(MAIN)74 rm -f b~*.* *.o *.ali $(EXAMPLES) 44 75 rm -f *.num *.exe *.obj *.bin *.bt
Note: See TracChangeset
for help on using the changeset viewer.