diff options
| -rw-r--r-- | meta/recipes-bsp/libacpi/files/ldflags.patch | 41 | ||||
| -rw-r--r-- | meta/recipes-bsp/libacpi/libacpi_0.2.bb | 3 |
2 files changed, 43 insertions, 1 deletions
diff --git a/meta/recipes-bsp/libacpi/files/ldflags.patch b/meta/recipes-bsp/libacpi/files/ldflags.patch new file mode 100644 index 0000000000..a7424c39da --- /dev/null +++ b/meta/recipes-bsp/libacpi/files/ldflags.patch | |||
| @@ -0,0 +1,41 @@ | |||
| 1 | libacpi: Remove QA warning: No GNU_HASH in the elf binary | ||
| 2 | |||
| 3 | Upstream-Status: Inappropriate [other] | ||
| 4 | Useful within bitbake environment only. | ||
| 5 | |||
| 6 | Signed-off-by: Muhammad Shakeel <muhammad_shakeel@mentor.com> | ||
| 7 | |||
| 8 | --- | ||
| 9 | Makefile | 3 ++- | ||
| 10 | config.mk | 1 + | ||
| 11 | 2 files changed, 3 insertions(+), 1 deletion(-) | ||
| 12 | |||
| 13 | --- libacpi-0.2.orig/Makefile | ||
| 14 | +++ libacpi-0.2/Makefile | ||
| 15 | @@ -19,6 +19,7 @@ options: | ||
| 16 | @echo "CFLAGS = ${CFLAGS}" | ||
| 17 | @echo "CC = ${CC}" | ||
| 18 | @echo "SOFLAGS = ${SOFLAGS}" | ||
| 19 | + @echo "LDFLAGS = ${LDFLAGS}" | ||
| 20 | @echo "LD = ${LD}" | ||
| 21 | |||
| 22 | .c.o: | ||
| 23 | @@ -34,7 +35,7 @@ libacpi.a: ${OBJ} | ||
| 24 | |||
| 25 | libacpi.so: ${OBJ} | ||
| 26 | @echo LD $@ | ||
| 27 | - @${CC} ${SOFLAGS} -o $@.${SOVERSION} ${OBJ} | ||
| 28 | + @${CC} ${SOFLAGS} ${LDFLAGS} -o $@.${SOVERSION} ${OBJ} | ||
| 29 | |||
| 30 | test-libacpi: ${OBJ_test} | ||
| 31 | @echo LD $@ | ||
| 32 | --- libacpi-0.2.orig/config.mk | ||
| 33 | +++ libacpi-0.2/config.mk | ||
| 34 | @@ -10,6 +10,7 @@ MANPREFIX = ${PREFIX}/share/man | ||
| 35 | SOFLAGS = -shared -Wl,-soname,${SONAME} | ||
| 36 | CFLAGS += -fPIC -g --pedantic -Wall -Wextra | ||
| 37 | ARFLAGS = cr | ||
| 38 | +LDFLAGS = | ||
| 39 | |||
| 40 | # Compiler and linker | ||
| 41 | CC = cc | ||
diff --git a/meta/recipes-bsp/libacpi/libacpi_0.2.bb b/meta/recipes-bsp/libacpi/libacpi_0.2.bb index b0fbf0b207..f4c323d18b 100644 --- a/meta/recipes-bsp/libacpi/libacpi_0.2.bb +++ b/meta/recipes-bsp/libacpi/libacpi_0.2.bb | |||
| @@ -10,7 +10,8 @@ PR = "r6" | |||
| 10 | SRC_URI = "http://www.ngolde.de/download/libacpi-${PV}.tar.gz \ | 10 | SRC_URI = "http://www.ngolde.de/download/libacpi-${PV}.tar.gz \ |
| 11 | file://makefile-fix.patch \ | 11 | file://makefile-fix.patch \ |
| 12 | file://libacpi_fix_for_x32.patch \ | 12 | file://libacpi_fix_for_x32.patch \ |
| 13 | file://use_correct_strip_in_cross_environment.patch" | 13 | file://use_correct_strip_in_cross_environment.patch \ |
| 14 | file://ldflags.patch " | ||
| 14 | 15 | ||
| 15 | SRC_URI[md5sum] = "05b53dd7bead66dda35fec502b91066c" | 16 | SRC_URI[md5sum] = "05b53dd7bead66dda35fec502b91066c" |
| 16 | SRC_URI[sha256sum] = "13086e31d428b9c125954d48ac497b754bbbce2ef34ea29ecd903e82e25bad29" | 17 | SRC_URI[sha256sum] = "13086e31d428b9c125954d48ac497b754bbbce2ef34ea29ecd903e82e25bad29" |
