default_pre_build      &&
cd  $SOURCE_DIRECTORY  &&

apply_patch_dir patches &&

if  [  -f  $CONFIG_CACHE/busybox.config  ];  then
  message "${MESSAGE_COLOR}restoring configuration from ${FILE_COLOR}${CONFIG_CACHE}/busybox.config${DEFAULT_COLOR}" &&
  cp  ${CONFIG_CACHE}/busybox.config  .config &&
  yes "" | make oldconfig
else
  message "${MESSAGE_COLOR}using ${FILE_COLOR}${SCRIPT_DIRECTOY}/busybox.config as default configuration${DEFAULT_COLOR}" &&
  cp  ${SCRIPT_DIRECTORY}/busybox.config  .config &&
  yes "" | make oldconfig
fi  &&

if [[  "$BB_CONFIG"  =  "y" ]] && [[ $RECONFIGURE ]] ;  then
  VOYEUR="on"         &&
  make  "menuconfig"
fi  &&


cp  .config  ${CONFIG_CACHE}/busybox.config
