diff options
| author | Anastasios Kavoukis <anastasios.kavoukis@arm.com> | 2021-07-28 20:19:16 +0100 |
|---|---|---|
| committer | Armin Kuster <akuster808@gmail.com> | 2021-08-01 09:28:45 -0700 |
| commit | 24e01c99c4a06a5281fb80a648729c9b9add3091 (patch) | |
| tree | 636b4a859cf3bb0281fc79ca6050324d6a8dfd70 | |
| parent | b97e6c971639072f3866e26218505e390fd26cae (diff) | |
| download | meta-openembedded-24e01c99c4a06a5281fb80a648729c9b9add3091.tar.gz | |
pm-qa: fix paths for shell scripts
A commit in the repo of pm-qa:
"adf9df9 Fix path to library files and change shebang line"
Changed the text that sed was using to replace relative to
absolute paths.
As a result sed was not effectively finding the text
"source ../include" to replace it, as the sed should be now
searching for ". ../include".
Similarly for "../Switches"
Signed-off-by: Anastasios Kavoukis <anastasios.kavoukis@arm.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit 06a93a04efe2c2cbae6de93d07962be4dfa35019)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
| -rw-r--r-- | meta-oe/recipes-test/pm-qa/pm-qa_git.bb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta-oe/recipes-test/pm-qa/pm-qa_git.bb b/meta-oe/recipes-test/pm-qa/pm-qa_git.bb index 7e9971ea4c..bb641437c9 100644 --- a/meta-oe/recipes-test/pm-qa/pm-qa_git.bb +++ b/meta-oe/recipes-test/pm-qa/pm-qa_git.bb | |||
| @@ -42,6 +42,7 @@ do_install () { | |||
| 42 | do | 42 | do |
| 43 | # Remove hardcoded relative paths | 43 | # Remove hardcoded relative paths |
| 44 | sed -i -e 's#..\/utils\/##' ${script} | 44 | sed -i -e 's#..\/utils\/##' ${script} |
| 45 | sed -i -e 's#. ..\/Switches#${bindir}#g' ${script} | ||
| 45 | 46 | ||
| 46 | script_basename=`basename ${script}` | 47 | script_basename=`basename ${script}` |
| 47 | install -m 0755 $script ${D}${libdir}/${BPN}/${script_basename} | 48 | install -m 0755 $script ${D}${libdir}/${BPN}/${script_basename} |
| @@ -54,7 +55,7 @@ do_install () { | |||
| 54 | # if the script includes any helper scripts from the $libdir | 55 | # if the script includes any helper scripts from the $libdir |
| 55 | # directory then change the source path to the absolute path | 56 | # directory then change the source path to the absolute path |
| 56 | # to reflect the install location of the helper scripts. | 57 | # to reflect the install location of the helper scripts. |
| 57 | sed -i -e "s#source ../include#source ${libdir}/${BPN}#g" ${script} | 58 | sed -i -e "s#. ../include#. ${libdir}/${BPN}#g" ${script} |
| 58 | # Remove hardcoded relative paths | 59 | # Remove hardcoded relative paths |
| 59 | sed -i -e 's#..\/utils\/##' ${script} | 60 | sed -i -e 's#..\/utils\/##' ${script} |
| 60 | 61 | ||
