diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2015-03-25 09:41:17 -0300 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2015-04-02 22:49:07 -0300 |
commit | d2ebacb41b100c224f189e693076c130b7f360e8 (patch) | |
tree | a50cd47e5d5c0d36f90030d56640922b4ce465ab /recipes-kernel | |
parent | bfe01a0ebde407086f4a7710ea165c6beff310d7 (diff) | |
download | meta-fsl-arm-d2ebacb41b100c224f189e693076c130b7f360e8.tar.gz |
linux-mfgtool.inc: Adapt to work-shared kernel source
The kernel source code is (since OE-Core:6a1ff0e7) used from
work-shared. As consequence, the MfgTool kernel needed changes to use
a completely separated source code and avoid messing with original
Linux kernel ABI identificationfile.
Change-Id: Idd43dd5d0d8d9e1ff7cc6e8ce15c8cd60107259d
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'recipes-kernel')
-rw-r--r-- | recipes-kernel/linux/linux-mfgtool.inc | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/recipes-kernel/linux/linux-mfgtool.inc b/recipes-kernel/linux/linux-mfgtool.inc index 5d7219e..948d698 100644 --- a/recipes-kernel/linux/linux-mfgtool.inc +++ b/recipes-kernel/linux/linux-mfgtool.inc | |||
@@ -6,7 +6,7 @@ | |||
6 | # This file must be included after the original linux-imx.inc file | 6 | # This file must be included after the original linux-imx.inc file |
7 | # as it overrides the needed values. | 7 | # as it overrides the needed values. |
8 | # | 8 | # |
9 | # Copyright (C) 2014 O.S. Systems Software LTDA. | 9 | # Copyright (C) 2014, 2015 O.S. Systems Software LTDA. |
10 | 10 | ||
11 | # Adjust provides | 11 | # Adjust provides |
12 | PROVIDES = "linux-mfgtool" | 12 | PROVIDES = "linux-mfgtool" |
@@ -18,6 +18,8 @@ KERNEL_IMAGE_BASE_NAME = "${KERNEL_IMAGETYPE}-mfgtool-${PKGE}-${PKGV}-${PKGR}-${ | |||
18 | KERNEL_IMAGE_SYMLINK_NAME = "${KERNEL_IMAGETYPE}-mfgtool-${MACHINE}" | 18 | KERNEL_IMAGE_SYMLINK_NAME = "${KERNEL_IMAGETYPE}-mfgtool-${MACHINE}" |
19 | MODULE_IMAGE_BASE_NAME = "modules-mfgtool-${PKGE}-${PKGV}-${PKGR}-${MACHINE}-${DATETIME}" | 19 | MODULE_IMAGE_BASE_NAME = "modules-mfgtool-${PKGE}-${PKGV}-${PKGR}-${MACHINE}-${DATETIME}" |
20 | MODULE_TARBALL_SYMLINK_NAME = "modules-mfgtool-${MACHINE}.tgz" | 20 | MODULE_TARBALL_SYMLINK_NAME = "modules-mfgtool-${MACHINE}.tgz" |
21 | STAGING_KERNEL_DIR = "${TMPDIR}/work-shared/${MACHINE}/kernel-mfgtool-source" | ||
22 | STAGING_KERNEL_BUILDDIR = "${TMPDIR}/work-shared/${MACHINE}/kernel-mfgtool-build-artifacts" | ||
21 | 23 | ||
22 | # Ensures we prefer our mfgtool specific files | 24 | # Ensures we prefer our mfgtool specific files |
23 | FILESEXTRAPATHS_prepend := "${THISDIR}/${ORIG_PN}-${PV}:${THISDIR}/${ORIG_PN}:" | 25 | FILESEXTRAPATHS_prepend := "${THISDIR}/${ORIG_PN}-${PV}:${THISDIR}/${ORIG_PN}:" |
@@ -65,17 +67,16 @@ python () { | |||
65 | addhandler mfgtool_recipe_handler | 67 | addhandler mfgtool_recipe_handler |
66 | mfgtool_recipe_handler[eventmask] = "bb.event.RecipePreFinalise" | 68 | mfgtool_recipe_handler[eventmask] = "bb.event.RecipePreFinalise" |
67 | 69 | ||
68 | # FIXME: We need to remove the KERNEL_SRC_PATH contents as | 70 | # FIXME: Avoid depmod data emiting as kernel-abiversion path is |
71 | # hardcoded. | ||
72 | emit_depmod_pkgdata() { | ||
73 | : | ||
74 | } | ||
75 | |||
76 | # FIXME: We need to remove the STAGING_KERNEL_BUILDDIR contents as | ||
69 | # kernel.bbclass has no way to skip its installation. | 77 | # kernel.bbclass has no way to skip its installation. |
70 | # FIXME: It is not possible to have external modules against | 78 | # FIXME: It is not possible to have external modules against |
71 | # this kernel variant. | 79 | # this kernel variant. |
72 | do_install_append() { | 80 | do_install_append() { |
73 | rm -r ${D}${KERNEL_SRC_PATH} | 81 | rm -r ${STAGING_KERNEL_BUILDDIR} |
74 | rmdir ${D}/usr/src ${D}/usr | ||
75 | } | ||
76 | |||
77 | # FIXME: We must to avoid the staging of KERNEL_SRC_PATH as | ||
78 | # it is being removed (see above FIXME items). | ||
79 | sysroot_stage_all() { | ||
80 | : | ||
81 | } | 82 | } |