summaryrefslogtreecommitdiff
path: root/recipes-kernel/wilc1000/wilc1000_git.bb
blob: 12d3e907600ebf8d61ea2a94867172e52c3d24e6 (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
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 \
	  "


S = "${WORKDIR}/git"

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

do_install() {
  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
}