Commit d9e6f348 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Initial commit

parents
all:
tar xf binutils-2.30.tar.xz
mkdir binutils-build
cd binutils-build && CC="gcc -isystem /usr/include" LDFLAGS="-Wl,-rpath-link,/usr/lib:/lib" ../binutils-2.30/configure --build=$(CLFS_TARGET) --prefix=/usr --enable-shared --enable-plugins
$(MAKE) -C binutils-build tooldir=/usr
# FIXME: binutils tests fail on ARMv7, we should exclude tests which are known to fail and beyond our control
-if [[ ! "$(BUILD_OPTIONS)" =~ no-tests ]] ; then \
$(MAKE) -C binutils-build -k check ; \
fi
$(MAKE) -C binutils-build tooldir=/usr install
rm -rf binutils-2.30
rm -rf binutils-build
bin
/usr/bin/.*
headers
/usr/include/.*
locale
/usr/share/locale/.*
info
/usr/share/info/.*
man
/usr/share/man/.*
lib
/usr/lib/.*
<project name="binutils">
<target name="cross-binutils">
<property name="makedir" value="${builddir}/binutils-build"/>
<mkdir dir="${makedir}"/>
<exec executable="tar" failonerror="true">
<arg line="xf packages/binutils/binutils-2.30.tar.xz -C ${builddir}"/>
</exec>
<exec executable="${builddir}/binutils-2.30/configure" dir="${makedir}" failonerror="true">
<env key="AR" value="ar"/>
<env key="AS" value="as"/>
<arg line="--prefix=${sysrootdir}/cross-tools --host=${CLFS_HOST} --target=${CLFS_TARGET} --with-sysroot=${sysrootdir} --with-lib-path=/tools/lib --disable-nls --disable-static --disable-multilib --disable-werror"/>
</exec>
<exec executable="make" dir="${makedir}" failonerror="true"/>
<exec executable="make" dir="${makedir}" failonerror="true">
<arg line="install"/>
</exec>
<delete dir="${builddir}/binutils-2.30"/>
<delete dir="${makedir}"/>
</target>
<target name="temporary-binutils">
<property name="makedir" value="${builddir}/binutils-build"/>
<mkdir dir="${makedir}"/>
<exec executable="tar" failonerror="true">
<arg line="xf packages/binutils/binutils-2.30.tar.xz -C ${builddir}"/>
</exec>
<exec executable="${builddir}/binutils-2.30/configure" dir="${makedir}" failonerror="true">
<env key="PATH" path="${PATH}"/>
<env key="CC" value="${CLFS_TARGET}-gcc"/>
<env key="CXX" value="${CLFS_TARGET}-g++"/>
<env key="AR" value="${CLFS_TARGET}-ar"/>
<env key="AS" value="${CLFS_TARGET}-as"/>
<env key="RANLIB" value="${CLFS_TARGET}-ranlib"/>
<env key="LD" value="${CLFS_TARGET}-ld"/>
<env key="STRIP" value="${CLFS_TARGET}-strip"/>
<arg line="--prefix=${sysrootdir}/tools --build=${CLFS_HOST} --host=${CLFS_TARGET} --target=${CLFS_TARGET} --with-sysroot=${sysrootdir} --with-lib-path=/tools/lib --disable-nls --disable-werror"/>
</exec>
<exec executable="make" dir="${makedir}" failonerror="true">
<env key="PATH" path="${PATH}"/>
<env key="CC" value="${CLFS_TARGET}-gcc"/>
<env key="CXX" value="${CLFS_TARGET}-g++"/>
<env key="AR" value="${CLFS_TARGET}-ar"/>
<env key="AS" value="${CLFS_TARGET}-as"/>
<env key="RANLIB" value="${CLFS_TARGET}-ranlib"/>
<env key="LD" value="${CLFS_TARGET}-ld"/>
<env key="STRIP" value="${CLFS_TARGET}-strip"/>
</exec>
<exec executable="make" dir="${makedir}" failonerror="true">
<env key="PATH" path="${PATH}"/>
<env key="CC" value="${CLFS_TARGET}-gcc"/>
<env key="CXX" value="${CLFS_TARGET}-g++"/>
<env key="AR" value="${CLFS_TARGET}-ar"/>
<env key="AS" value="${CLFS_TARGET}-as"/>
<env key="RANLIB" value="${CLFS_TARGET}-ranlib"/>
<env key="LD" value="${CLFS_TARGET}-ld"/>
<env key="STRIP" value="${CLFS_TARGET}-strip"/>
<arg line="install"/>
</exec>
<delete dir="${builddir}/binutils-2.30"/>
<delete dir="${makedir}"/>
</target>
</project>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment