[oe] [PATCH 2/3] grub: use ${libdir}, not /usr/lib

Michael Smith msmith at cbnco.com
Thu May 7 18:27:14 UTC 2009


Signed-off-by: Michael Smith <msmith at cbnco.com>
---
 recipes/grub/grub_0.97.bb |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/recipes/grub/grub_0.97.bb b/recipes/grub/grub_0.97.bb
index ef37af1..e1162ef 100644
--- a/recipes/grub/grub_0.97.bb
+++ b/recipes/grub/grub_0.97.bb
@@ -20,11 +20,12 @@ python __anonymous () {
 
 do_install_append() {
         install -d ${D}/boot/
-	ln -sf ../usr/lib/grub/i386${TARGET_VENDOR}/ ${D}/boot/grub
+	ln -sf ..${libdir}/grub/i386${TARGET_VENDOR}/ ${D}/boot/grub
 
 	# TODO: better use grub-set-default script here?
-	install -m 0644  ${WORKDIR}/menu.lst ${D}/boot/grub
+	install -m 0644 ${WORKDIR}/menu.lst \
+		${D}${libdir}/grub/i386${TARGET_VENDOR}/
 }
 
 FILES_${PN}-doc = "${datadir}"
-FILES_${PN} = "/boot /usr"
+FILES_${PN} = "/boot ${prefix}"
-- 
1.5.6.5





More information about the Openembedded-devel mailing list