Commit graph android_kernel_motorola_sm6375/kernel_headers.py
Author SHA1 Message Date
Michael Bestas
8d4296749a
Revert "camera_legacy: update camera uapi kernel headers installation"
This reverts commit 224f161870.

Change-Id: Iab74de1d0774153ea4ed09d8e660344e43b3d97b
2025-03-24 12:52:27 +02:00
Gilberto Gambugge
224f161870 camera_legacy: update camera uapi kernel headers installation
Due to camera legacy, the camera uapi kernel headers installation
routines need to be updated to consider the camera legacy support.
This commit fixes the routines to install kernel headers for
'make headers_install' and also 'qti_generate_kernel_headers_arm'
and 'qti_generate_kernel_headers_arm64'.

Change-Id: Iec98dad164d5efc0acaa8f90c29a9672efbe3142
Reviewed-on: https://gerrit.mot.com/2619497
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Rafael Ortolan <rafones@motorola.com>
Reviewed-by: Rav(CR) Vembu <raviv@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:17 +08:00
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
Soumil Shah
de51ee353a kernel_headers: Explicitly run headers_install under 'sh'
To avoid build failures in the newer Android build systems,
run the headers_install script explicitly under 'sh'.

Change-Id: If30d2bda653c6be443345a2594e9993d9780db21
Signed-off-by: Soumil Shah <soumshah@codeaurora.org>
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2020-12-07 12:22:32 -08:00
Rishabh Bhatnagar
2000426a75 kernel_headers: Disable headers matching
Disable matching of existing and generated gen_headers*.bp files.
This is done to allow some uapi headers to be added to audio
techpack.

Change-Id: I1b6b639015f3672a3e9daa9b2a1444e952ed4ac1
Signed-off-by: Rishabh Bhatnagar <rishabhb@codeaurora.org>
2020-07-09 12:28:12 -07:00
Rishabh Bhatnagar
8878f18eff kernel_headers: Fix headers not detected in incremental builds
Currently the Soong logic doesn't kick in if a change updates
headers but doesn't update gen_headers_arm*.bp files for
incremental builds. Fix the issue by making inputs to the
kernel_headers.py script as variables instead of a list.

Change-Id: I9737f6d655848458bfda70b8c6f4d9aa896a98fc
Signed-off-by: Rishabh Bhatnagar <rishabhb@codeaurora.org>
2020-02-13 10:22:22 -08:00
Siddharth Gupta
fc242a93cc kernel headers: Update comparison logic
Update comparison logic used to figure out the headers
that need to be added or removed from the corresponding
blueprint file.

Change-Id: I1f8eeea9750074d57868593a9693c016644e3682
Signed-off-by: Siddharth Gupta <sidgup@codeaurora.org>
2020-01-30 12:11:20 -08:00
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