summaryrefslogtreecommitdiff
path: root/recipes-kernel/wilc1000/wilc1000_3.12.27.bb
blob: 16f3e6a3ea7da8b120e59855a6c3d098a2b2b799 (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
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"

inherit module

PV = "3.18"
KBRANCH = "kernel-3.18"
SRCREV = "${AUTOREV}"
SRC_URI = "git://github.com/linux4sc/staging.git;protocol=git;branch=${KBRANCH} \
	   file://wilcp1000_3.18_to_3.12_kernel.patch \
	   file://wilc1000.conf \
	  "


S = "${WORKDIR}/git"

EXTRA_OEMAKE = '-C ${STAGING_KERNEL_DIR} M=${S} \
  CONFIG_ATMEL_SMARTCONNECT=y \
  CONFIG_WILC1000=m \
  CONFIG_WILC1000_SDIO=m \
  '

do_install() {
  echo PN is ${PN}
  install -d ${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/net/wireless/atmel/wilc1000
  install -m 0644 ${S}/*${KERNEL_OBJECT_SUFFIX} ${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/net/wireless/atmel/wilc1000
  install -d ${D}${sysconfdir}/modprobe.d
  install -m 0644 ${WORKDIR}/wilc1000.conf ${D}${sysconfdir}/modprobe.d
}
FILES_kernel-module-${PN} += "${sysconfdir}/modprobe.d/wilc1000.conf"