Commit graph android_kernel_motorola_sm6375/Android.bp
Author SHA1 Message Date
Bill Peckham
8bca38b4d8 Use environment variable to find unifdef tool
Tools used within the sandbox are now copied into the
sandbox, see aosp/1531944. This caused the modified
headers_install.sh, which is no longer installed, to
point to a non-existent location.

This change adds a level of indirection. The
gen-headers_install.sh module no longer uses unifdef as
a tool, but still modifies the headers_install.sh
script, but not to point to a particular location, but
to find the unifdef tool via an environment variable,
LOC_UNIFDEF.

Next, we modify qti_generate_kernel_headers_arm and
qti_generate_kernel_headers_arm64 to need the unifdef
tool (which is copied into the sandbox for these tools).

We add a new --unifdef option to the kernel_headers.py
script so that it can find the tool in the sandbox. The
kernel_headers.py script sets the LOC_UNIFDEF
environment variable before invoking the altered
headers_install.sh script (also copied into the
sandbox).

Finally, we generate gen_headers_arm.bp and
gen_headers_arm64.bp with all of these changes.

Bug: 178500203
Change-Id: Ie3b8c36b7d60bd950c28bac566e04f43de78cf98
Signed-off-by: Mohammed Athar <athar@codeaurora.org>
Signed-off-by: Shadab Naseem <snaseem@codeaurora.org>
2021-03-02 11:15:36 +05:30
Justin DeMartino
32c1088cce Example kernel headers header_lib package
This change is foundational for converting many modules that depend on kernel
headers built via the platform build system.

Bug: 143567008
Change-Id: I8c2e33aa0b28e2ec54d924b9650c302691f9c8e8
[rishabhb@codeaurora.org: add logic to iterate over mandatory headers
 and only generate these headers if not already present in
 usr/include/asm. Also export techpack uapi headers.]
Signed-off-by: Rishabh Bhatnagar <rishabhb@codeaurora.org>
2020-01-18 13:31:06 -08:00
Rishabh Bhatnagar
2a0b0b7446 kernel: Create and export kernel headers
Create a header library which export kernel headers.
These headers are needed by modules and userspace libraries.

Change-Id: I0908e2e02ba1edfb569c5abcd0d5e1df72a40324
Signed-off-by: Rishabh Bhatnagar <rishabhb@codeaurora.org>
2019-11-26 15:04:54 -08:00