blob: cbea01f3f68216cb31875963be06f0136740f355 [file] [log] [blame]
Simon Shields4ed46052017-08-23 12:03:36 +10001bootstrap_go_package {
2 name: "soong-lineage",
3 pkgPath: "lineage/soong/android",
4 srcs: [
Simon Shields4ed46052017-08-23 12:03:36 +10005 "android/variable.go",
6 ],
7}
Sam Mortimer80381b72018-09-18 15:56:14 -07008
9bootstrap_go_package {
10 name: "soong-lineage-generator",
11 pkgPath: "lineage/soong/generator",
12 deps: [
13 "blueprint",
14 "blueprint-pathtools",
15 "soong",
16 "soong-android",
17 "soong-shared",
18 ],
19 srcs: [
20 "generator/generator.go",
Rashed Abdel-Tawab9fa7e802018-09-18 21:53:24 -070021 "generator/variables.go",
Sam Mortimer80381b72018-09-18 15:56:14 -070022 ],
23 pluginFor: ["soong_build"],
24}
Rashed Abdel-Tawab9fa7e802018-09-18 21:53:24 -070025
26lineage_generator {
27 name: "generated_kernel_includes",
28
29 // The headers make command
Rashed Abdel-Tawabba5ea352019-09-07 17:01:13 -070030 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 -070031
32 // Directories that can be imported by a cc_* module generated_headers property
dianlujitao9dfd5f72020-03-03 17:26:32 +080033 export_include_dirs: [
34 "usr/include",
35 "usr/include/audio/include/uapi",
36 "usr/techpack/audio/include"
37 ],
Rashed Abdel-Tawab9fa7e802018-09-18 21:53:24 -070038
39 // Sources for dependency tracking
40 dep_root: "$(TARGET_KERNEL_SOURCE)",
Bruno Martins6ea98152018-11-05 11:25:57 +000041 dep_files: [ "Makefile", "include/**/*", "arch/$(KERNEL_ARCH)/include/**/*", "techpack/audio/include/**/*"],
Rashed Abdel-Tawab9fa7e802018-09-18 21:53:24 -070042}
43
44cc_library_headers {
45 name: "generated_kernel_headers",
46 generated_headers: ["generated_kernel_includes"],
47 export_generated_headers: ["generated_kernel_includes"],
48 vendor_available: true,
LuK133743442c22019-09-09 21:58:19 +020049 recovery_available: true,
Rashed Abdel-Tawab9fa7e802018-09-18 21:53:24 -070050}