diff options
| author | Martin Jansa <Martin.Jansa@gmail.com> | 2021-04-03 21:51:33 +0200 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2021-04-06 20:34:26 -0400 |
| commit | 8f06d920950f969ab0741df3dfbffa67142e8fa3 (patch) | |
| tree | a8bec78c25477431dc7bcfada4e8d8ea7db9efb8 | |
| parent | b7dba4e73f8426b662961c3c15419cff8ae55b5a (diff) | |
| download | meta-virtualization-8f06d920950f969ab0741df3dfbffa67142e8fa3.tar.gz | |
ipxe: force using ld.bfd even when ld-is-gold is in DISTRO_FEATURES
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
| -rw-r--r-- | recipes-extended/ipxe/ipxe_git.bb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/recipes-extended/ipxe/ipxe_git.bb b/recipes-extended/ipxe/ipxe_git.bb index 448087e5..43c8f0ed 100644 --- a/recipes-extended/ipxe/ipxe_git.bb +++ b/recipes-extended/ipxe/ipxe_git.bb | |||
| @@ -27,12 +27,16 @@ EXTRA_OEMAKE = " \ | |||
| 27 | ISOLINUX_BIN="${STAGING_DIR_TARGET}/usr/share/syslinux/isolinux.bin" \ | 27 | ISOLINUX_BIN="${STAGING_DIR_TARGET}/usr/share/syslinux/isolinux.bin" \ |
| 28 | CROSS_COMPILE="${TARGET_PREFIX}" \ | 28 | CROSS_COMPILE="${TARGET_PREFIX}" \ |
| 29 | EXTRA_HOST_CFLAGS="${BUILD_CFLAGS}" \ | 29 | EXTRA_HOST_CFLAGS="${BUILD_CFLAGS}" \ |
| 30 | EXTRA_HOST_LDFLAGS="${BUILD_LDFLAGS}"" | 30 | EXTRA_HOST_LDFLAGS="${BUILD_LDFLAGS}" \ |
| 31 | " | ||
| 31 | 32 | ||
| 32 | S = "${WORKDIR}/git/src" | 33 | S = "${WORKDIR}/git/src" |
| 33 | 34 | ||
| 34 | do_compile() { | 35 | do_compile() { |
| 35 | oe_runmake | 36 | # Makefile.housekeeping:111: GNU gold is unsuitable for building iPXE |
| 37 | # Makefile.housekeeping:112: Use GNU ld instead | ||
| 38 | sed -i 's#\(^LD.*$(CROSS_COMPILE)ld\)$#\1.bfd#g' -i ${S}/Makefile | ||
| 39 | oe_runmake | ||
| 36 | } | 40 | } |
| 37 | 41 | ||
| 38 | do_install() { | 42 | do_install() { |
