From 89cc1315b3e983d52235d5f6f9cecd5f5cedfd83 Mon Sep 17 00:00:00 2001 From: Ricardo Salveti Date: Sat, 3 Feb 2018 01:30:33 -0200 Subject: libacpi: update libacpi_fix_for_x32.patch to use libdir Prefix plus base_libdir generates an invalid path when building with usrmerge, so change libacpi_fix_for_x32.patch to use libdir instead as it provides the right path in both cases. (From OE-Core rev: c46d50c82d8ad27aaa75b974fa80838ff3a81386) Signed-off-by: Ricardo Salveti Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- .../libacpi/files/libacpi_fix_for_x32.patch | 30 ++++++++-------------- 1 file changed, 10 insertions(+), 20 deletions(-) (limited to 'meta/recipes-bsp/libacpi/files') diff --git a/meta/recipes-bsp/libacpi/files/libacpi_fix_for_x32.patch b/meta/recipes-bsp/libacpi/files/libacpi_fix_for_x32.patch index 86a16c262f..06f20e5a78 100644 --- a/meta/recipes-bsp/libacpi/files/libacpi_fix_for_x32.patch +++ b/meta/recipes-bsp/libacpi/files/libacpi_fix_for_x32.patch @@ -3,9 +3,10 @@ Upstream-Status: Pending Fix libacpi for x32 libacpi doesn't use base_libdir for install. This patch adds - base_libdir support so that x32 libraries are installed properly. + libdir support so that x32 libraries are installed properly. Patch Received from: H.J. Lu +Updated by: Ricardo Salveti 2018/02/03 Signed-off-by: Nitin A Kamble 2011/12/05 @@ -13,18 +14,7 @@ Index: libacpi-0.2/Makefile =================================================================== --- libacpi-0.2.orig/Makefile +++ libacpi-0.2/Makefile -@@ -8,6 +8,10 @@ SRC_test = test-libacpi.c libacpi.c list - OBJ = ${SRC:.c=.o} - OBJ_test = ${SRC_test:.c=.o} - -+ifndef base_libdir -+base_libdir=/lib -+endif -+ - all: options libacpi.a libacpi.so test-libacpi - - options: -@@ -42,13 +46,13 @@ install: all +@@ -42,13 +42,13 @@ install: all @mkdir -p ${DESTDIR}${PREFIX}/include @cp -f libacpi.h ${DESTDIR}${PREFIX}/include @chmod 644 ${DESTDIR}${PREFIX}/include/libacpi.h @@ -35,13 +25,13 @@ Index: libacpi-0.2/Makefile - @cp -f ${SONAME} ${DESTDIR}${PREFIX}/lib/ - @chmod 644 ${DESTDIR}${PREFIX}/lib/${SONAME} - @ln -s ${SONAME} ${DESTDIR}${PREFIX}/lib/libacpi.so -+ @echo installing library to ${DESTDIR}${PREFIX}${base_libdir} -+ @mkdir -p ${DESTDIR}${PREFIX}${base_libdir} -+ @cp -f libacpi.a ${DESTDIR}${PREFIX}${base_libdir} -+ @chmod 644 ${DESTDIR}${PREFIX}${base_libdir}/libacpi.a -+ @cp -f ${SONAME} ${DESTDIR}${PREFIX}${base_libdir}/ -+ @chmod 644 ${DESTDIR}${PREFIX}${base_libdir}/${SONAME} -+ @ln -s ${SONAME} ${DESTDIR}${PREFIX}${base_libdir}/libacpi.so ++ @echo installing library to ${DESTDIR}${LIBDIR} ++ @mkdir -p ${DESTDIR}${LIBDIR} ++ @cp -f libacpi.a ${DESTDIR}${LIBDIR} ++ @chmod 644 ${DESTDIR}${LIBDIR}/libacpi.a ++ @cp -f ${SONAME} ${DESTDIR}${LIBDIR}/ ++ @chmod 644 ${DESTDIR}${LIBDIR}/${SONAME} ++ @ln -s ${SONAME} ${DESTDIR}${LIBDIR}/libacpi.so @echo installing test-libacpi to ${DESTDIR}${PREFIX}/bin @mkdir -p ${DESTDIR}${PREFIX}/bin @cp -f test-libacpi ${DESTDIR}${PREFIX}/bin -- cgit v1.2.3-54-g00ecf