Android.bp 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. headers_src = [
  2. "include/uapi/audio/*/**/*.h",
  3. ]
  4. audio_headers_out = [
  5. "linux/msm_audio.h",
  6. "sound/audio_effects.h",
  7. "sound/audio_slimslave.h",
  8. "sound/devdep_params.h",
  9. "sound/lsm_params.h",
  10. "sound/msmcal-hwdep.h",
  11. "sound/voice_params.h",
  12. "sound/wcd-dsp-glink.h",
  13. ]
  14. audio_kernel_headers_verbose = "--verbose "
  15. genrule {
  16. name: "qti_generate_audio_kernel_headers",
  17. tools: ["headers_install.sh",
  18. "unifdef"
  19. ],
  20. tool_files: [
  21. "audio_kernel_headers.py",
  22. ],
  23. srcs: headers_src,
  24. cmd: "python3 -u $(location audio_kernel_headers.py) " +
  25. audio_kernel_headers_verbose +
  26. "--header_arch arm64 " +
  27. "--gen_dir $(genDir) " +
  28. "--audio_include_uapi $(locations include/uapi/audio/*/**/*.h) " +
  29. "--unifdef $(location unifdef) " +
  30. "--headers_install $(location headers_install.sh)",
  31. out: audio_headers_out,
  32. }
  33. cc_library_headers {
  34. name: "qti_audio_kernel_uapi",
  35. generated_headers: ["qti_generate_audio_kernel_headers"],
  36. export_generated_headers: ["qti_generate_audio_kernel_headers"],
  37. vendor: true,
  38. recovery_available: true
  39. }