summaryrefslogtreecommitdiff
path: root/meta/recipes-devtools/mkelfimage/mkelfimage_git.bb
blob: 2bcc8d7bd9f383994d62a792aaa7c8909434e552 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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   \
"

CLEANBROKEN = "1"

S = "${WORKDIR}/git/util/mkelfImage"

CFLAGS += "-fno-stack-protector"
CACHED_CONFIGUREVARS += "\
    HOST_CC='${BUILD_CC}' \
    HOST_CFLAGS='${BUILD_CFLAGS}' \
    HOST_CPPFLAGS='${BUILD_CPPFLAGS}' \
"

inherit autotools-brokensep

do_install_append() {
	rmdir ${D}${datadir}/mkelfImage/elf32-i386
	rmdir ${D}${datadir}/mkelfImage
	chown root:root ${D}/${sbindir}/mkelfImage
}

BBCLASSEXTEND = "native"