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

5
Last change on this file since b46f943c was b46f943c, checked in by Sebastian Huber <sebastian.huber@…>, on Apr 7, 2018 at 5:38:55 PM

bsp/motorola_powerpc: Move polled_io.c

This file was used by this BSP only. Avoid RTEMS_RELLDFLAGS.

This patch is a part of the BSP source reorganization.

Update #3285.

  • Property mode set to 100644
File size: 2.6 KB
Line 
1## NOTE: This Makefile.am does not apply RTEMS's compilation rules.
2
3AUTOMAKE_OPTIONS = no-exeext
4
5noinst_PROGRAMS = bootloader
6
7## IMPORTANT: head.S must be first, T. Straumann 12/17/2001
8bootloader_SOURCES = ../../../powerpc/shared/bootloader/head.S \
9    ../../../powerpc/shared/bootloader/exception.S \
10    ../../../powerpc/shared/bootloader/em86real.S \
11    ../../../powerpc/shared/bootloader/misc.c \
12    ../../../powerpc/shared/bootloader/pci.c \
13    ../../../powerpc/shared/bootloader/zlib.c \
14    ../../../powerpc/shared/bootloader/mm.c \
15    ../../../powerpc/shared/bootloader/em86.c \
16    ../../../../../../../bsps/powerpc/motorola_powerpc/dev/polled_io.c \
17    ../../../powerpc/shared/bootloader/lib.c \
18    ../../../powerpc/shared/bootloader/bootldr.h \
19    ../../../powerpc/shared/bootloader/zlib.h \
20    ../../../powerpc/shared/bootloader/pci.h \
21    ../../../powerpc/shared/console/keyboard.h
22
23# ----
24# Remove references to EABI when compiling bootloader
25BOOTLOADER_CPU_CFLAGS=$(subst -msdata=eabi,,$(subst -meabi,,$(CPU_CFLAGS)))
26AM_CPPFLAGS = -D__BOOT__ @RTEMS_CPPFLAGS@ @RTEMS_BSP_CPPFLAGS@
27AM_CFLAGS = -mrelocatable -msoft-float \
28    -mstrict-align -fno-builtin -Wall -mmultiple -mstring -O2 \
29    -fomit-frame-pointer -ffixed-r13 -mno-sdata $(BOOTLOADER_CPU_CFLAGS)
30AM_CCASFLAGS = $(AM_CPPFLAGS) \
31    -mrelocatable -DASM $(BOOTLOADER_CPU_CFLAGS)
32
33#
34# CAUTION :
35#
36# As we use very specific compilation options in this directory
37# we shall not use any other code. This includes the newlib libc.a
38# as well as other code located in .$(OBJEXT) files in mcp750 directory.
39#
40# NEVER remove lib.c. You have been warned...
41#
42bootloader$(EXEEXT): $(bootloader_OBJECTS)
43        $(LD) -r -o $@ $(bootloader_OBJECTS)
44        $(NM)  $@ | grep ' U '
45        @echo "Every symbol listed should be defined in @srcdir@/ppcboot.lds"
46bootloader.$(OBJEXT): bootloader$(EXEEXT)
47        cp $< $@
48
49project_lib_DATA = bootloader.$(OBJEXT)
50project_lib_DATA += ../../shared/bootloader/ppcboot.lds
51
52all-local: $(TMPINSTALL_FILES)
53
54TMPINSTALL_FILES =
55
56$(PROJECT_LIB)/$(dirstamp):
57        @$(MKDIR_P) $(PROJECT_LIB)
58        @: > $(PROJECT_LIB)/$(dirstamp)
59TMPINSTALL_FILES += $(PROJECT_LIB)/$(dirstamp)
60
61$(PROJECT_LIB)/bootloader.$(OBJEXT): bootloader.$(OBJEXT) $(PROJECT_LIB)/$(dirstamp)
62        $(INSTALL_DATA) $< $(PROJECT_LIB)/bootloader.$(OBJEXT)
63TMPINSTALL_FILES += $(PROJECT_LIB)/bootloader.$(OBJEXT)
64
65$(PROJECT_LIB)/ppcboot.lds: ../../shared/bootloader/ppcboot.lds $(PROJECT_LIB)/$(dirstamp)
66        $(INSTALL_DATA) $< $(PROJECT_LIB)/ppcboot.lds
67TMPINSTALL_FILES += $(PROJECT_LIB)/ppcboot.lds
68
69CLEANFILES = $(TMPINSTALL_FILES)
70
71include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.