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: [ |
Simon Shields | 4ed4605 | 2017-08-23 12:03:36 +1000 | [diff] [blame] | 5 | "android/variable.go", |
| 6 | ], |
| 7 | } |
Sam Mortimer | 80381b7 | 2018-09-18 15:56:14 -0700 | [diff] [blame] | 8 | |
| 9 | bootstrap_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-Tawab | 9fa7e80 | 2018-09-18 21:53:24 -0700 | [diff] [blame] | 21 | "generator/variables.go", |
Sam Mortimer | 80381b7 | 2018-09-18 15:56:14 -0700 | [diff] [blame] | 22 | ], |
| 23 | pluginFor: ["soong_build"], |
| 24 | } |
Rashed Abdel-Tawab | 9fa7e80 | 2018-09-18 21:53:24 -0700 | [diff] [blame] | 25 | |
| 26 | lineage_generator { |
| 27 | name: "generated_kernel_includes", |
| 28 | |
| 29 | // The headers make command |
Rashed Abdel-Tawab | ba5ea35 | 2019-09-07 17:01:13 -0700 | [diff] [blame] | 30 | 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-Tawab | 9fa7e80 | 2018-09-18 21:53:24 -0700 | [diff] [blame] | 31 | |
| 32 | // Directories that can be imported by a cc_* module generated_headers property |
Ethan Chen | f0bb4c3 | 2018-11-28 00:54:35 -0800 | [diff] [blame] | 33 | export_include_dirs: ["usr/include", "usr/techpack/audio/include"], |
Rashed Abdel-Tawab | 9fa7e80 | 2018-09-18 21:53:24 -0700 | [diff] [blame] | 34 | |
| 35 | // Sources for dependency tracking |
| 36 | dep_root: "$(TARGET_KERNEL_SOURCE)", |
Bruno Martins | 6ea9815 | 2018-11-05 11:25:57 +0000 | [diff] [blame] | 37 | dep_files: [ "Makefile", "include/**/*", "arch/$(KERNEL_ARCH)/include/**/*", "techpack/audio/include/**/*"], |
Rashed Abdel-Tawab | 9fa7e80 | 2018-09-18 21:53:24 -0700 | [diff] [blame] | 38 | } |
| 39 | |
| 40 | cc_library_headers { |
| 41 | name: "generated_kernel_headers", |
| 42 | generated_headers: ["generated_kernel_includes"], |
| 43 | export_generated_headers: ["generated_kernel_includes"], |
| 44 | vendor_available: true, |
LuK1337 | 43442c2 | 2019-09-09 21:58:19 +0200 | [diff] [blame] | 45 | recovery_available: true, |
Rashed Abdel-Tawab | 9fa7e80 | 2018-09-18 21:53:24 -0700 | [diff] [blame] | 46 | } |