summaryrefslogtreecommitdiff
path: root/recipes-kernel/linux/linux_3.12.27.bb
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-kernel/linux/linux_3.12.27.bb')
-rw-r--r--recipes-kernel/linux/linux_3.12.27.bb14
1 files changed, 13 insertions, 1 deletions
diff --git a/recipes-kernel/linux/linux_3.12.27.bb b/recipes-kernel/linux/linux_3.12.27.bb
index 1d82e66..e266d41 100644
--- a/recipes-kernel/linux/linux_3.12.27.bb
+++ b/recipes-kernel/linux/linux_3.12.27.bb
@@ -2,7 +2,7 @@ inherit kernel
# mts class to build dtb and append to kernel image
inherit linux-append-dtb
-PR = "r12"
+PR = "r13"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
@@ -28,6 +28,7 @@ COMMON_PATCHES = " \
file://linux-3.12.27-USB-option-reduce-interrupt-urb-logging-verbosity.patch \
file://linux-3.12-pps-gpio.patch \
file://linux-3.12-cadence-macb.patch \
+ file://linux-3.12-time-leap-second-v3.patch \
"
SRC_URI_append_mtcdt = "\
@@ -52,6 +53,17 @@ SRC_URI[sha256sum] = "2014c55257dda311779359d6b42931079a687c154777cc528c44e25f26
COMPATIBLE_MACHINE = "(mtcdt|mtcap)"
DTB_APPEND_mtcdt = "mtcdt"
DTB_APPEND_mtcap = "mtcap"
+do_patch_append() {
+ # Makefile location
+ makefl="${S}" + "/Makefile"
+ # String to find: EXTRAVERSION =
+ original="'^(.*EXTRAVERSION[[:space:]]*=)[[:space:]]*'"
+ # Update for string Copy variable = and set to PR version
+ upd="'\\1 " + "${PR}" + "'"
+ # Use sed to write the data to the file.
+ print "Setting EXTRAVERSION to ${PR}\n"
+ os.system("sed -ri -e s/" + original + "/" + upd + "/ " + makefl)
+}
# disable this on purpose for dev purposes
do_rm_work() {