Commit graph

8 commits

Author SHA1 Message Date
Bharat Pawar
1fd38bb437 Change the subprocess argument to fix the build issue
Change subprocess arguments in  kernel_headers.py
script so that it can include dirname to resolve the
compilation issues in the new build system.

Change-Id: I89bbe53aa8a8b50e2c98a795fa20a976f2792a3b
Signed-off-by: Bharat Pawar <bpawar@codeaurora.org>
Signed-off-by: Srinivasarao P <spathi@codeaurora.org>
2021-06-28 16:47:30 +05:30
Bill Peckham
6d29c9240c 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>
Signed-off-by: Srinivasarao P <spathi@codeaurora.org>
2021-06-25 00:24:52 -07:00
Soumil Shah
37a114cbf2 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>
2021-06-25 00:24:11 -07:00
Rishabh Bhatnagar
47f762c046 Revert "kernel_headers: Disable headers matching"
This reverts commit b4a282fd2c.

Change-Id: I4bf5b3bc97afbd0a82568177cd405b05f2a4ab9c
Signed-off-by: Rishabh Bhatnagar <rishabhb@codeaurora.org>
2020-05-01 13:22:22 -07:00
Rishabh Bhatnagar
b4a282fd2c 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 camera
techpack.

Change-Id: I1b6b639015f3672a3e9daa9b2a1444e952ed4ac1
Signed-off-by: Rishabh Bhatnagar <rishabhb@codeaurora.org>
2020-04-14 21:55:23 -07:00
Rishabh Bhatnagar
119960e66b 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-03-10 14:38:17 -07:00
Siddharth Gupta
6afa65c2a0 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>
Signed-off-by: Rishabh Bhatnagar <rishabhb@codeaurora.org>
2020-02-02 14:11:23 -08:00
Justin DeMartino
cc39738286 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: I998890ed427104ed835000e421756981e0f24ab5
[rishabhb@codeaurora.org: add logic to iterate over mandatory headers
 and only generate these headers if not already present in
 usr/include/asm.]
Signed-off-by: Rishabh Bhatnagar <rishabhb@codeaurora.org>
2020-01-18 11:53:58 -08:00