From 6f53e1d4b2c7aed88b3bf4c43ed3baa609654e5e Mon Sep 17 00:00:00 2001 From: Martin Dietze Date: Fri, 8 Sep 2006 13:09:43 +0000 Subject: hostap-daemon and madwifi: fix compatibility problems on mtx platforms * added mtx-2 configuration to hostapd-daemon * made madwifi-modules_cvs the default choice (the bsd branch has been abandoned) * made sure that madwifi_modules stages the headers correctly so that hostap-daemon compiles on mtx/nylon --- packages/madwifi/madwifi-modules_cvs.bb | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'packages/madwifi/madwifi-modules_cvs.bb') diff --git a/packages/madwifi/madwifi-modules_cvs.bb b/packages/madwifi/madwifi-modules_cvs.bb index 0bef3d506e..bc89d84a15 100644 --- a/packages/madwifi/madwifi-modules_cvs.bb +++ b/packages/madwifi/madwifi-modules_cvs.bb @@ -5,9 +5,10 @@ MAINTAINER = "Bruno Randolf " LICENSE = "GPL" RDEPENDS = "kernel (${KERNEL_VERSION})" DEPENDS = "virtual/kernel" -PV = "1:0.0+cvs${SRCDATE}" +SRCDATE = "20050803" +PV = "1.0.0+cvs${SRCDATE}" -SRC_URI = "cvs://anonymous@cvs.sourceforge.net/cvsroot/madwifi;module=madwifi" +SRC_URI = "cvs://anonymous@cvs.sourceforge.net/cvsroot/madwifi;module=madwifi;date=${SRCDATE}" S = "${WORKDIR}/madwifi" @@ -17,6 +18,8 @@ inherit module-base ARCH_mipsel = "mips" EXTRA_OEMAKE_mtx-1 = "TARGET=mips-le-elf KERNELPATH=${STAGING_KERNEL_DIR} KERNELRELEASE=${KERNEL_VERSION} TOOLPREFIX=${TARGET_PREFIX} \ COPTS='-G 0 -mno-abicalls -fno-pic -Wa,--trap -fno-strict-aliasing -fno-common -fomit-frame-pointer -mlong-calls -DATH_PCI'" +EXTRA_OEMAKE_mtx-2 = "TARGET=mips-le-elf KERNELPATH=${STAGING_KERNEL_DIR} KERNELRELEASE=${KERNEL_VERSION} TOOLPREFIX=${TARGET_PREFIX} \ +COPTS='-G 0 -mno-abicalls -fno-pic -Wa,--trap -fno-strict-aliasing -fno-common -fomit-frame-pointer -mlong-calls -DATH_PCI'" do_compile() { oe_runmake @@ -25,10 +28,19 @@ do_compile() { do_install() { oe_runmake DESTDIR=${D} install - install -d ${D}${sbindir} + install -d ${D}/${sbindir} cd tools; oe_runmake DESTDIR=${D} BINDIR=${sbindir} install - install -m 755 athchans athctrl athkey ${D}${sbindir} + install -m 755 athchans athctrl athkey ${D}/${sbindir} +} + +do_stage() { + # hostapd and wpa_supplicant need these files + install -d ${STAGING_INCDIR}/madwifi/net80211/ ${STAGING_INCDIR}/madwifi/include + install -m 0644 net80211/*.h ${STAGING_INCDIR}/madwifi/net80211/ + install -m 0644 include/compat.h ${STAGING_INCDIR}/madwifi/include/ + cd ${STAGING_INCDIR}/madwifi/net80211/ + ln -s ../include/compat.h . } pkg_postinst() { -- cgit v1.2.3