#!/bin/sh # Built on TCL v2.0rc4 # Required extensions: # compiletc # binutils.tcel # base-devs.tce # bison.tce # diffutils.tce # file.tcel # findutils.tce # flex.tce # gawk.tce # gcc.tcel # gperf.tce # grep.tce # m4.tce # make.tce # patch.tce # pkg-config.tce # sed.tce # advcomp # squashfs-tools-4.0 # usb-utils # libftdi # libconfuse export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig tar -zxf ftdi_eeprom-0.3.tar.gz cd ftdi_eeprom-0.3 ./configure CFLAGS="-march=i486 -mtune=i686 -Os -pipe" make touch ../mark sudo make install sudo strip --strip-unneeded /usr/local/bin/ftdi_eeprom cd .. find /usr/local/ -newer mark -not -type d > filelist tar -czf ftdi_eeprom.tce -T filelist advdef -z4 ftdi_eeprom.tce md5sum ftdi_eeprom.tce > ftdi_eeprom.tce.md5.txt TCZDIR=`mktemp -d tcz.XXXXXX` cd $TCZDIR tar zxf ../ftdi_eeprom.tce cd .. mksquashfs $TCZDIR ftdi_eeprom.tcz md5sum ftdi_eeprom.tcz > ftdi_eeprom.tcz.md5.txt rm -rf $TCZDIR ftdi_eeprom-0.3 mark filelist