#!/bin/sh

. config/options

$SCRIPTS/build toolchain
$SCRIPTS/build libnl
$SCRIPTS/build dbus
$SCRIPTS/build udev
$SCRIPTS/build busybox
#$SCRIPTS/build bluez

cd $PKG_BUILD

./configure --host=$TARGET_NAME \
            --build=$HOST_NAME \
            --prefix=/usr \
            --sysconfdir=/etc \
            --localstatedir=/var \
            --disable-debug \
            --disable-static \
            --enable-shared \
            --enable-threads \
            --enable-ethernet \
            --enable-wifi \
            --disable-bluetooth \
            --disable-hh2serial-gps \
            --disable-ofono \
            --enable-udhcp \
            --disable-dhclient \
            --disable-resolvconf \
            --enable-loopback \
            --enable-dnsproxy \
            --enable-portal \
            --disable-iwmx \
            --disable-iospm \
            --disable-polkit \
            --enable-client \
            --enable-tools \
            --disable-fake \
            --enable-udev \
            --enable-datafiles \
            --disable-silent-rules \
            --with-udhcpc=/sbin/udhcpc \
            --disable-gtk-doc \
            --disable-openconnect \
            --disable-google \
            --disable-meego \
            --enable-test \
            --disable-capng \

make
