mirror of
https://github.com/pygos/build.git
synced 2024-11-01 01:45:37 +01:00
Add extra config flags for binutils
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
This commit is contained in:
parent
9a49a8aac4
commit
f17e6f75b2
5 changed files with 5 additions and 1 deletions
|
@ -204,6 +204,7 @@ Currently, the following variables are used:
|
||||||
* `GCC_CPU` specifies the target processor for GCC.
|
* `GCC_CPU` specifies the target processor for GCC.
|
||||||
* `GCC_EXTRACFG` extra configure arguments passed to GCC. For instance, this
|
* `GCC_EXTRACFG` extra configure arguments passed to GCC. For instance, this
|
||||||
may contain FPU configuration for ARM targets.
|
may contain FPU configuration for ARM targets.
|
||||||
|
* `BINUTILS_EXTRACFG` extra configure arguments passed to binutils.
|
||||||
* `LINUX_TGT` contains the space seperated make targets for the generic,
|
* `LINUX_TGT` contains the space seperated make targets for the generic,
|
||||||
main line, LTS kernel package.
|
main line, LTS kernel package.
|
||||||
* `CPU_IS_64BIT` is set to `yes` for 64 bit CPUs. This is needed for some
|
* `CPU_IS_64BIT` is set to `yes` for 64 bit CPUs. This is needed for some
|
||||||
|
|
|
@ -5,6 +5,7 @@ GCC_CPU="i686"
|
||||||
CPU_IS_64BIT="no"
|
CPU_IS_64BIT="no"
|
||||||
|
|
||||||
GCC_EXTRACFG="--disable-libmpx"
|
GCC_EXTRACFG="--disable-libmpx"
|
||||||
|
BINUTILS_EXTRACFG=""
|
||||||
|
|
||||||
LINUXPKG="linux"
|
LINUXPKG="linux"
|
||||||
LINUX_TGT="bzImage modules"
|
LINUX_TGT="bzImage modules"
|
||||||
|
|
|
@ -5,6 +5,7 @@ GCC_CPU="x86-64"
|
||||||
CPU_IS_64BIT="yes"
|
CPU_IS_64BIT="yes"
|
||||||
|
|
||||||
GCC_EXTRACFG="--enable-libmpx"
|
GCC_EXTRACFG="--enable-libmpx"
|
||||||
|
BINUTILS_EXTRACFG=""
|
||||||
|
|
||||||
LINUXPKG="linux"
|
LINUXPKG="linux"
|
||||||
LINUX_TGT="bzImage"
|
LINUX_TGT="bzImage"
|
||||||
|
|
|
@ -5,6 +5,7 @@ GCC_CPU="armv6"
|
||||||
CPU_IS_64BIT="no"
|
CPU_IS_64BIT="no"
|
||||||
|
|
||||||
GCC_EXTRACFG="--with-float=hard --with-fpu=neon-vfpv3"
|
GCC_EXTRACFG="--with-float=hard --with-fpu=neon-vfpv3"
|
||||||
|
BINUTILS_EXTRACFG=""
|
||||||
|
|
||||||
LINUXPKG="linux-rpi3"
|
LINUXPKG="linux-rpi3"
|
||||||
LINUX_TGT="zImage dtbs modules"
|
LINUX_TGT="zImage dtbs modules"
|
||||||
|
|
|
@ -10,7 +10,7 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local extra=""
|
local extra="$BINUTILS_EXTRACFG"
|
||||||
|
|
||||||
$1/configure --prefix="$TCDIR" --target="$TARGET" --disable-nls \
|
$1/configure --prefix="$TCDIR" --target="$TARGET" --disable-nls \
|
||||||
--with-sysroot="$TCDIR/$TARGET" --disable-multilib \
|
--with-sysroot="$TCDIR/$TARGET" --disable-multilib \
|
||||||
|
|
Loading…
Reference in a new issue