Changeset 1ea5087 in rtems


Ignore:
Timestamp:
Nov 14, 2001, 6:39:53 PM (19 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
92cf35d
Parents:
4812b65
Message:

2001-11-08 Ralf Corsepius <corsepiu@…>

  • bootloader/Makefile.am: completely reworked.
  • configure.ac: Add AM_PROG_AS.
Location:
c/src/lib/libbsp/powerpc/motorola_powerpc
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/motorola_powerpc/ChangeLog

    r4812b65 r1ea5087  
     1        TMPINSTALL_FILES, include force-preinstall.am.
     2        * wrapup/Makefile.am: Apply @exceptions@.
     3
     42001-11-10      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
     5
    16        * configure.ac: Add bspopts.h.
    27        * include/.cvsignore: Add stamp-h* and bspopts.h*.
  • c/src/lib/libbsp/powerpc/motorola_powerpc/bootloader/Makefile.am

    r4812b65 r1ea5087  
    33##
    44
    5 AUTOMAKE_OPTIONS = foreign 1.4
     5## NOTE: This Makefile.am applies automake compilation rules and does not
     6## apply RTEMS's compilation rules.
    67
    7 VPATH = @srcdir@:@srcdir@/../../../shared:@srcdir@/../../shared/console:@srcdir@/../../shared/bootloader
     8AUTOMAKE_OPTIONS = foreign no-exeext 1.5
    89
    9 LIB = $(ARCH)/bootloader.o
    10 LDS = ppcboot.lds
     10VPATH = @srcdir@:@srcdir@/../../shared/bootloader:@srcdir@/../../shared/console
    1111
    12 C_FILES = misc.c pci.c zlib.c mm.c em86.c polled_io.c lib.c
    13 C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o)
     12noinst_PROGRAMS = bootloader.o
    1413
    15 H_FILES = bootldr.h zlib.h pci.h
    16 
    17 S_FILES = head.S exception.S em86real.S
    18 S_O_FILES = $(S_FILES:%.S=$(ARCH)/%.o)
    19 
    20 OBJS = $(S_O_FILES) $(C_O_FILES)
     14bootloader_o_SOURCES = misc.c pci.c zlib.c mm.c em86.c polled_io.c lib.c
     15bootloader_o_SOURCES += bootldr.h zlib.h pci.h keyboard.h
     16bootloader_o_SOURCES += head.S exception.S em86real.S
    2117
    2218include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
    23 include $(top_srcdir)/../../../../../../automake/compile.am
    24 include $(top_srcdir)/../../../../../../automake/lib.am
    2519
    26 #
    27 # (OPTIONAL) Add local stuff here using +=
    28 #
     20NM = @NM@
     21LD = @LD@
    2922
    30 ## FIXME:
    31 ## ASFLAGS = -mrelocatable
    32 CFLAGS_DEBUG_V = $(CFLAGS_OPTIMIZE_V)
     23# ----
     24## Custom compilation vars, stripped versions of what is used in
     25## automake/compile.am and by automake-1.5's standard rules.
     26COMPILE = $(CC) $(INCLUDES) $(AM_CPPFLAGS) $(AM_CFLAGS)
     27ASCOMPILE = $(CC) $(AM_ASFLAGS)
     28CCLD = $(CC)
     29LINK = $(CCLD) $(AM_CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
    3330
    34 AM_CPPFLAGS += -D__BOOT__ -DDEBUG -mrelocatable
    35 AM_CFLAGS += -msoft-float -mstrict-align -fno-builtin -Wall -mmultiple \
    36     -mstring -O2 -fomit-frame-pointer -ffixed-r13 -mno-sdata
     31# ----
     32DEFAULT_INCLUDES =
    3733
    38 CLEANFILES = bootloader.o
     34AM_CPPFLAGS = -D__BOOT__ -DDEBUG
     35AM_CFLAGS = \
     36    $(GCC_SPECS) -specs bsp_specs -qrtems -mrelocatable \
     37    -msoft-float -mstrict-align -fno-builtin -Wall -mmultiple \
     38    -mstring -O2 -fomit-frame-pointer -ffixed-r13 -mno-sdata \
     39    $(CPU_CFLAGS)
     40AM_ASFLAGS = $(INCLUDES) $(AM_CPPFLAGS) \
     41    $(GCC_SPECS) -specs bsp_specs -qrtems -mrelocatable \
     42    -DASM $(CPU_CFLAGS)
    3943
    4044#
     
    4751# NEVER remove lib.c. You have been warned...
    4852#
     53bootloader.o: $(bootloader_o_OBJECTS)
     54        $(LD) -r -o $@ $(bootloader_o_OBJECTS)
     55        $(NM)  $@ | grep ' U '
     56        @echo "Every symbol listed should be defined in @srcdir@/ppcboot.lds"
    4957
    50 $(LIB) : $(OBJS)
    51         $(LD) -r -o $(ARCH)/bootloader.o $(OBJS)
    52         $(NM)  $(ARCH)/bootloader.o | grep ' U '
    53         echo "Every symbol listed should be defined in @srcdir@/ppcboot.lds"
     58# FIXME: We might want to apply this in future.
     59# ppcbootdir = $(exec_prefix)/@RTEMS_BSP@/lib
     60# ppcboot_DATA = bootloader.o
     61# ppcboot_DATA += ../../shared/bootloader/ppcboot.lds
    5462
    55 $(PROJECT_RELEASE)/lib/bootloader.o : $(LIB)
     63# FIXME: Tmp-install stuff to make mcp750.cfg's make-exe happy.
     64# As mcp750.cfg's make-exe doesn't work outside of the source-tree.
     65# We might consider to use this directory directly for in-source-tree
     66# building, instead.
     67$(PROJECT_RELEASE)/lib/%: %
    5668        $(INSTALL_DATA) $< $@
    5769
    58 $(PROJECT_RELEASE)/lib/ppcboot.lds : $(LDS)
    59         $(INSTALL_DATA) $< $@
     70TMPINSTALL_FILES = $(PROJECT_RELEASE)/lib/bootloader.o \
     71    $(PROJECT_RELEASE)/lib/ppcboot.lds
    6072
    61 all-local: $(ARCH) $(PROJECT_RELEASE)/lib/bootloader.o $(PROJECT_RELEASE)/lib/ppcboot.lds
     73all-local: $(TMPINSTALL_FILES)
    6274
    6375include $(top_srcdir)/../../../../../../automake/local.am
  • c/src/lib/libbsp/powerpc/motorola_powerpc/configure.ac

    r4812b65 r1ea5087  
    2626AM_CONDITIONAL(need_motorola_powerpc, test "$RTEMS_BSP_FAMILY" = "motorola_powerpc")
    2727
     28AS=$CC
     29AM_PROG_AS
     30
    2831RTEMS_PROJECT_ROOT
    2932
Note: See TracChangeset for help on using the changeset viewer.