blob: 370c438f1814310e5260351d770bc3ad7eb24c55 (
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
|
inherit kernel
require recipes-kernel/linux/linux-toradex.inc
LINUX_VERSION ?= "3.1.10"
LOCALVERSION = "-${PR}"
SRCREV = "7e628fdb597e82e877ef10d22352a79f0a411221"
PR = "v2.7b1"
PV = "${LINUX_VERSION}+gitr${SRCREV}"
S = "${WORKDIR}/git"
SRCBRANCH = "tegra-next"
SRC_URI = "git://git.toradex.com/linux-toradex.git;protocol=git;branch=${SRCBRANCH}"
COMPATIBLE_MACHINE = "(apalis-t30|colibri-pxa|colibri-t20|colibri-t30)"
# One possibiltiy for changes to the defconfig:
config_script () {
# #example change to the .config
# #sets CONFIG_TEGRA_CAMERA unconditionally to 'y'
# sed -i -e /CONFIG_TEGRA_CAMERA/d ${B}/.config
# echo "CONFIG_TEGRA_CAMERA=y" >> ${B}/.config
echo "dummy" > /dev/null
}
do_configure_prepend () {
#use the defconfig provided in the kernel source tree
#assume its called ${MACHINE}_defconfig, but with '_' instead of '-'
DEFCONFIG="`echo ${MACHINE} | sed -e 's/\-/\_/g' -e 's/$/_defconfig/'`"
pushd ${S}
export KBUILD_OUTPUT=${B}
oe_runmake $DEFCONFIG
#maybe change some configuration
config_script
#Add Toradex BSP Version as LOCALVERSION
sed -i -e /CONFIG_LOCALVERSION/d ${B}/.config
echo "CONFIG_LOCALVERSION=\"${LOCALVERSION}\"" >> ${B}/.config
#Add GIT revision to the local version
head=`git --git-dir=${S}/.git rev-parse --verify --short HEAD 2> /dev/null`
printf "%s%s" +g $head > ${S}/.scmversion
popd
}
do_uboot_mkimage_prepend () {
cd ${B}
}
|