summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNorbert Wesp <n.wesp@phytec.de>2018-12-05 17:02:35 +0100
committerStefan Müller-Klieser <s.mueller-klieser@phytec.de>2018-12-10 10:39:43 +0100
commit2572591cf9658ec852268b0ab0f05a6dc3534153 (patch)
treec45b3a70c4132c8f1511690339a9c2e4c92f3499
parentbf469750c64667c0f07764e1f5aeb63c43da9222 (diff)
downloadmeta-phytec-2572591cf9658ec852268b0ab0f05a6dc3534153.tar.bz2
meta-phytec-2572591cf9658ec852268b0ab0f05a6dc3534153.zip
recipes-kernel: linux-common: devicetree fixup for devtool
In rocko branch after 'devtool modify linux-mainline' you can not build the kernel. You will get "ERROR: Unable to parse..." Since rocko branch a do_patch_append task with mixed shell and python can not be parsed by the codeparser of bitbake. So we have to convert this task to a python task. Signed-off-by: Norbert Wesp <n.wesp@phytec.de> Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
-rw-r--r--recipes-kernel/linux/linux-common.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/recipes-kernel/linux/linux-common.inc b/recipes-kernel/linux/linux-common.inc
index 78e3529..fe34672 100644
--- a/recipes-kernel/linux/linux-common.inc
+++ b/recipes-kernel/linux/linux-common.inc
@@ -28,7 +28,7 @@ def find_dtss(d):
return dtss_list
-do_patch_append () {
+python do_dtsfixup () {
import shutil
srcdir = d.getVar('STAGING_KERNEL_DIR', True)
arch = d.getVar('ARCH', True)
@@ -39,6 +39,8 @@ do_patch_append () {
shutil.copyfile(dts, cptarget)
}
+addtask dtsfixup after do_patch before do_compile
+
KERNEL_IMAGE_BASE_NAME = "${KERNEL_IMAGETYPE}-${PN}-${PKGV}-${PKGR}-${MACHINE}-${DATETIME}"
do_deploy_append() {
install -m 644 ${B}/.config ${DEPLOYDIR}/${KERNEL_IMAGE_BASE_NAME}.config