#!/bin/sh

. config/options $1

$SCRIPTS/unpack lzma

LZMA_DIR=`ls -d $ROOT/$BUILD/lzma*`

setup_toolchain host

cd $BUILD/$1*/squashfs-tools

make mksquashfs \
     LZMA_SUPPORT=1 LZMA_DIR=$LZMA_DIR \
     INCLUDEDIR="-I. -I$ROOT/$TOOLCHAIN/include -I$LZMA_DIR/C"

mkdir -p $ROOT/$TOOLCHAIN/bin
  cp mksquashfs $ROOT/$TOOLCHAIN/bin
