#6 solaris2.7 and GNU tool changes

closed
nobody
None
5
2001-12-05
2001-11-15
Anonymous
No

ppcboot-1.1.0 did not build out of the box. The error
messages were
quite strange, but I narrowed it down to these
changes. I'm using a sparc-sun-solaris2.7 host, with a
GNU tool chain.

Needed to fix:
In ADS860_config.h:
Fix definition for CONFIG_BOOTCOMMAND. It should be
one string,
not concatenated strings. The build fails when it
depends on the
compiler to concatenate a string on one line, with a
string on the
next line.

In environment.S:
1. put "align 4" before the "env_size" label. Because
it was unaligned.
2. Comment out the env_offset stuff, because
assembler complains
about ".set". I don't know what effect this has,
because I don't get
any build problems. (I have not tried to run the
executable on a
target, yet.) The change is equivalent to not
defining ORIGINAL:

#if defined(ORIGINAL)
.globl env_offset
.set env_offset, CFG_ENV_OFFSET
#endif /* ORIGINAL */

In bmp_logo.c,
1. Define ushort, before it is used. (How did this
ever build?)

In config.mk:
1. Change OBJCOPY definition to:
OBJCOPY = $(CROSS_COMPILE)powerpc-eabi-objcopy

Then the build works with the following command:

make
CROSS_COMPILE="/tools/tools/sparc-sun-solaris2.7/builds/powerpc-eabi/bin/"
BFD_ROOT_DIR=/tools/tools/sparc-sun-solaris2.7/builds/powerpc-eabi

Discussion

  • Wolfgang Denk
    Wolfgang Denk
    2001-12-05

    • status: open --> closed
     
  • Wolfgang Denk
    Wolfgang Denk
    2001-12-05

    Logged In: YES
    user_id=38532

    The current version in CVS should fix this.