blob: 02683549d7f9730607841a7d119e16e14796019d [file] [log] [blame]
Simon Shields4ed46052017-08-23 12:03:36 +10001bootstrap_go_package {
Jackeagled6811aa2019-09-24 08:26:40 +02002 name: "soong-bliss-generator",
3 pkgPath: "bliss/soong/generator",
Sam Mortimer80381b72018-09-18 15:56:14 -07004 deps: [
5 "blueprint",
6 "blueprint-pathtools",
7 "soong",
8 "soong-android",
9 "soong-shared",
10 ],
11 srcs: [
12 "generator/generator.go",
Rashed Abdel-Tawab9fa7e802018-09-18 21:53:24 -070013 "generator/variables.go",
Sam Mortimer80381b72018-09-18 15:56:14 -070014 ],
15 pluginFor: ["soong_build"],
16}
Rashed Abdel-Tawab9fa7e802018-09-18 21:53:24 -070017
Jackeagled6811aa2019-09-24 08:26:40 +020018bliss_generator {
Rashed Abdel-Tawab9fa7e802018-09-18 21:53:24 -070019 name: "generated_kernel_includes",
20
21 // The headers make command
Rashed Abdel-Tawabba5ea352019-09-07 17:01:13 -070022 cmd: "$(PATH_OVERRIDE_SOONG) $(KERNEL_MAKE_CMD) $(KERNEL_MAKE_FLAGS) -C $(TARGET_KERNEL_SOURCE) O=$(KERNEL_BUILD_OUT_PREFIX)$(genDir) ARCH=$(KERNEL_ARCH) $(KERNEL_CROSS_COMPILE) headers_install",
Rashed Abdel-Tawab9fa7e802018-09-18 21:53:24 -070023
24 // Directories that can be imported by a cc_* module generated_headers property
dianlujitao9dfd5f72020-03-03 17:26:32 +080025 export_include_dirs: [
dianlujitao83d2fa42020-06-28 22:16:44 +080026 "usr/audio/include/uapi",
dianlujitao9dfd5f72020-03-03 17:26:32 +080027 "usr/include",
28 "usr/include/audio/include/uapi",
Pigf6e0a852020-10-15 02:58:37 +080029 "usr/techpack/audio/include",
dianlujitao9dfd5f72020-03-03 17:26:32 +080030 ],
Rashed Abdel-Tawab9fa7e802018-09-18 21:53:24 -070031
32 // Sources for dependency tracking
33 dep_root: "$(TARGET_KERNEL_SOURCE)",
Pigf6e0a852020-10-15 02:58:37 +080034 dep_files: [
35 "Makefile",
36 "include/**/*",
37 "arch/$(KERNEL_ARCH)/include/**/*",
38 "techpack/audio/include/**/*",
39 ],
Rashed Abdel-Tawab9fa7e802018-09-18 21:53:24 -070040}
41
42cc_library_headers {
43 name: "generated_kernel_headers",
44 generated_headers: ["generated_kernel_includes"],
45 export_generated_headers: ["generated_kernel_includes"],
46 vendor_available: true,
LuK133743442c22019-09-09 21:58:19 +020047 recovery_available: true,
Rashed Abdel-Tawab9fa7e802018-09-18 21:53:24 -070048}