xref: /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-kernel/pm-graph/pm-graph_5.5.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunSUMMARY  = "Timing analysis tools for suspend/resume/boot"
2*4882a593SmuzhiyunDESCRIPTION = "This tool suite is designed to assist kernel and OS developers \
3*4882a593Smuzhiyunin optimizing their linux stack's suspend/resume & boot time."
4*4882a593SmuzhiyunHOMEPAGE = "https://01.org/pm-graph"
5*4882a593SmuzhiyunLICENSE  = "GPL-2.0-only"
6*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e"
7*4882a593Smuzhiyun
8*4882a593SmuzhiyunSRCREV = "cf59527dc24fdd2f314ae4dcaeb3d68a117988f6"
9*4882a593SmuzhiyunSRC_URI = "git://github.com/intel/pm-graph.git;branch=master;protocol=https \
10*4882a593Smuzhiyun           file://0001-Makefile-fix-multilib-build-failure.patch \
11*4882a593Smuzhiyun           file://0001-sleepgraph.py-use-python3.patch \
12*4882a593Smuzhiyun           file://0001-sleepgraph-add-support-for-RT-kernel-ftrace-flags.patch \
13*4882a593Smuzhiyun           file://0001-sleepgraph.py-parse-unfished-cpu-exec-line.patch \
14*4882a593Smuzhiyun"
15*4882a593SmuzhiyunS = "${WORKDIR}/git"
16*4882a593Smuzhiyun
17*4882a593Smuzhiyun# Apart from the listed RDEPENDS, analyze-suspend depends on some features
18*4882a593Smuzhiyun# provided by the kernel. These options are:
19*4882a593Smuzhiyun#   - CONFIG_PM_DEBUG=y
20*4882a593Smuzhiyun#   - CONFIG_PM_SLEEP_DEBUG=y
21*4882a593Smuzhiyun#   - CONFIG_FTRACE=y
22*4882a593Smuzhiyun#   - CONFIG_FUNCTION_TRACER=y
23*4882a593Smuzhiyun#   - CONFIG_FUNCTION_GRAPH_TRACER=y
24*4882a593Smuzhiyun
25*4882a593SmuzhiyunCOMPATIBLE_HOST='(i.86|x86_64).*'
26*4882a593SmuzhiyunEXTRA_OEMAKE = "PREFIX=${prefix} DESTDIR=${D} BASELIB=${baselib}"
27*4882a593Smuzhiyun
28*4882a593Smuzhiyundo_install() {
29*4882a593Smuzhiyun        oe_runmake install
30*4882a593Smuzhiyun        install -Dm 0755 ${S}/analyze_suspend.py ${D}${bindir}/analyze_suspend.py
31*4882a593Smuzhiyun}
32*4882a593Smuzhiyun
33*4882a593SmuzhiyunRDEPENDS:${PN} += "python3-core python3-threading python3-datetime python3-compression"
34*4882a593SmuzhiyunRPROVIDES:${PN} = "analyze-suspend"
35*4882a593SmuzhiyunBBCLASSEXTEND = "native nativesdk"
36