mirror of
https://git.yoctoproject.org/poky
synced 2026-02-15 21:23:04 +01:00
This is a compile code fragment that has an elf signature, it needs to be updated for the newer tools. After 2.4 we will be removing the elf Image type as it has been expunged from the coreboot repo since 2014. [YOCTO #11967] (From OE-Core rev: 66f7ec30a05639739208bb921b689e94b2c880a3) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
49 lines
1.3 KiB
BlitzBasic
49 lines
1.3 KiB
BlitzBasic
SUMMARY = "Utility for creating ELF boot images for ELF-based Linux kernel images"
|
|
HOMEPAGE = "http://www.coreboot.org/Mkelfimage"
|
|
SECTION = "devel"
|
|
LICENSE = "GPLv2"
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=ea5bed2f60d357618ca161ad539f7c0a"
|
|
|
|
SRCREV = "686a48a339b3200184c27e7f98d4c03180b2be6c"
|
|
PV = "4.0+git${SRCPV}"
|
|
RECIPE_NO_UPDATE_REASON = "mkelfimage has been removed in coreboot 4.1 release: \
|
|
http://review.coreboot.org/gitweb?p=coreboot.git;a=commit;h=34fc4ab80b507739e2580d490dff67fcfdde11ea"
|
|
|
|
|
|
DEPENDS += "zlib"
|
|
|
|
SRC_URI = "git://review.coreboot.org/p/coreboot;protocol=http \
|
|
file://cross-compile.patch \
|
|
"
|
|
SRC_URI_append_class-native = " \
|
|
file://fix-makefile-to-find-libz.patch \
|
|
file://convert.bin.c \
|
|
"
|
|
|
|
CLEANBROKEN = "1"
|
|
|
|
S = "${WORKDIR}/git/util/mkelfImage"
|
|
|
|
CACHED_CONFIGUREVARS += "\
|
|
HOST_CC='${BUILD_CC}' \
|
|
HOST_CFLAGS='${BUILD_CFLAGS}' \
|
|
HOST_CPPFLAGS='${BUILD_CPPFLAGS}' \
|
|
I386_CFLAGS='-fno-stack-protector' \
|
|
IA64_CFLAGS='-fno-stack-protector' \
|
|
"
|
|
EXTRA_OECONF_append_x86-64 = " --with-i386=${HOST_SYS}"
|
|
|
|
inherit autotools-brokensep
|
|
|
|
do_configure_prepend-class-native() {
|
|
cp ${WORKDIR}/convert.bin.c ${S}/linux-i386/
|
|
}
|
|
|
|
do_install_append() {
|
|
rmdir ${D}${datadir}/mkelfImage/elf32-i386
|
|
rmdir ${D}${datadir}/mkelfImage
|
|
chown root:root ${D}/${sbindir}/mkelfImage
|
|
}
|
|
|
|
BBCLASSEXTEND = "native"
|