aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-kernel/linux/linux-linaro-lt-freedreno.inc
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-kernel/linux/linux-linaro-lt-freedreno.inc')
-rw-r--r--recipes-kernel/linux/linux-linaro-lt-freedreno.inc45
1 files changed, 45 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-linaro-lt-freedreno.inc b/recipes-kernel/linux/linux-linaro-lt-freedreno.inc
new file mode 100644
index 0000000..3217e1f
--- /dev/null
+++ b/recipes-kernel/linux/linux-linaro-lt-freedreno.inc
@@ -0,0 +1,45 @@
+# Copyright (C) 2014 Linaro
+# Copyright (C) 2012, 2013 O.S. Systems Software LTDA.
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+DESCRIPTION = "Linux kernel for MSM platforms"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
+
+inherit kernel
+
+# Put a local version until we have a true SRCREV to point to
+LOCALVERSION ?= "+yocto"
+SCMVERSION ?= "y"
+
+SRC_URI = "git://git.linaro.org/landing-teams/working/qualcomm/kernel.git;branch=${SRCBRANCH};protocol=https \
+ file://defconfig \
+"
+
+S = "${WORKDIR}/git"
+
+kernel_conf_variable() {
+ CONF_SED_SCRIPT="$CONF_SED_SCRIPT /CONFIG_$1[ =]/d;"
+ if test "$2" = "n"
+ then
+ echo "# CONFIG_$1 is not set" >> ${S}/.config
+ else
+ echo "CONFIG_$1=$2" >> ${S}/.config
+ fi
+}
+
+do_configure_prepend() {
+ echo "" > ${S}/.config
+ CONF_SED_SCRIPT=""
+
+ kernel_conf_variable LOCALVERSION "\"${LOCALVERSION}\""
+ kernel_conf_variable LOCALVERSION_AUTO y
+
+ sed -e "${CONF_SED_SCRIPT}" < '${WORKDIR}/defconfig' >> '${S}/.config'
+
+ if [ "${SCMVERSION}" = "y" ]; then
+ # Add GIT revision to the local version
+ head=`git rev-parse --verify --short HEAD 2> /dev/null`
+ printf "%s%s" +g $head > ${S}/.scmversion
+ fi
+}