Hi,
I find that specifying a SRCREV doesn't work for kernel git recipes. The
following recipe has SRCREV set to the commit id for xilinx_v2.6.37, but during
the build process, it is always taking the latest commit id from the master
branch, which is at 3.3.0.
I checked the
tmp/work/virtex5-poky-linux/linux-xilinx-2.6.37+git1+ed63a4d76efadcb68f5776e4244766ffea226cc4-r17/git/Makefile
and it clearly is building linux kernel 3.3.0 instead of 2.6.37
contents of Makefile:
VERSION = 3
PATCHLEVEL = 3
SUBLEVEL = 0
EXTRAVERSION = -14.2-build1
NAME = Saber-toothed Squirrel
recipe linux-xilinx_git.bb
inherit kernel xilinx-kernel xilinx-utils
require recipes-kernel/linux/linux-dtb.inc
DESCRIPTION = "Linux kernel for Xilinx platforms"
COMPATIBLE_MACHINE = "(virtex4|virtex5|virtex5mb|spartan6-sp605|spartan6-lx9mb)"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
KBRANCH = "master"
SRCREV = "a5556fb251253ccb674bd22d9703c37f6f8807a8"
SRC_URI = "git://git.xilinx.com/linux-xlnx.git;protocol=git;branch=${KBRANCH} \
file://defconfig"
LINUX_VERSION ?= "2.6.37"
PR = "r17"
PV = "${LINUX_VERSION}+git${SRCPV}"
XILINX_BOARD ?= "${@find_board(bb.data.getVar('XILINX_BSP_PATH', d, 1), d)}"
KERNEL_DEVICETREE = "${@device_tree(bb.data.getVar('TARGET_ARCH', d, 1), d)}"
KERNEL_DEVICETREE_microblazeel = "${@device_tree(bb.data.getVar('TARGET_CPU',
d, 1), d)}"
S = "${WORKDIR}/git"
Elvis Dowson
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto