blob: 382b68ee92d1ab7649f8de87e13caf7fb516074b [file] [log] [blame]
Simon Shields4ed46052017-08-23 12:03:36 +10001bootstrap_go_package {
2 name: "soong-lineage",
3 pkgPath: "lineage/soong/android",
4 srcs: [
Sam Mortimeraf969752018-08-17 14:23:57 -07005 "android/config.go",
Simon Shields4ed46052017-08-23 12:03:36 +10006 "android/variable.go",
7 ],
8}
Sam Mortimer80381b72018-09-18 15:56:14 -07009
10bootstrap_go_package {
11 name: "soong-lineage-generator",
12 pkgPath: "lineage/soong/generator",
13 deps: [
14 "blueprint",
15 "blueprint-pathtools",
16 "soong",
17 "soong-android",
18 "soong-shared",
19 ],
20 srcs: [
21 "generator/generator.go",
Rashed Abdel-Tawab9fa7e802018-09-18 21:53:24 -070022 "generator/variables.go",
Sam Mortimer80381b72018-09-18 15:56:14 -070023 ],
24 pluginFor: ["soong_build"],
25}
Rashed Abdel-Tawab9fa7e802018-09-18 21:53:24 -070026
27lineage_generator {
28 name: "generated_kernel_includes",
29
30 // The headers make command
31 cmd: "make $(KERNEL_MAKE_FLAGS) -C $(TARGET_KERNEL_SOURCE) O=$(genDir) ARCH=$(KERNEL_ARCH) $(KERNEL_CROSS_COMPILE) headers_install",
32
33 // Directories that can be imported by a cc_* module generated_headers property
Ethan Chenf0bb4c32018-11-28 00:54:35 -080034 export_include_dirs: ["usr/include", "usr/techpack/audio/include"],
Rashed Abdel-Tawab9fa7e802018-09-18 21:53:24 -070035
36 // Sources for dependency tracking
37 dep_root: "$(TARGET_KERNEL_SOURCE)",
Bruno Martins6ea98152018-11-05 11:25:57 +000038 dep_files: [ "Makefile", "include/**/*", "arch/$(KERNEL_ARCH)/include/**/*", "techpack/audio/include/**/*"],
Rashed Abdel-Tawab9fa7e802018-09-18 21:53:24 -070039}
40
41cc_library_headers {
42 name: "generated_kernel_headers",
43 generated_headers: ["generated_kernel_includes"],
44 export_generated_headers: ["generated_kernel_includes"],
45 vendor_available: true,
46}