Changeset 4e6f091 in ada-examples


Ignore:
Timestamp:
Aug 22, 2008, 3:48:16 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
ada-examples-4-10-branch, ada-examples-4-9-branch, master
Children:
57b8f81, 9dacb84
Parents:
993437a
Message:

2008-08-22 Joel Sherrill <joel.sherrill@…>

  • Makefile.shared: Update Makefiles.
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r993437a r4e6f091  
     12008-08-22      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * Makefile.shared: Update Makefiles.
     4
    152008-07-23      Joel Sherrill <joel.sherrill@oarcorp.com>
    26
  • Makefile.shared

    r993437a r4e6f091  
    44
    55# Tool helpers
    6 CARGS =-B${RTEMS_MAKEFILE_PATH}/lib/ -specs=bsp_specs -qrtems $(CPU_CFLAGS)
     6SPECFLAGS =-B${RTEMS_MAKEFILE_PATH}/lib/ -specs=bsp_specs -qrtems
     7CFLAGS = $(CPU_CFLAGS)
    78
    89# GEN5200 Specific Information
     
    2829endif
    2930
     31ifeq ($(NEED_NETWORK),yes)
     32#NETWORK_HFILE= ../networkconfig_$(RTEMS_BSP).h
     33#NETWORK_HFILE= ../networkconfig.h
     34endif
     35
     36
     37DEFINES += -D$(RTEMS_BSP)
    3038CFLAGS += $(DEFINES)
     39
     40RTS= --RTS=$(shell $(CC) -print-multi-directory $(CFLAGS))
    3141
    3242all:  $(PROGRAM).exe
    3343
    34 $(PROGRAM).exe: rtems_init.o $(FILESYSTEM_OBJS) $(PROGRAM).adb $(EXTRA_OBJS)
    35         $(AS:as=gnatmake) \
    36             -g -I$(RTEMS_MAKEFILE_PATH)/lib/include/adainclude \
    37             -v $(EXTRA_GNATFLAGS) \
     44joel:
     45        @echo CFLAGS=$(CFLAGS)
     46        @echo CC=$(CC)
     47        @echo RTS=$(RTS)
     48        $(CC) -print-multi-directory $(CFLAGS)
     49        $(CC) -mcpu=403 -print-multi-directory
     50
     51$(PROGRAM).exe: rtems_init.o $(FILESYSTEM_OBJS) $(EXTRA_OBJS)
     52        $(AS:as=gnatmake) -v $(EXTRA_GNATFLAGS) \
     53            -I$(RTEMS_MAKEFILE_PATH)/lib/include/adainclude \
    3854            -O -gnata -gnatE -gnato -g $(PROGRAM) -o $(@) \
    3955            -bargs -Mgnat_main \
    40             -largs $(CARGS) $(LINKARGS) rtems_init.o $(FILESYSTEM_OBJS) \
    41             $(EXTRA_OBJS)
    42         $(SIZE) $(@)
     56            -largs $(SPECFLAGS) $(CFLAGS) $(LINKARGS) \
     57                rtems_init.o $(FILESYSTEM_OBJS) \
     58             $(EXTRA_OBJS)
    4359ifeq ($(RTEMS_BSP_FAMILY),pc386)
    4460        mv $(@) $(@).obj
     
    5167        $(RTEMS_MAKEFILE_PATH)/build-tools/bin2boot -v $(@).bt $(HEADERADDR) \
    5268          $(START16FILE) $(START16ADDR) 0 $(@).bin $(RELOCADDR) 0
    53         # rm -f $(@).obj
    54         rm -f $(@).bin
     69endif
     70ifeq ($(RTEMS_BSP),icecube)
     71        $(OBJCOPY) -R -S -O binary obj/$(PROGRAM) obj/$(PROGRAM).bin
     72        cat obj/$(PROGRAM).bin | gzip -9 >obj/$(PROGRAM).gz
     73        mkimage \
     74          -A ppc -O rtems -T kernel -a 0x40000 -e 0x40000 -n "RTEMS" \
     75          -d obj/$(PROGRAM).gz obj/$(PROGRAM).img
     76        cp obj/$(PROGRAM).img ../../../../tftpboot/main.img
     77        rm -f obj/$(PROGRAM).gz obj/$(PROGRAM).img
    5578endif
    5679
    57 rtems_init.o: ../rtems_init.c ../networkconfig.h $(FILESYSTEM_SRCS)
     80rtems_init.o: ../rtems_init.c $(FILESYSTEM_SRCS) $(NETWORK_HFILE)
    5881        $(CC) $(CFLAGS) -I. $(CPU_CFLAGS) -c $<
    5982
     
    7194
    7295clean:
     96        rm -f obj/*
    7397        rm -f b~*.*  *.o *.ali $(PROGRAM)
    7498        rm -f *.num *.exe *.obj *.bin *.bt *.gba
    75 
Note: See TracChangeset for help on using the changeset viewer.