aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-devtools/aer-inject/aer-inject_1.0.bb
blob: 87c09f5118bb42123b6c2a864e9b1eee4c70e942 (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
SUMMARY = "Inject PCIE AER errors on the software level into a running Linux kernel."
DESCRIPTION = "\
aer-inject allows to inject PCIE AER errors on the software \
level into a running Linux kernel. This is intended for \
validation of the PCIE driver error recovery handler and \
PCIE AER core handler."
HOMEPAGE = "https://git.kernel.org/cgit/linux/kernel/git/gong.chen/aer-inject.git/"
SECTION = "pcie/misc"
LICENSE = "GPL-2.0-only"

LIC_FILES_CHKSUM = "file://README;beginline=25;endline=38;md5=643c2332ec702691a87ba6ea9499b2d6"

SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/gong.chen/aer-inject.git;protocol=https;branch=master \
           file://0001-include-libgen.h-for-basename.patch \
"
SRCREV = "9bd5e2c7886fca72f139cd8402488a2235957d41"

S = "${WORKDIR}/git"

DEPENDS = "bison-native"

do_compile() {
    oe_runmake CFLAGS="-Wall -D_GNU_SOURCE"
}

do_install() {
    oe_runmake 'DESTDIR=${D}' 'PREFIX=${prefix}' install
}
FILES:${PN} += "${prefix}/aer-inject"
BBCLASSEXTEND = "native nativesdk"