diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-bsp/libacpi/files/libacpi_fix_for_x32.patch | 30 | ||||
-rw-r--r-- | meta/recipes-bsp/libacpi/libacpi_0.2.bb | 2 |
2 files changed, 11 insertions, 21 deletions
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 | |||
3 | Fix libacpi for x32 | 3 | Fix libacpi for x32 |
4 | 4 | ||
5 | libacpi doesn't use base_libdir for install. This patch adds | 5 | libacpi doesn't use base_libdir for install. This patch adds |
6 | base_libdir support so that x32 libraries are installed properly. | 6 | libdir support so that x32 libraries are installed properly. |
7 | 7 | ||
8 | Patch Received from: H.J. Lu <hjl.tools@gmail.com> | 8 | Patch Received from: H.J. Lu <hjl.tools@gmail.com> |
9 | Updated by: Ricardo Salveti <ricardo@opensourcefoundries.com> 2018/02/03 | ||
9 | 10 | ||
10 | Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com> 2011/12/05 | 11 | Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com> 2011/12/05 |
11 | 12 | ||
@@ -13,18 +14,7 @@ Index: libacpi-0.2/Makefile | |||
13 | =================================================================== | 14 | =================================================================== |
14 | --- libacpi-0.2.orig/Makefile | 15 | --- libacpi-0.2.orig/Makefile |
15 | +++ libacpi-0.2/Makefile | 16 | +++ libacpi-0.2/Makefile |
16 | @@ -8,6 +8,10 @@ SRC_test = test-libacpi.c libacpi.c list | 17 | @@ -42,13 +42,13 @@ install: all |
17 | OBJ = ${SRC:.c=.o} | ||
18 | OBJ_test = ${SRC_test:.c=.o} | ||
19 | |||
20 | +ifndef base_libdir | ||
21 | +base_libdir=/lib | ||
22 | +endif | ||
23 | + | ||
24 | all: options libacpi.a libacpi.so test-libacpi | ||
25 | |||
26 | options: | ||
27 | @@ -42,13 +46,13 @@ install: all | ||
28 | @mkdir -p ${DESTDIR}${PREFIX}/include | 18 | @mkdir -p ${DESTDIR}${PREFIX}/include |
29 | @cp -f libacpi.h ${DESTDIR}${PREFIX}/include | 19 | @cp -f libacpi.h ${DESTDIR}${PREFIX}/include |
30 | @chmod 644 ${DESTDIR}${PREFIX}/include/libacpi.h | 20 | @chmod 644 ${DESTDIR}${PREFIX}/include/libacpi.h |
@@ -35,13 +25,13 @@ Index: libacpi-0.2/Makefile | |||
35 | - @cp -f ${SONAME} ${DESTDIR}${PREFIX}/lib/ | 25 | - @cp -f ${SONAME} ${DESTDIR}${PREFIX}/lib/ |
36 | - @chmod 644 ${DESTDIR}${PREFIX}/lib/${SONAME} | 26 | - @chmod 644 ${DESTDIR}${PREFIX}/lib/${SONAME} |
37 | - @ln -s ${SONAME} ${DESTDIR}${PREFIX}/lib/libacpi.so | 27 | - @ln -s ${SONAME} ${DESTDIR}${PREFIX}/lib/libacpi.so |
38 | + @echo installing library to ${DESTDIR}${PREFIX}${base_libdir} | 28 | + @echo installing library to ${DESTDIR}${LIBDIR} |
39 | + @mkdir -p ${DESTDIR}${PREFIX}${base_libdir} | 29 | + @mkdir -p ${DESTDIR}${LIBDIR} |
40 | + @cp -f libacpi.a ${DESTDIR}${PREFIX}${base_libdir} | 30 | + @cp -f libacpi.a ${DESTDIR}${LIBDIR} |
41 | + @chmod 644 ${DESTDIR}${PREFIX}${base_libdir}/libacpi.a | 31 | + @chmod 644 ${DESTDIR}${LIBDIR}/libacpi.a |
42 | + @cp -f ${SONAME} ${DESTDIR}${PREFIX}${base_libdir}/ | 32 | + @cp -f ${SONAME} ${DESTDIR}${LIBDIR}/ |
43 | + @chmod 644 ${DESTDIR}${PREFIX}${base_libdir}/${SONAME} | 33 | + @chmod 644 ${DESTDIR}${LIBDIR}/${SONAME} |
44 | + @ln -s ${SONAME} ${DESTDIR}${PREFIX}${base_libdir}/libacpi.so | 34 | + @ln -s ${SONAME} ${DESTDIR}${LIBDIR}/libacpi.so |
45 | @echo installing test-libacpi to ${DESTDIR}${PREFIX}/bin | 35 | @echo installing test-libacpi to ${DESTDIR}${PREFIX}/bin |
46 | @mkdir -p ${DESTDIR}${PREFIX}/bin | 36 | @mkdir -p ${DESTDIR}${PREFIX}/bin |
47 | @cp -f test-libacpi ${DESTDIR}${PREFIX}/bin | 37 | @cp -f test-libacpi ${DESTDIR}${PREFIX}/bin |
diff --git a/meta/recipes-bsp/libacpi/libacpi_0.2.bb b/meta/recipes-bsp/libacpi/libacpi_0.2.bb index 6dc66ea25f..5e7f7fa8e0 100644 --- a/meta/recipes-bsp/libacpi/libacpi_0.2.bb +++ b/meta/recipes-bsp/libacpi/libacpi_0.2.bb | |||
@@ -28,5 +28,5 @@ EXTRA_OEMAKE = '-e MAKEFLAGS= STRIP="echo"' | |||
28 | TARGET_CC_ARCH += "${LDFLAGS}" | 28 | TARGET_CC_ARCH += "${LDFLAGS}" |
29 | 29 | ||
30 | do_install() { | 30 | do_install() { |
31 | oe_runmake install DESTDIR=${D} PREFIX=${exec_prefix} | 31 | oe_runmake install DESTDIR=${D} PREFIX=${exec_prefix} LIBDIR=${libdir} |
32 | } | 32 | } |