From 666c40ca1536e9cbdd7971fe8cfcf710dc6f9728 Mon Sep 17 00:00:00 2001 From: Hiago De Franco Date: Thu, 14 Mar 2024 10:11:53 -0300 Subject: imx-test: Use ROOT_HOME instead of hardcoded home directory Hardcoding the root home directory could cause issues when the ROOT_HOME is not set to '/home/root'. As example, the ROOT_HOME can be changed to '/root', which makes imx-test install files in the wrong folder. Therefore, replace '/home/root' with '$ROOT_HOME'. Usually, ROOT_HOME is already set to '/home/root' [1]. [1] https://docs.yoctoproject.org/4.3.3/ref-manual/variables.html?highlight=variables#term-ROOT_HOME Signed-off-by: Hiago De Franco --- recipes-bsp/imx-test/imx-test_git.bb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/recipes-bsp/imx-test/imx-test_git.bb b/recipes-bsp/imx-test/imx-test_git.bb index 815a77df..846941f3 100644 --- a/recipes-bsp/imx-test/imx-test_git.bb +++ b/recipes-bsp/imx-test/imx-test_git.bb @@ -73,11 +73,11 @@ do_install() { if [ -e ${WORKDIR}/clocks.sh ]; then install -m 755 ${WORKDIR}/clocks.sh ${D}/unit_tests/clocks.sh fi - install -d -m 0755 ${D}/home/root/ - install -m 0644 ${WORKDIR}/memtool_profile ${D}/home/root/.profile + install -d -m 0755 ${D}${ROOT_HOME}/ + install -m 0644 ${WORKDIR}/memtool_profile ${D}${ROOT_HOME}/.profile } -FILES:${PN} += "/unit_tests /home/root/.profile" +FILES:${PN} += "/unit_tests ${ROOT_HOME}/.profile" RDEPENDS:${PN} = "bash" FILES:${PN}-dbg += "/unit_tests/.debug" -- cgit v1.2.3-54-g00ecf