diff options
| -rw-r--r-- | meta/recipes-devtools/prelink/prelink_git.bb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/meta/recipes-devtools/prelink/prelink_git.bb b/meta/recipes-devtools/prelink/prelink_git.bb index 4529dbfcfb..b739af0cbd 100644 --- a/meta/recipes-devtools/prelink/prelink_git.bb +++ b/meta/recipes-devtools/prelink/prelink_git.bb | |||
| @@ -150,13 +150,15 @@ do_install_append () { | |||
| 150 | install -m 0644 ${WORKDIR}/macros.prelink ${D}${sysconfdir}/rpm/macros.prelink | 150 | install -m 0644 ${WORKDIR}/macros.prelink ${D}${sysconfdir}/rpm/macros.prelink |
| 151 | } | 151 | } |
| 152 | 152 | ||
| 153 | # If we're using image-prelink, we want to skip this on the host side | 153 | # If we ae doing a cross install, we want to avoid prelinking. |
| 154 | # but still do it if the package is installed on the target... | 154 | # Prelinking during a cross install should be handled by the image-prelink |
| 155 | # bbclass. If the user desires this to run on the target at first boot | ||
| 156 | # they will need to create a custom boot script. | ||
| 155 | pkg_postinst_prelink() { | 157 | pkg_postinst_prelink() { |
| 156 | #!/bin/sh | 158 | #!/bin/sh |
| 157 | 159 | ||
| 158 | if [ "x$D" != "x" ]; then | 160 | if [ "x$D" != "x" ]; then |
| 159 | ${@bb.utils.contains('USER_CLASSES', 'image-prelink', 'exit 0', 'exit 1', d)} | 161 | exit 0 |
| 160 | fi | 162 | fi |
| 161 | 163 | ||
| 162 | prelink -a | 164 | prelink -a |
