ifeq "$(PASS)" "1"
TARGET = $(DIR_INFO)/$(THISAPP)-tools1
EXTRA_CONFIG = --prefix=/tools --disable-nls
- EXTRA_MAKE = #LDFLAGS="-all-static"
+ EXTRA_MAKE = LDFLAGS="-all-static"
EXTRA_INSTALL =
else
TARGET = $(DIR_INFO)/$(THISAPP)-tools2
@rm -rf $(DIR_APP) $(DIR_SRC)/binutils-build && cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE)
@mkdir $(DIR_SRC)/binutils-build
cd $(DIR_SRC)/binutils-build && $(DIR_APP)/configure $(EXTRA_CONFIG)
- cd $(DIR_SRC)/binutils-build && make $(EXTRA_MAKE) #$(MAKETUNING)
+ifeq "$(PASS)" "1"
+ cd $(DIR_SRC)/binutils-build && make configure-host
+# cd $(DIR_SRC)/binutils-build && make $(MAKETUNING)
+# cd $(DIR_SRC)/binutils-build && make clean
+endif
+ cd $(DIR_SRC)/binutils-build && make $(EXTRA_MAKE) #$(MAKETUNING)
cd $(DIR_SRC)/binutils-build && make $(EXTRA_INSTALL) install
ifeq "$(ROOT)" ""
cd $(DIR_APP)/binutils-build && cp -v ../$(THISAPP)/include/libiberty.h /usr/include
$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
@$(PREBUILD)
ifeq "$(PASS)" "1"
- cp -v /tools/bin/{ld,ld-old.bak}
mv -v /tools/bin/{ld,ld-old}
- cp -v /tools/i686-pc-linux-gnu/bin/{ld,ld-old.bak}
mv -v /tools/i686-pc-linux-gnu/bin/{ld,ld-old}
cp -v /tools/bin/{ld-new,ld}
ln -sv /tools/bin/ld /tools/i686-pc-linux-gnu/bin/ld
rm -vf `grep -l "DO NOT EDIT THIS FILE" /tools/lib/gcc/i686-pc-linux-gnu/4.0.3/include/*`
endif
ifeq "$(PASS)" "2"
- ### I have to check if this really works
-strip --strip-debug /tools/lib/*
-strip --strip-unneeded /tools/{,s}bin/*
rm -rfv /tools/{info,man} /usr/local/man
- cp -fv /tools/bin/{ld-old.bak,ld}
chown -R root:root /tools
endif
ifeq "$(PASS)" "3"
EXTRA_CONFIG = --prefix=/tools \
--with-local-prefix=/tools --disable-nls --enable-shared \
--enable-languages=c
- EXTRA_MAKE = BOOT_LDFLAGS="-static" bootstrap
+ EXTRA_MAKE = bootstrap #BOOT_LDFLAGS="-static"
EXTRA_INSTALL =
else
TARGET = $(DIR_INFO)/$(THISAPP)-tools2
--enable-kernel=2.6.0 --with-binutils=/tools/bin \
--without-gd --with-headers=/tools/include \
--without-selinux
- EXTRA_MAKE =
- EXTRA_INSTALL =
+ EXTRA_MAKE =
+ EXTRA_INSTALL =
endif
###############################################################################
THISAPP = bast-$(VER)
DL_FILE = A1012-A1006-A904-A888-A983-$(VER).tgz
-DL_FROM = http://www.bewan.com/bewan/drivers
+DL_FROM = $(URL_IPFIRE)
DIR_APP = $(DIR_SRC)/unicorn
ifeq "$(SMP)" ""
TARGET = $(DIR_INFO)/$(THISAPP)
cd $BASEDIR/lfs
for i in *; do
if [ -f "$i" -a "$i" != "Config" ]; then
+ echo -ne "Loading $i"
make -s -f $i LFS_BASEDIR=$BASEDIR MESSAGE="$i\t ($c/$MAX_RETRIES)" download >> $LOGFILE 2>&1
if [ $? -ne 0 ]; then
- echo "Prefetch : wget error in lfs/$i"
+ beautify message FAIL
FINISHED=0
else
if [ $c -eq 1 ]; then
- echo "Prefetch : lfs/$i files loaded"
+ beautify message DONE
fi
fi
fi
done
done
- echo "Prefetch : verifying md5sum"
+ echo -e "${BOLD}***Verifying md5sums${NORMAL}"
ERROR=0
for i in *; do
if [ -f "$i" -a "$i" != "Config" ]; then
make -s -f $i LFS_BASEDIR=$BASEDIR MESSAGE="$i\t " md5 >> $LOGFILE 2>&1
if [ $? -ne 0 ]; then
- echo "md5 difference in lfs/$i"
+ echo -ne "MD5 difference in lfs/$i"
+ beautify message FAIL
ERROR=1
fi
fi
done
if [ $ERROR -eq 0 ]; then
- echo "Prefetch : all files md5sum match"
+ echo -ne "${BOLD}all files md5sum match${NORMAL}"
+ beautify message DONE
+ else
+ echo -ne "${BOLD}not all files were correctly download${NORMAL}"
+ beautify message FAIL
fi
- cd -
+ cd - >/dev/null 2>&1
;;
toolchain)
prepareenv