blob: 6d7739ce7f8e5b468847a31cff8abccb3c0664cd (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
SRC_URI = "${SOURCEFORGE_MIRROR}/atmelwlandriver/atmelwlandriver-${PV}.tar.bz2 \
file://dotconfig \
file://pcmf502rd.conf \
file://makefile.patch;apply=yes \
file://add-compaq-usb-ids.patch;apply=yes \
file://power-on-and-leds.patch;apply=yes \
file://fix-kernel-version-test-for-hh.patch;apply=yes"
S = "${WORKDIR}/atmelwlandriver"
LICENSE = "GPL"
PR = "r2"
inherit module
SECTION = "base"
PACKAGES = "${PN}-dbg atmelwlandriver-pcmcia atmelwlandriver-usb"
FILES_atmelwlandriver-pcmcia = "${base_libdir}/modules/${KERNEL_VERSION}/drivers/net/wireless/atmel/pcmf502rd.o ${sysconfdir}/pcmcia/pcmf502rd.conf"
FILES_atmelwlandriver-usb = "${base_libdir}/modules/${KERNEL_VERSION}/drivers/net/wireless/atmel/usbvnetr.o"
do_configure() {
install ${WORKDIR}/dotconfig .config
}
CFLAGS_pcmcia = "-DLINUX_OS -D__KERNEL__ -DMODULE -I${S}/src/includes -I${S}/src/includes/pcmcia -I${STAGING_KERNEL_DIR}/include"
CFLAGS_usb = "-DLINUX_OS -D__KERNEL__ -DMODULE -I${S}/src/includes -I${S}/src/includes/usb -I${STAGING_KERNEL_DIR}/include"
do_compile() {
export INC="${S}/src/includes"
export OBJDIR="${D}${base_libdir}/modules/${KERNEL_VERSION}/drivers/net/wireless/atmel/"
export KERNEL_PATH="${STAGING_KERNEL_DIR}"
export KERNEL_SRC="${STAGING_KERNEL_DIR}"
export CC="${KERNEL_CC}"
export CCC="${KERNEL_CC}"
export LD="${KERNEL_LD}"
export KERNEL_VERSION="${KERNEL_VERSION}"
export TOPDIR="${S}"
unset CFLAGS CCFLAGS CPPFLAGS CXXFLAGS LDFLAGS
install -d ${OBJDIR}
oe_runmake -C src/Pcmcia_Pci final CFLAGS:='${CFLAGS_pcmcia} -DATMEL_WLAN -DRFMD -DINT_ROAM -DREV_D' MODULE:='pcmf502rd' LIB:=-REVD-
oe_runmake -C src/usb final CFLAGS:='${CFLAGS_usb} -DATMEL_WLAN -DRFMD' MODULE:='usbvnetr'
}
do_install() {
install -d ${D}${sysconfdir}/pcmcia
install -m 0644 ${WORKDIR}/pcmf502rd.conf ${D}${sysconfdir}/pcmcia/
# remove any maps that were installed
rm -f ${D}${base_libdir}/modules/${KERNEL_VERSION}/drivers/net/wireless/atmel/*.map
}
SRC_URI[md5sum] = "288882c65cc13fbe48d5c5ed69aba1a8"
SRC_URI[sha256sum] = "dd3629e6ba6f638962f3a60035208facf6155397000c86b5f2f7ca2990ef59e1"
|