blob: 62da93a3fddb1e154e83c7a98bed76913c0fb1e6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
SRC_URI = "${SOURCEFORGE_MIRROR}/atmelwlandriver/atmelwlandriver-${PV}.tar.bz2 \
file://dotconfig \
file://pcmf502rd.conf \
file://makefile.patch;patch=1"
S = "${WORKDIR}/atmelwlandriver"
inherit module
SECTION = "base"
do_configure() {
install ${WORKDIR}/dotconfig .config
}
CFLAGS = "-DLINUX_OS -D__KERNEL__ -DMODULE -I${S}/src/includes -I${S}/src/includes/pcmcia -I${STAGING_KERNEL_DIR}/include"
do_compile() {
export INC="${S}/src/includes"
export OBJDIR="${D}/lib/modules/${KERNEL_VERSION}/drivers/net/wireless/atmel/"
export KERNEL_PATH="${STAGING_KERNEL_DIR}"
export KERNEL_SRC="${STAGING_KERNEL_DIR}"
export CC="${KERNEL_CC}"
export LD="${KERNEL_LD}"
export KERNEL_VERSION="${KERNEL_VERSION}"
export TOPDIR="${S}"
unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
install -d ${OBJDIR}
#oe_runmake -C src/Pcmcia_Pci final CFLAGS:='${CFLAGS} -DATMEL_WLAN -DRFMD -DINT_ROAM' MODULE:='pcmf502r' LIB:=-RFMD-
oe_runmake -C src/Pcmcia_Pci final CFLAGS:='${CFLAGS} -DATMEL_WLAN -DRFMD -DINT_ROAM -DREV_D' MODULE:='pcmf502rd' LIB:=-REVD-
#oe_runmake -C src/Pcmcia_Pci final CFLAGS:='${CFLAGS} -DATMEL_WLAN -DRFMD -DINT_ROAM -DREV_E' MODULE:='pcmf502re' LIB:=-REVE-
}
do_install() {
install -d ${D}/etc/pcmcia
install -m 0644 ${WORKDIR}/pcmf502rd.conf ${D}/etc/pcmcia/
# remove any maps that were installed
rm -f ${D}/lib/modules/${KERNEL_VERSION}/drivers/net/wireless/atmel/*.map
}
|