[meta-freescale] [PATCH 2/3] imx-test: Install memtool_profile
Fabio Berton
fabio.berton at ossystems.com.br
Thu Jul 5 12:37:16 PDT 2018
Signed-off-by: Fabio Berton <fabio.berton at ossystems.com.br>
---
recipes-bsp/imx-test/imx-test/memtool_profile | 1 +
recipes-bsp/imx-test/imx-test_git.bb | 3 +++
2 files changed, 4 insertions(+)
create mode 100644 recipes-bsp/imx-test/imx-test/memtool_profile
diff --git a/recipes-bsp/imx-test/imx-test/memtool_profile b/recipes-bsp/imx-test/imx-test/memtool_profile
new file mode 100644
index 00000000..97d6f614
--- /dev/null
+++ b/recipes-bsp/imx-test/imx-test/memtool_profile
@@ -0,0 +1 @@
+complete -o nospace -C /unit_tests/memtool memtool
diff --git a/recipes-bsp/imx-test/imx-test_git.bb b/recipes-bsp/imx-test/imx-test_git.bb
index 31f179d8..9352cae0 100644
--- a/recipes-bsp/imx-test/imx-test_git.bb
+++ b/recipes-bsp/imx-test/imx-test_git.bb
@@ -27,6 +27,7 @@ SRCREV = "1f7da41b3a8d5dff8329d7b01b10d4d71144b43e"
SRC_URI = " \
git://source.codeaurora.org/external/imx/imx-test.git;protocol=https;branch=${SRCBRANCH} \
file://0001-test-Makefile-Add-include-path-to-CC-command.patch \
+ file://memtool_profile \
"
S = "${WORKDIR}/git"
@@ -68,6 +69,7 @@ do_compile() {
LINUXPATH=${STAGING_KERNEL_DIR} \
KBUILD_OUTPUT=${STAGING_KERNEL_BUILDDIR} \
PLATFORM=${PLATFORM}
+ install -Dm 0644 ${WORKDIR}/memtool_profile ${D}/home/root/.profile
}
do_install() {
@@ -82,6 +84,7 @@ do_install() {
FILES_${PN} += "/unit_tests"
RDEPENDS_${PN} = "bash"
+FILES_${PN} += " /home/root/.profile "
FILES_${PN}-dbg += "/unit_tests/.debug"
COMPATIBLE_MACHINE = "(mx6|mx7)"
--
2.18.0
More information about the meta-freescale
mailing list