diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-07-09 17:16:10 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-07-09 17:16:10 +0000 |
commit | 93180ea26a1c8a991602b7243e1e68e7f510e381 (patch) | |
tree | 45ffe3ae3ca4ed4bbad17b7700c3385b76d09f56 /c/src/lib/libbsp/powerpc/mcp750/bootloader/Makefile.in | |
parent | Patch from Jiri Gaisler <jgais@ws.estec.esa.nl>: (diff) | |
download | rtems-93180ea26a1c8a991602b7243e1e68e7f510e381.tar.bz2 |
Patch from Eric Valette <valette@crf.canon.fr>:
- The same bug fix that was done on pc386 to prevent interrupt
from occuring (never experienced it but who knows as I have 8259
emulation :()
- Removed every compiler warning (except wrong ones and ones I can't do
anything).
- Removed any libc available code in code linked with mcp750 rtems
executbale. Unfortunately using newlib functions for linking the
bootloader does not work as the compilation options in bootloader
(-mrelocatable -fixed-r13) are not compatible with newlib options.
=> I have put any libc external reference in one single new file (lib.c)
that is linked only with the boot loader. Removing the file from
${OBJ} and using -lc crash the bootloader. Added big warning...
Diffstat (limited to 'c/src/lib/libbsp/powerpc/mcp750/bootloader/Makefile.in')
-rw-r--r-- | c/src/lib/libbsp/powerpc/mcp750/bootloader/Makefile.in | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/c/src/lib/libbsp/powerpc/mcp750/bootloader/Makefile.in b/c/src/lib/libbsp/powerpc/mcp750/bootloader/Makefile.in index 84e73dad01..85d8963e89 100644 --- a/c/src/lib/libbsp/powerpc/mcp750/bootloader/Makefile.in +++ b/c/src/lib/libbsp/powerpc/mcp750/bootloader/Makefile.in @@ -9,14 +9,14 @@ RTEMS_ROOT = @top_srcdir@ PROJECT_ROOT = @PROJECT_ROOT@ # C source names, if any, go here -- minus the .c -C_PIECES=misc pci zlib mm em86 polled_io +C_PIECES=misc pci zlib mm em86 polled_io lib C_FILES=$(C_PIECES:%=%.c) C_O_FILES=$(C_PIECES:%=${ARCH}/%.o) H_FILES=bootldr.h zlib.h pci.h # Assembly source names, if any, go here -- minus the .s -S_PIECES=head exception em86real consoleLib +S_PIECES=head exception em86real S_FILES=$(S_PIECES:%=%.S) S_O_FILES=$(S_FILES:%.S=${ARCH}/%.o) @@ -57,14 +57,28 @@ IMAGES := rtems.gz # 'make clobber' already includes 'make clean' # -CLEAN_ADDITIONS += bootloader +CLEAN_ADDITIONS += bootloader reloc.O CLOBBER_ADDITIONS += $(IMAGES) +# +# CAUTION : +# +# As we use very specific compilation options in this directory +# we shall not use any other code. This includes the newlib libc.a +# as well as other code located in .o files in mcp750 directory. +# +# 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@/ppcboot.lds \ -Map bootloader.map +check_unresolved : ${OBJS} + $(LD) -r -o reloc.O ${OBJS} + $(NM) reloc.O |grep ' U ' + echo "Every symbol listed should be defined in @srcdir@/ppcboot.lds" + rtems.gz: $(BINARY_LOADED) $(OBJCOPY) $(BINARY_LOADED) rtems -O binary -R .comment -S gzip -vf9 rtems |