Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | SUMMARY = "Utility for creating ELF boot images for ELF-based Linux kernel images" |
| 2 | HOMEPAGE = "http://www.coreboot.org/Mkelfimage" |
| 3 | SECTION = "devel" |
| 4 | LICENSE = "GPLv2" |
| 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=ea5bed2f60d357618ca161ad539f7c0a" |
| 6 | |
| 7 | SRCREV = "686a48a339b3200184c27e7f98d4c03180b2be6c" |
| 8 | PV = "4.0+git${SRCPV}" |
| 9 | RECIPE_NO_UPDATE_REASON = "mkelfimage has been removed in coreboot 4.1 release: \ |
| 10 | http://review.coreboot.org/gitweb?p=coreboot.git;a=commit;h=34fc4ab80b507739e2580d490dff67fcfdde11ea" |
| 11 | |
| 12 | |
| 13 | DEPENDS += "zlib" |
| 14 | |
| 15 | SRC_URI = "git://review.coreboot.org/p/coreboot;protocol=http \ |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 16 | file://cross-compile.patch \ |
| 17 | " |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 18 | SRC_URI_append_class-native = " \ |
| 19 | file://fix-makefile-to-find-libz.patch \ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 20 | file://convert.bin.c \ |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 21 | " |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 22 | |
| 23 | CLEANBROKEN = "1" |
| 24 | |
| 25 | S = "${WORKDIR}/git/util/mkelfImage" |
| 26 | |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 27 | CACHED_CONFIGUREVARS += "\ |
| 28 | HOST_CC='${BUILD_CC}' \ |
| 29 | HOST_CFLAGS='${BUILD_CFLAGS}' \ |
| 30 | HOST_CPPFLAGS='${BUILD_CPPFLAGS}' \ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 31 | I386_CFLAGS='-fno-stack-protector' \ |
| 32 | IA64_CFLAGS='-fno-stack-protector' \ |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 33 | " |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 34 | EXTRA_OECONF_append_x86-64 = " --with-i386=${HOST_SYS}" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 35 | |
| 36 | inherit autotools-brokensep |
| 37 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 38 | do_configure_prepend-class-native() { |
| 39 | cp ${WORKDIR}/convert.bin.c ${S}/linux-i386/ |
| 40 | } |
| 41 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 42 | do_install_append() { |
| 43 | rmdir ${D}${datadir}/mkelfImage/elf32-i386 |
| 44 | rmdir ${D}${datadir}/mkelfImage |
Patrick Williams | d7e9631 | 2015-09-22 08:09:05 -0500 | [diff] [blame] | 45 | chown root:root ${D}/${sbindir}/mkelfImage |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 46 | } |
| 47 | |
| 48 | BBCLASSEXTEND = "native" |