Simon Shields | 4ed4605 | 2017-08-23 12:03:36 +1000 | [diff] [blame] | 1 | bootstrap_go_package { |
| 2 | name: "soong-lineage", |
| 3 | pkgPath: "lineage/soong/android", |
| 4 | srcs: [ |
Sam Mortimer | af96975 | 2018-08-17 14:23:57 -0700 | [diff] [blame] | 5 | "android/config.go", |
Simon Shields | 4ed4605 | 2017-08-23 12:03:36 +1000 | [diff] [blame] | 6 | "android/variable.go", |
| 7 | ], |
| 8 | } |
Sam Mortimer | 80381b7 | 2018-09-18 15:56:14 -0700 | [diff] [blame] | 9 | |
| 10 | bootstrap_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-Tawab | 9fa7e80 | 2018-09-18 21:53:24 -0700 | [diff] [blame] | 22 | "generator/variables.go", |
Sam Mortimer | 80381b7 | 2018-09-18 15:56:14 -0700 | [diff] [blame] | 23 | ], |
| 24 | pluginFor: ["soong_build"], |
| 25 | } |
Rashed Abdel-Tawab | 9fa7e80 | 2018-09-18 21:53:24 -0700 | [diff] [blame] | 26 | |
| 27 | lineage_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 Chen | f0bb4c3 | 2018-11-28 00:54:35 -0800 | [diff] [blame] | 34 | export_include_dirs: ["usr/include", "usr/techpack/audio/include"], |
Rashed Abdel-Tawab | 9fa7e80 | 2018-09-18 21:53:24 -0700 | [diff] [blame] | 35 | |
| 36 | // Sources for dependency tracking |
| 37 | dep_root: "$(TARGET_KERNEL_SOURCE)", |
Bruno Martins | 6ea9815 | 2018-11-05 11:25:57 +0000 | [diff] [blame] | 38 | dep_files: [ "Makefile", "include/**/*", "arch/$(KERNEL_ARCH)/include/**/*", "techpack/audio/include/**/*"], |
Rashed Abdel-Tawab | 9fa7e80 | 2018-09-18 21:53:24 -0700 | [diff] [blame] | 39 | } |
| 40 | |
| 41 | cc_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 | } |