Mercurial > hg > aboriginal
changeset 981:c6b3d648ead6
Cleanups and comments.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sun, 21 Feb 2010 12:03:28 -0600 |
parents | d424fd68f991 |
children | 5abf4d8f7b92 |
files | sources/sections/binutils.build sources/sections/ccwrap.sh |
diffstat | 2 files changed, 8 insertions(+), 14 deletions(-) [+] |
line wrap: on
line diff
--- a/sources/sections/binutils.build Tue Feb 16 08:26:35 2010 -0600 +++ b/sources/sections/binutils.build Sun Feb 21 12:03:28 2010 -0600 @@ -1,12 +1,5 @@ -# Build binutils, c wrapper, and uClibc++ - # Build binutils, which provides the linker and assembler and such. -# PROGRAM_PREFIX affects the name of the generated tools, ala "${ARCH}-". - -# The binutils ./configure stage is _really_stupid_, and we need to define -# lots of environment variables to make it behave. - function configure_binutils() { "$CURSRC/configure" --prefix="$STAGE_DIR" \ @@ -22,8 +15,7 @@ # Create a simple cross compiler, from this host to target $ARCH. # This has no prerequisites. - # The binutils ./configure stage is _really_stupid_. Define lots of - # environment variables to make it behave. + # Define lots of environment variables to make configure behave. AR=ar AS=as LD=ld NM=nm OBJDUMP=objdump OBJCOPY=objcopy configure_binutils else @@ -45,8 +37,4 @@ # Fix up install mkdir -p "$STAGE_DIR/include" && -cp "$CURSRC/include/libiberty.h" "$STAGE_DIR/include" && - -# ln -sf ../../../../tools/bin/ld ${STAGE_DIR}/libexec/gcc/*/*/collect2 || dienow - -rm -rf "$WORK/build-binutils" +cp "$CURSRC/include/libiberty.h" "$STAGE_DIR/include"
--- a/sources/sections/ccwrap.sh Tue Feb 16 08:26:35 2010 -0600 +++ b/sources/sections/ccwrap.sh Sun Feb 21 12:03:28 2010 -0600 @@ -11,6 +11,12 @@ then # Populate the wrapper directories (unfinished) + # The purpose of this is to wrap an existing cross compiler by populating + # a directory of symlinks in the layout ccwrap expects. This requires + # querying the existing compiler to find 1) system header dirs, + # 2) compiler header dirs, 3) system library dirs, 4) compiler library dirs, + # 5) binary search path for cpp and ld and such. + mkdir -p "$STAGE_DIR"/{tools,include,lib,cc/{include,lib}} && # Setup bin directory