source: rtems/c/src/lib/libbsp/powerpc/motorola_powerpc/bootloader/Makefile.am @ effc2c4

Last change on this file since effc2c4 was effc2c4, checked in by Joel Sherrill <joel.sherrill@…>, on 04/03/00 at 14:44:39

Patch rtems-rc-4.5.0-6-cvs.diff from Ralf Corsepius <corsepiu@…>.
The patch contains:

  • build variants support
  • Reworked make-exe custom/*.cfg for all targets (Should be self-explanatory, may still be incomplete)
  • Several fixes to custom/*.cfgs related to setting debug flags
  • Fixes to some bsp_specs for BSPs which apparently have never been build with debugging before ;)
  • pc386.cfg fix attempts (cf. my mail from earlier today)
  • Updated ampolish (No need to run it, the patch contains the result from having applied it)

Known bugs/deficiencies related to this work:

  • "make [clean|distclean]" support is still incomplete (e.g. "make clean" does not delete all Depends-o-*)
  • Completely untested for linux/posix and hppa.
  • Build failures of i960 BSPs (make VARIANT=DEBUG) - I guess, they are not related to this patch.
  • Successfully tested for all sh, sparc, i386, ppc, m68k BSPs (make VARIANT=DEBUG)
  • make VARIANT=PROFILE not supported by all BSPs (I don't care :)
  • make VARIANT=DEBUG failures below tests/ for some BSPs (e.g. gensh1), because of the tests's binaries being too large to fit into the target memory layout.
  • Property mode set to 100644
File size: 1.7 KB
Line 
1##
2## $Id$
3##
4
5AUTOMAKE_OPTIONS = foreign 1.4
6
7VPATH = @srcdir@:@srcdir@/../../../shared:@srcdir@/../../shared/console:@srcdir@/../../shared/bootloader
8
9C_FILES = misc.c pci.c zlib.c mm.c em86.c polled_io.c lib.c
10C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o)
11
12H_FILES = bootldr.h zlib.h pci.h
13
14S_FILES = head.S exception.S em86real.S
15S_O_FILES = $(S_FILES:%.S=$(ARCH)/%.o)
16
17OBJS = $(S_O_FILES) $(C_O_FILES)
18
19include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
20include $(top_srcdir)/../../../../../../automake/lib.am
21
22#
23# (OPTIONAL) Add local stuff here using +=
24#
25
26## FIXME:
27## ASFLAGS = -mrelocatable
28CFLAGS_DEBUG_V = $(CFLAGS_OPTIMIZE_V)
29
30AM_CPPFLAGS += -D__BOOT__ -DDEBUG -mrelocatable
31AM_CFLAGS += -msoft-float -mstrict-align -fno-builtin -Wall -mmultiple \
32    -mstring -O2 -fomit-frame-pointer -ffixed-r13 -mno-sdata
33
34IMAGES = rtems.gz
35
36CLEANFILES += bootloader reloc.O
37DISTCLEANFILES += $(IMAGES)
38
39#
40# CAUTION :
41#
42# As we use very specific compilation options in this directory
43# we shall not use any other code. This includes the newlib libc.a
44# as well as other code located in .o files in mcp750 directory.
45#
46# NEVER remove lib.c. You have been warned...
47#
48bootloader : $(OBJS) $(IMAGES) $(BINARY_LOADED) ppcboot.lds
49        $(LD) -o bootloader $(OBJS) --just-symbols=$(BINARY_LOADED) \
50        -b binary $(IMAGES) -T @srcdir@/../../shared/bootloader/ppcboot.lds \
51        -Map $(ARCH)/bootloader.map
52
53check_unresolved : $(OBJS)
54        $(LD) -r -o reloc.O $(OBJS)
55        $(NM) reloc.O |grep ' U '
56        echo "Every symbol listed should be defined in @srcdir@/ppcboot.lds"
57
58rtems: $(BINARY_LOADED)
59        $(OBJCOPY)  $(BINARY_LOADED) rtems -O binary -R .comment -S
60
61rtems.gz: rtems
62        gzip -vf9 rtems
63
64all-local: $(ARCH) $(OBJS)
65
66include $(top_srcdir)/../../../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.