Browse Source

-cross work

git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@1063 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc
rocklinux
Rene Rebe 21 years ago
parent
commit
956f53a4f5
2 changed files with 17 additions and 12 deletions
  1. +8
    -5
      package/base/gcc3-cross/cross.conf
  2. +9
    -7
      package/base/gcc3-cross/gcc3-cross.conf

+ 8
- 5
package/base/gcc3-cross/cross.conf

@ -21,18 +21,16 @@
#
# --- ROCK-COPYRIGHT-NOTE-END ---
# common prefix
if [ $prefix_auto = 1 ] ; then
# common prefix if not used as stage0 cross-cross-compiler ...
if [ "$stagelevel" -gt 0 -a $prefix_auto = 1 ] ; then
if [ "$ROCKCFG_CROSS_PREFIX" ] ; then
prefix="$ROCKCFG_CROSS_PREFIX"
else
prefix="opt/cross-tools"
fi
set_confopt
fi
set_confopt
archdir="${archdir/-cross/}"
realpkg="${pkg/-cross/}"
@ -52,3 +50,8 @@ done
arch_target="$ROCKCFG_PKG_CROSSCC_ARCH_TARGET"
arch_machine="${arch_target/-*/}"
# # the gcc needs the target binutils during the compilation
# # but can not find it if they are installed in a extraordinary
# # location, like the one used for the stage0 build ...
# var_append PATH ':' "$root/$prefix/bin"

+ 9
- 7
package/base/gcc3-cross/gcc3-cross.conf

@ -24,18 +24,20 @@
. $base/package/base/gcc3-cross/cross.conf
gcc_cross_pi(){
mv -fv $root/$prefix/crosscc/* $root/$prefix/bin
rmdir $root/$prefix/crosscc
if [ $stagelevel = 0 ] ; then
mv -fv $root/$prefix/crosscc/* $root/$prefix/bin
rmdir $root/$prefix/crosscc
fi
}
# overwrite some confopt variables ...
confopt="--preifx=$root/$prefix --target=\$arch_target --host=\$arch_build \
--disable-nls"
# do the same as gcc3
. $base/package/base/gcc3/gcc3.conf
# but always do a cross build ...
# overwrite some confopt variables ...
confopt="--prefix=$root/$prefix --target=\$arch_target --host=\$arch_build \
--disable-nls"
# but always do a cross build and some postinstall adaptions ...
custmain="gcc_stage0"
hook_add postinstall 3 gcc_cross_pi

Loading…
Cancel
Save