(  

  OPTS+=" --build=$BUILD --host=$BUILD --with-telephony=dummy" &&

  default_build  &&

  mkdir -p /etc/bluetooth                   &&
  cp -f audio/audio.conf /etc/bluetooth/    &&
  cp -f network/*.conf /etc/bluetooth/      &&
  cp -f input/*.conf /etc/bluetooth/        &&
  cp -f serial/serial.conf /etc/bluetooth/  &&
  cp -f tools/rfcomm.conf /etc/bluetooth/   &&

  mkdir -p /etc/alsa  &&
  cp -f audio/bluetooth.conf /etc/alsa  &&

  echo -e "@hooks [\n\t{\n\t\tfunc load\n\t\tfiles [\n\t\t\t"/etc/alsa/bluetooth.conf"\n\t\t]\n\
          \t\terrors false\n\t}\n]" > $SOURCE_DIRECTORY/asound.conf  &&

  install -m644 asound.conf /etc/  &&
  install -m755 scripts/bluetooth_serial /etc/init.d/

) > $C_FIFO 2>&1
