56 lines
1.7 KiB
BlitzBasic
56 lines
1.7 KiB
BlitzBasic
inherit autotools linux-kernel-base
|
|
|
|
DESCRIPTION = "Hostap"
|
|
LICENSE = "BSD"
|
|
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/\
|
|
${LICENSE};md5=3775480a712fc46a69647678acb234cb"
|
|
|
|
FILES_${PN} += "\
|
|
/usr/bin \
|
|
/usr/sbin \
|
|
"
|
|
FILES_${PN}-dbg += "\
|
|
/usr/bin/.debug \
|
|
/usr/sbin/.debug \
|
|
"
|
|
|
|
PR = "r4"
|
|
|
|
DEPENDS = "openssl qmi"
|
|
|
|
FILESPATH =+ "${WORKSPACE}:"
|
|
SRC_URI = "file://external/hostap"
|
|
|
|
S = "${WORKDIR}/external/hostap"
|
|
|
|
SUPPLICANT_CONFIG = "${S}/wpa_supplicant/.config"
|
|
HOSTAPD_CONFIG = "${S}/hostapd/.config"
|
|
|
|
do_configure() {
|
|
echo "CFLAGS += -I${STAGING_INCDIR}" >> ${SUPPLICANT_CONFIG}
|
|
echo "LDFLAGS += -L${STAGING_LIBDIR}" >> ${SUPPLICANT_CONFIG}
|
|
echo "CFLAGS += -I${WORKSPACE}/wlan/include" >> ${SUPPLICANT_CONFIG}
|
|
echo "CFLAGS += -I${WORKSPACE}/wlan/host/include" >> ${SUPPLICANT_CONFIG}
|
|
echo "CFLAGS += -I${WORKSPACE}/wlan/host/os/linux/include" >> ${SUPPLICANT_CONFIG}
|
|
echo "CFLAGS += -I${WORKSPACE}/wlan/host/wlan/include" >> ${SUPPLICANT_CONFIG}
|
|
|
|
echo "CFLAGS += -I${STAGING_INCDIR}" >> ${HOSTAPD_CONFIG}
|
|
echo "LDFLAGS += -L${STAGING_LIBDIR}" >> ${HOSTAPD_CONFIG}
|
|
echo "CFLAGS += -I${WORKSPACE}/wlan/include" >> ${HOSTAPD_CONFIG}
|
|
echo "CFLAGS += -I${WORKSPACE}/wlan/host/include" >> ${HOSTAPD_CONFIG}
|
|
echo "CFLAGS += -I${WORKSPACE}/wlan/host/os/linux/include" >> ${HOSTAPD_CONFIG}
|
|
echo "CFLAGS += -I${WORKSPACE}/wlan/host/wlan/include" >> ${HOSTAPD_CONFIG}
|
|
}
|
|
|
|
do_compile() {
|
|
make -C src/crypto/
|
|
make -C hostapd/
|
|
make -C wpa_supplicant/
|
|
}
|
|
|
|
do_install() {
|
|
make -C hostapd/ install DESTDIR=${D}
|
|
make -C wpa_supplicant/ install DESTDIR=${D}
|
|
install -D -m 0644 ${S}/hostapd/config/ar6k-all.conf ${D}${sysconfdir}/hostapd.conf
|
|
}
|