summaryrefslogtreecommitdiff
path: root/recipes-kernel/linux/linux-colibri-t20_git.bb
blob: d3c0d7d8709bf21b00eeaec9aaced40345152fc1 (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
inherit kernel
require recipes-kernel/linux/linux.inc

LINUX_VERSION ?= "3.1.10"

#SRCREV = "37440f3ed07a6f588b05b8f98d0b3025c1949371"
#L4T R15 first run
#SRCREV = "4f48c4961b86b4df1bcb4b1b535bc1c3d158b5af" 
#L4T R15, optimized config, bcm4329 warnings removed
SRCREV = "b562b12b12ba303d5ceca17b347d8c506e18f7f4"

PV = "${LINUX_VERSION}+gitr${SRCREV}"
PR = "V2.0b1"
S = "${WORKDIR}/git"
#SRC_URI = "\
#  git://gitorious.org/colibri-t20-embedded-linux-bsp/colibri_t20-linux-kernel.git;protocol=git;branch=master \
#  file://bcm4329_warning.patch "
SRC_URI = "git://git.toradex.com/linux-colibri.git;protocol=git;branch=colibri"
#  file://bcm4329_warning.patch \
#  file://remove_modules.patch "

#SVN_REV = 190
#PV = "2.6.36.2"
#PR = "${SVN_REV}"
#S = "${WORKDIR}/kernel"
#SRC_URI = "svn://tegradev:tegra123!@mammut.toradex.int:8090/colibri_tegra_linux/trunk;module=kernel;rev=${SVN_REV};proto=http \
#	file://bcm4329_warning.patch "

COMPATIBLE_MACHINE = "colibri-t20"

CMDLINE="mem=148M@0M fbmem=12M@148M nvmem=96M@160M vmalloc=248M video=tegrafb root=/dev/nfs ip=:::::eth0:on rw netdevwait mtdparts=tegra_nand:1018368K@28160K(userspace) console=ttyS0,115200n8 usb_high_speed=0"

do_configure_prepend_colibri-t20() {
	#use the defconfig provided in the kernel source tree
	install -m 0644 ${S}/arch/arm/configs/colibri_t20_defconfig ${WORKDIR}/defconfig

	#compile with -O2, 4.5. compiler seems to fail with -Os
#	sed -i -e /CONFIG_CC_OPTIMIZE_FOR_SIZE/d ${WORKDIR}/defconfig
#	echo "CONFIG_CC_OPTIMIZE_FOR_SIZE=n" >> ${WORKDIR}/defconfig

	#compile with -mno-unaligned-access, with 4.7 compiler the kernel fails 
	echo "KBUILD_CFLAGS   += -mno-unaligned-access" >> ${S}/Makefile
}

#do_compile_kernelmodules_colibri-t20() {
#       :
#}

#require recipes-kernel/linux/linux-tools.inc