summaryrefslogtreecommitdiff
path: root/multitech/recipes/linux/linux_2.6.39-at91.bb
blob: e5c5d69ed612cafc2932e8dd0d8b1bc95325766e (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
53
54
require recipes/linux/linux.inc

# PR is set by MACHINE_KERNEL_PR in machine config

# Linux 2.6.39 for AT91
# commit Dec 4, 2013 - tty/serial: atmel_serial: remove dev_dbg in atmel_set_termios
SRCREV="5f90e2645cc8bacb958e1f56ac5ce78ee2db0083"

# Add 2.6.39.4 patch customized to patch against at91 branch
SRC_URI = "git://github.com/linux4sam/linux-at91.git;protocol=https;tag=${SRCREV} \
           file://linux-2.6.39.4-at91.patch \
           file://linux-2.6.39-at91-atmel-nand-debug-bit-flips.patch"

S = "${WORKDIR}/git"

COMMON_PATCHES = " \
                    file://linux-2.6.39.4-ledtrig-netdev.patch \
                    file://linux-2.6.39.4-at91sam9x5-extreset.patch \
                    file://linux-2.6.39.4-atmel-mci-force-detect.patch \
                    file://linux-2.6.39.4-wl12xx-sdio-irq.patch \
                    file://linux-2.6.35.14-at91-gpio-pullup.patch \
                    file://linux-2.6.32.3-atmel_spi.patch \
                    file://linux-2.6.32.3-at25.patch \
                    file://linux-2.6.39.4-atmel_serial_disable_hwhs.patch \
                    file://linux-2.6.39.4-at91sam9_wdt-10second-timeout.patch \
                    file://linux-2.6.35.14-option-zte.patch \
                    file://linux-2.6.39.4-option-telit-20140120.patch \
                    file://linux-2.6.38-sierra-1.7.40.patch \
                    file://linux-2.6.39.4-cdc-acm-ignore-exar-devices.patch \
                    "

SRC_URI_append_mtocgd3 = " \
                    file://defconfig \
                    file://linux-2.6.39.4-mach-at91-mtocgd3.patch \
                    file://linux-2.6.39.4-macb-force-link.patch \
					${COMMON_PATCHES} \
					"

SRC_URI_append_mtocgd = " \
                    file://defconfig \
                    file://linux-2.6.39.4-mach-at91-mtocgd.patch \
					${COMMON_PATCHES} \
					"

# prevent setlocalversion from changing kernel version
do_configure_prepend() {
    touch ${S}/.scmversion
}

# add missing crypto headers
sysroot_stage_all_append() {
    kerneldir=${SYSROOT_DESTDIR}${STAGING_KERNEL_DIR}
    cp -fR include/crypto* $kerneldir/include/
}