build: hostapd: add UPNP build option
authorYaniv Machani <yanivma@ti.com>
Mon, 13 Oct 2014 20:45:46 +0000 (23:45 +0300)
committerYaniv Machani <yanivma@ti.com>
Mon, 13 Oct 2014 20:47:34 +0000 (23:47 +0300)
Added an option to build with UPNP enabled.
To enable it, add UPNP_EN=1 before the build command.

Signed-off-by: Yaniv Machani <yanivma@ti.com>
build_wl18xx.sh

index 6ad58bccf9600232e34ceb6156687653576abeaa..c9fa82f8d9851f0a86c689cbdd5586512e9d1adc 100755 (executable)
@@ -374,6 +374,7 @@ function build_hostapd()
 {             
     cd `repo_path hostap`/hostapd
        [ -z $NO_CONFIG ] && cp android.config .config
+       [ -n "$UPNP_EN" ] && echo "Enable UPNP config" && sed -i "/#CONFIG_WPS_UPNP=y/ s/# *//" .config
        CONFIG_LIBNL32=y DESTDIR=`path filesystem` make clean
        assert_no_error
        CONFIG_LIBNL32=y DESTDIR=`path filesystem` CFLAGS+="-I`path filesystem`/usr/local/ssl/include -I`repo_path libnl`/include" LIBS+="-L`path filesystem`/lib -L`path filesystem`/usr/local/ssl/lib -lssl -lcrypto -lm -ldl -lpthread" LIBS_p+="-L`path filesystem`/lib -L`path filesystem`/usr/local/ssl/lib -lssl -lcrypto -lm -ldl -lpthread" make -j${PROCESSORS_NUMBER} CC=${CROSS_COMPILE}gcc LD=${CROSS_COMPILE}ld AR=${CROSS_COMPILE}ar