Commit Graph

12 Commits

Author SHA1 Message Date
Tengfei Fan
652b864a68 AndroidKernel: add TARGET_PREBUILT_INT_KERNEL_IMAGE
Add TARGET_PREBUILT_INT_KERNEL_IMAGE to support compile modules to
dependence on Image.

Change-Id: If8f5825c3028fc8cd304cf745bcf68a6b2d28ec4
Signed-off-by: Tengfei Fan <tengfeif@codeaurora.org>
Signed-off-by: Cong Zhang <congzhan@codeaurora.org>
2019-08-02 20:31:09 +08:00
Prakruthi Deepak Heragu
99570abad6 AndroidKernel: Building dtb.img to support header version 2
The dtb.img is made by concatenating all the compiled dtbs
after the kernel is compiled. This dtb.img is then added to be
a part of the boot.img.

Change-Id: I7667d1c3118962bbc709a362a2b9a2b6419dede4
Signed-off-by: Prakruthi Deepak Heragu <pheragu@codeaurora.org>
2019-06-19 12:05:25 -07:00
David Ng
cc72274405 AndroidKernel.mk: Use make wildcard for file listing
Switch to using make wildcard command instead of invoking
shell for ls to get file listing.  This speeds up
Android build processing time.

Change-Id: If21f95cc32c87547e3c7c9ece19c980473f1e413
Signed-off-by: David Ng <dave@codeaurora.org>
2019-04-04 17:02:22 -07:00
Raghavendra Rao Ananta
f9bb0b7fea AndroidKernel: Add all generated dlkm to vendor image
Currently, the modules that are needed to be used should be
explicitly mentioned in the Android's target configuration
to copy the modules into vendor partition for the users to
access/insert it. Hence, auto add all the modules that are
generated as a part of kernel compilation to the vendor partition.

Change-Id: I2b59a2e3c08a5be39b0eeca377cd945beaf4a792
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2019-03-29 14:56:57 -07:00
Amit Shekhar
60c7014223 Revert "AndroidKernel.mk: Use Android's prebuilt "make" if available"
Temporarily revert back to the "make" installed on the host/build machine
until the build time increase with Android's prebuilt "make" is analyzed
and resolved.

This reverts commit a947f972e7.

Change-Id: Ie1be9ca0349ab29a14b00f855965d6247a3f85bb
Signed-off-by: Amit Shekhar <ashekhar@codeaurora.org>
Signed-off-by: David Ng <dave@codeaurora.org>
2019-03-13 10:46:40 -07:00
Raghavendra Rao Ananta
14958a9a44 AndroidKernel: Update the LLVM path
Update the LLVM path due to a change in the compiler version.

Change-Id: I7c6c46047b4bb6f4a9e3d49eec1ae252c42fdbd8
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2019-02-19 15:22:22 -08:00
Raghavendra Rao Ananta
90461c5c6d AndroidKernel: Add configuration for the LLVM path
Set LLVM path depending on the configuration done by the build system.

Change-Id: Ib4ebf15c17c2febfee44404df0d2582625f11516
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2019-02-19 12:43:57 -08:00
Divya Sharma
3d288d5ad3 AndroidKernel: Explicitly mark certain targets as phony
kerneltags and kernelconfig are phony targets, so mark them
with .PHONY.

Change-Id: If2b6d9c20f8954f217c68dd8dec2360592f74492
Signed-off-by: Divya Sharma <divyash@codeaurora.org>
Signed-off-by: Venkata Narendra Kumar Gutta <vnkgutta@codeaurora.org>
2019-02-11 20:29:20 -08:00
Bruce Levy
e7faf8d449 AndroidKernel: Add support for Uncompresed Kernel
Add logic to check for Uncompressed Kernel defconfig.
Then generate appropriate image.

Change-Id: Id59a1633bf5355d9a091c96f923265e19599d0fa
Signed-off-by: Bruce Levy <blevy@codeaurora.org>
2019-01-14 18:26:08 -08:00
David Ng
a947f972e7 AndroidKernel.mk: Use Android's prebuilt "make" if available
Switch to using the prebuilt "make" in Android's tree if available.
The Android build system has reduced out-of-tree/host system
module dependency.

Change-Id: I40e8592e162f0b607f96dd31cc8785af3093e485
Signed-off-by: David Ng <dave@codeaurora.org>
2019-01-11 10:26:21 -08:00
Prasad Sodagudi
e323c04413 ANDROID_BUILD_TOP is deprecated
ANDROID_BUILD_TOP variable is deprecated and thus all paths are assumed
to be relative to the top directory. However, this is causing problem
when some of the paths are constructed in the Android build system and
used in the non-Android makefiles that are usually executed NOT at the
top directory but at a sub directory using -C option. As a result, the
relative path from the Android build system become invalid in the
non-Android makefiles.
In order to overcome the restriction, ANDROID_BUILD_TOP is manually
constructed when invoking the non-Android makefiles by using $$(pwd).
The non-Android makefiles are expected to construct the absolute path
by prepending ANDROID_BUILD_TOP to any path that came from the Android
build system.

Change-Id: Ia2e380cf329f56c8d36ad8dbde90d6a655f9509a
Signed-off-by: Divya Sharma <divyash@codeaurora.org>
Signed-off-by: Bruce Levy <blevy@codeaurora.org>
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
Signed-off-by: David Ng <dave@codeaurora.org>
2018-11-27 17:55:41 -08:00
Prasad Sodagudi
0489ba2a13 AndroidKernel: Add LLVM support for Kernel
Add necessary changes to be able to compile the Kernel
with LLVM.

Change-Id: I147a7abc29ec66828e9626a74125d391f8aaa329
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
Signed-off-by: Rishabh Bhatnagar <rishabhb@codeaurora.org>
2018-06-15 15:08:48 -07:00