blob: 3e98349b4d6a9bc0c3892539ad9f1970ae067dff [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
Ethan Chenf0bb4c32018-11-28 00:54:35 -080033 export_include_dirs: ["usr/include", "usr/techpack/audio/include"],
Rashed Abdel-Tawab9fa7e802018-09-18 21:53:24 -070034
35 // Sources for dependency tracking
36 dep_root: "$(TARGET_KERNEL_SOURCE)",
Bruno Martins6ea98152018-11-05 11:25:57 +000037 dep_files: [ "Makefile", "include/**/*", "arch/$(KERNEL_ARCH)/include/**/*", "techpack/audio/include/**/*"],
Rashed Abdel-Tawab9fa7e802018-09-18 21:53:24 -070038}
39
40cc_library_headers {
41 name: "generated_kernel_headers",
42 generated_headers: ["generated_kernel_includes"],
43 export_generated_headers: ["generated_kernel_includes"],
44 vendor_available: true,
LuK133743442c22019-09-09 21:58:19 +020045 recovery_available: true,
Rashed Abdel-Tawab9fa7e802018-09-18 21:53:24 -070046}