#!/bin/sh

. config/options

$SCRIPTS/build toolchain

PKG_DIR=`find $PACKAGES -type d -name $1`
WPA_SUPPLICANT=`ls -d $PKG_BUILD`/wpa_supplicant

cp $PKG_DIR/config/makefile.config $WPA_SUPPLICANT/.config

if [ $DEBUG = no ]; then
  echo "CONFIG_NO_STDOUT_DEBUG=y" >> $WPA_SUPPLICANT/.config
fi
