summaryrefslogtreecommitdiffstats
path: root/c/src
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2001-01-03 18:47:51 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2001-01-03 18:47:51 +0000
commit0589f0b74b861b234c5c51541fbe223a4b713c26 (patch)
tree34b142434aa44818eb3683ab281cff09dcdd31a4 /c/src
parent4dc2e9a75e87829a8432b7ce2e37bf66a7ceaf51 (diff)
downloadrtems-0589f0b74b861b234c5c51541fbe223a4b713c26.tar.bz2
2001-01-03 Emmanuel Raguet <raguet@crf.canon.fr>
* bootloader/Makefile.am: Modified to install bootloader so make-exe rule can avoid writing to install point or assuming BSP build tree is available.
Diffstat (limited to 'c/src')
-rw-r--r--c/src/lib/libbsp/powerpc/motorola_powerpc/ChangeLog6
-rw-r--r--c/src/lib/libbsp/powerpc/motorola_powerpc/bootloader/Makefile.am30
2 files changed, 19 insertions, 17 deletions
diff --git a/c/src/lib/libbsp/powerpc/motorola_powerpc/ChangeLog b/c/src/lib/libbsp/powerpc/motorola_powerpc/ChangeLog
index 67ce8a2b7c..1b462bd16e 100644
--- a/c/src/lib/libbsp/powerpc/motorola_powerpc/ChangeLog
+++ b/c/src/lib/libbsp/powerpc/motorola_powerpc/ChangeLog
@@ -1,3 +1,9 @@
+ * residual/Makefile.am: Use 'PREINSTALL_FILES ='.
+ * vectors/Makefile.am: Use 'PREINSTALL_FILES ='.
+ * pci/Makefile.am: Use 'PREINSTALL_FILES ='.
+ * openpic/Makefile.am: Use 'PREINSTALL_FILES ='.
+ * bootloader/Makefile.am: Use 'CLEANFILES ='.
+
2001-05-10 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.in: Use RTEMS_PROG_CC_FOR_TARGET([-ansi -fasm]).
diff --git a/c/src/lib/libbsp/powerpc/motorola_powerpc/bootloader/Makefile.am b/c/src/lib/libbsp/powerpc/motorola_powerpc/bootloader/Makefile.am
index 5ebcd76404..e97314969f 100644
--- a/c/src/lib/libbsp/powerpc/motorola_powerpc/bootloader/Makefile.am
+++ b/c/src/lib/libbsp/powerpc/motorola_powerpc/bootloader/Makefile.am
@@ -6,6 +6,9 @@ AUTOMAKE_OPTIONS = foreign 1.4
VPATH = @srcdir@:@srcdir@/../../../shared:@srcdir@/../../shared/console:@srcdir@/../../shared/bootloader
+LIB = $(ARCH)/bootloader.o
+LDS = ppcboot.lds
+
C_FILES = misc.c pci.c zlib.c mm.c em86.c polled_io.c lib.c
C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o)
@@ -32,10 +35,7 @@ AM_CPPFLAGS += -D__BOOT__ -DDEBUG -mrelocatable
AM_CFLAGS += -msoft-float -mstrict-align -fno-builtin -Wall -mmultiple \
-mstring -O2 -fomit-frame-pointer -ffixed-r13 -mno-sdata
-IMAGES = rtems.gz
-
-CLEANFILES += bootloader reloc.O
-DISTCLEANFILES += $(IMAGES)
+CLEANFILES += bootloader.o
#
# CAUTION :
@@ -46,22 +46,18 @@ DISTCLEANFILES += $(IMAGES)
#
# NEVER remove lib.c. You have been warned...
#
-bootloader : $(OBJS) $(IMAGES) $(BINARY_LOADED) ppcboot.lds
- $(LD) -o bootloader $(OBJS) --just-symbols=$(BINARY_LOADED) \
- -b binary $(IMAGES) -T @srcdir@/../../shared/bootloader/ppcboot.lds \
- -Map $(ARCH)/bootloader.map
-
-check_unresolved : $(OBJS)
- $(LD) -r -o reloc.O $(OBJS)
- $(NM) reloc.O |grep ' U '
+
+$(LIB) : $(OBJS)
+ $(LD) -r -o $(ARCH)/bootloader.o $(OBJS)
+ $(NM) $(ARCH)/bootloader.o | grep ' U '
echo "Every symbol listed should be defined in @srcdir@/ppcboot.lds"
-rtems: $(BINARY_LOADED)
- $(OBJCOPY) $(BINARY_LOADED) rtems -O binary -R .comment -S
+$(PROJECT_RELEASE)/lib/bootloader.o : $(LIB)
+ $(INSTALL_DATA) $< $@
-rtems.gz: rtems
- gzip -vf9 rtems
+$(PROJECT_RELEASE)/lib/ppcboot.lds : $(LDS)
+ $(INSTALL_DATA) $< $@
-all-local: $(ARCH) $(OBJS)
+all-local: $(ARCH) $(PROJECT_RELEASE)/lib/bootloader.o $(PROJECT_RELEASE)/lib/ppcboot.lds
include $(top_srcdir)/../../../../../../automake/local.am