pm-graph_5.13.bb 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. SUMMARY = "Timing analysis tools for suspend/resume/boot"
  2. DESCRIPTION = "This tool suite is designed to assist kernel and OS developers \
  3. in optimizing their linux stack's suspend/resume & boot time."
  4. HOMEPAGE = "https://01.org/pm-graph"
  5. LICENSE = "GPL-2.0-only"
  6. LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e"
  7. SRCREV = "0987732b013936ad771334f51cba31c453c8a9c9"
  8. SRC_URI = "git://github.com/intel/pm-graph.git;branch=master;protocol=https \
  9. file://0001-Makefile-fix-multilib-build-failure.patch \
  10. "
  11. S = "${WORKDIR}/git"
  12. # Apart from the listed RDEPENDS, analyze-suspend depends on some features
  13. # provided by the kernel. These options are:
  14. # - CONFIG_PM_DEBUG=y
  15. # - CONFIG_PM_SLEEP_DEBUG=y
  16. # - CONFIG_FTRACE=y
  17. # - CONFIG_FUNCTION_TRACER=y
  18. # - CONFIG_FUNCTION_GRAPH_TRACER=y
  19. COMPATIBLE_HOST = '(i.86|x86_64).*'
  20. EXTRA_OEMAKE = "PREFIX=${prefix} DESTDIR=${D} LIBDIR=${libdir} BASELIB=${baselib}"
  21. do_install() {
  22. oe_runmake install
  23. install -Dm 0755 ${S}/analyze_suspend.py ${D}${bindir}/analyze_suspend.py
  24. rm -rf ${D}${libdir}/pm-graph/__pycache__
  25. }
  26. RDEPENDS:${PN} += "python3-core python3-threading python3-datetime python3-compression"
  27. RPROVIDES:${PN} = "analyze-suspend"
  28. BBCLASSEXTEND = "native nativesdk"