summaryrefslogtreecommitdiff
path: root/recipes/mamona/cx3110x-diablo_2.0.15.bb
blob: 84a481b92804e6f36dcd4e98b69028f5c64db6aa (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
PR = "r0"

KERVER = "2.6.21"

COMPATIBLE_MACHINE = "(nokia800|nokia810)"

S = "${WORKDIR}/cx3110x-module-src-2.0.15"
SKERNEL = "${WORKDIR}/kernel-source-diablo-${KERVER}/kernel-source"

# The following require must be after S{S}, ${SKERNEL}, ${KERVER}
require cx3110x.inc

SRC_URI += "\
 http://repository.maemo.org/pool/maemo4.1/free/c/cx3110x-module-src/cx3110x-module-src_2.0.15-1.tar.gz;name=archive \
 http://www.codesourcery.com/public/gnu_toolchain/arm-none-eabi/arm-2005q3-2-arm-none-eabi-i686-pc-linux-gnu.tar.bz2;name=arm \
 http://repository.maemo.org/pool/maemo4.1/free/k/kernel-source-diablo/kernel-source-diablo_2.6.21-200823maemo6.tar.gz;name=kernel \
 file://cx3110x.patch \
 file://create_sysfs_link_for_wlan0.patch \
 file://fix_old_include.patch \
"

SRC_URI[archive.md5sum] = "6ac5db5e602ef205200428a6612b4036"
SRC_URI[archive.sha256sum] = "20416248378cb42cb294584d9c5e4359d3d309ab8e104d62b09848f88bc7fe10"
SRC_URI[arm.md5sum] = "1709df05ed8572c6d2457af0076b867c"
SRC_URI[arm.sha256sum] = "dd754383ae40bbdc9917f26deae6d6aaff4060d7be79b5d6c3f7f5c6f98cfadc"
SRC_URI[kernel.md5sum] = "e1108e92bd0b6bed0bcc375bbfb4e45c"
SRC_URI[kernel.sha256sum] = "0f2c8307d67e17f682f73a6f801021f74fb9da5a5a8d49084879945ee91b3e90"

do_compile() {
    PATH=${WORKDIR}/bin/:$PATH make -C ${SKERNEL} CROSS_COMPILE=arm-none-eabi- nokia_2420_defconfig prepare scripts
    KERNEL_SRC_DIR=${SKERNEL} PATH=${WORKDIR}/bin/:$PATH CROSS_COMPILE=arm-none-eabi- make modules
}