GrabDuck

[BCM7425] cross-compile for wireless tools

:

all: libnl openssl ncurses readln wpa_supplicant wireless_tools

libnl:

    cd libnl-3.2.22; \

    chmod 755 configure; \

    ./configure --prefix=$(TARGET_ROOT)/usr/local --host=mipsel-linux --disable-static; \

    make;

    if [ ! -e "$(TARGET_ROOT)/usr/lib" ]; then \

        mkdir $(TARGET_ROOT)/usr/lib; \

    fi

    cp -af ./libnl-3.2.22/lib/.libs/libnl-3.so* $(TARGET_ROOT)/usr/lib/

    cp -af ./libnl-3.2.22/lib/.libs/libnl-genl-3.so* $(TARGET_ROOT)/usr/lib/

openssl:

    cd openssl-1.0.1e; \

    chmod 755 config; \

    ./config  --cross-compile-prefix=mipsel-linux- shared; \

    make;

    cp -af ./openssl-1.0.1e/libcrypto.so* $(TARGET_ROOT)/usr/lib/

    cp -af ./openssl-1.0.1e/libssl.so* $(TARGET_ROOT)/usr/lib/

ncurses:

    cd ncurses-5.9; \

    chmod 755 configure; \

    ./configure --prefix=$(TARGET_ROOT)/usr/local --host=mipsel-linux --with-shared; \

    make;

    cp -af ./ncurses-5.9/lib/libncurses.so* $(TARGET_ROOT)/usr/lib/

readln:

    cd readline; \

    chmod 755 configure; \

    ./configure --prefix=$(TARGET_ROOT)/usr/local --host=mipsel-linux --disable-static --enable-shared; \

    make; \

    make install;

wpa_supplicant:

    make -C ./wpa_supplicant-2.0/wpa_supplicant/

    if [ ! -e "$(TARGET_ROOT)/usr/bin" ]; then \

        mkdir $(TARGET_ROOT)/usr/bin; \

    fi

    cp -af ./wpa_supplicant-2.0/wpa_supplicant/wpa_passphrase $(TARGET_ROOT)/usr/bin/

    cp -af ./wpa_supplicant-2.0/wpa_supplicant/wpa_supplicant $(TARGET_ROOT)/usr/bin/

wireless_tools:

    cd wireless_tools.29; \

    make; \

    make install;

    cp -af ./wireless_tools.29/lib/* $(TARGET_ROOT)/usr/lib/

    cp -af ./wireless_tools.29/sbin/* $(TARGET_ROOT)/sbin/

clean:

    make -C ./libnl-3.2.22 clean

    make -C ./openssl-1.0.1e clean

    make -C ./ncurses-5.9 clean

    make -C ./wpa_supplicant-2.0/wpa_supplicant clean

    make -C ./wireless_tools.29 clean