Android.bp 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. headers_src = [
  2. "include/uapi/linux/smc*ke.h",
  3. "include/linux/smc*_object.h",
  4. "include/linux/IClientE*v.h",
  5. ]
  6. smcinvoke_headers_out = [
  7. "include/uapi/linux/smcinvoke.h",
  8. "include/linux/smcinvoke_object.h",
  9. "include/linux/IClientEnv.h",
  10. ]
  11. smcinvoke_kernel_headers_verbose = "--verbose "
  12. genrule {
  13. name: "qti_generate_smcinvoke_kernel_headers",
  14. tools: ["headers_install.sh",
  15. "unifdef"
  16. ],
  17. tool_files: [
  18. "ssg_kernel_headers.py",
  19. ],
  20. srcs: headers_src,
  21. cmd: "python3 -u $(location ssg_kernel_headers.py) " +
  22. smcinvoke_kernel_headers_verbose +
  23. "--header_arch arm64 " +
  24. "--gen_dir $(genDir) " +
  25. "--smcinvoke_headers_to_expose $(locations include/uapi/linux/smc*ke.h) $(locations include/linux/smc*_object.h) $(locations include/linux/IClientE*v.h) " +
  26. "--unifdef $(location unifdef) " +
  27. "--headers_install $(location headers_install.sh)",
  28. out: smcinvoke_headers_out,
  29. }
  30. cc_library_headers {
  31. name: "smcinvoke_kernel_headers",
  32. export_include_dirs: ["."] + ["include"] + ["include/uapi"],
  33. generated_headers: ["qti_generate_smcinvoke_kernel_headers"],
  34. export_generated_headers: ["qti_generate_smcinvoke_kernel_headers"],
  35. vendor: true,
  36. recovery_available: true
  37. }
  38. cc_library_headers {
  39. name: "smmu_proxy_uapi_header",
  40. vendor_available: true,
  41. export_include_dirs: ["smmu-proxy/uapi/"],
  42. }
  43. cc_library_headers {
  44. name: "securemsm_kernel_uapi_headers",
  45. vendor_available: true,
  46. host_supported: true,
  47. export_include_dirs: ["include/uapi"],
  48. }