17 Commits

Author SHA1 Message Date
Swetha Chikkaboraiah
1f17430bf0 AndroidKernel: Disable debugfs for user builds
Debugfs is not needed on user builds, so disabling
same at compile time for ARM 64.

Change-Id: If6708c9de060584ebcba4cac9bad8e85d6a5ab7f
Signed-off-by: Swetha Chikkaboraiah <schikk@codeaurora.org>
2020-08-20 20:19:05 -07:00
Prateek Sood
e68d0ec320 AndroidKernel.mk: Modify kernel headers recipe
Modified the kernel headers recipe to stop for some errors.

Bug: 148564723
Change-Id: Ia0849c59a87881c4f167c9fc4829b1e1721e3d90
Signed-off-by: Prateek Sood <prsood@codeaurora.org>
2020-02-11 14:03:23 +05:30
lijuang
e477feeb93 AndroidKernel: For support 32-bit kernel compile
This file only support arm64 kernel compile currently, now we need
to supprot arm kenrel compile, so add this change.

Change-Id: I171ead43c9450886d9e096fc58a2729dee3439a1
Signed-off-by: lijuang <lijuang@codeaurora.org>
2019-10-30 11:09:32 +08:00
Amareswar Reddy Valasa
2933fed00c kernel/build: Append RTIC dtb in dtb image for boot header v2
With Boot image header version 2, dtb is no longer appended to
kernel image. dtb.img is generated separately. So concatenate RTIC
dtb to the dtb.img for the bootloader to read the rtic dtb and share
the measurement parameter to hypervisor. Make sure that the RTIC DTB
rule added regardless of the presence of rtic_mp.dts. Instead, check
this during the rule execution (never fail if RTIC DTS is missing).

Change-Id: Id2d86aa44ae04ef82d3808f40e5f1187a8ec9735
Signed-off-by: Amareswar Reddy Valasa <avalasa@codeaurora.org>
2019-09-19 18:09:16 +05:30
Tengfei Fan
ee0d82e6d2 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>
2019-08-02 17:27:57 +08:00
lijuang
962b3d7f1f AndroidKernel: Fixed compile errors after enable boot header version 2
Look for vendor under arch/arm64/boot/dts before creating a dtb.img.
The target maybe doesn't have vendor folder.

Change-Id: I872f6f7f2d4c7f46c5d871d129403c733896832b
Signed-off-by: lijuang <lijuang@codeaurora.org>
2019-07-17 16:30:02 +08:00
Prakruthi Deepak Heragu
9c88718c45 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-28 12:43:40 +05:30
David Ng
b09b8f8bc1 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-05 13:08:24 -07:00
Mukesh Ojha
7888c58127 AndroidKernel: Use TARGET_KERNEL_CROSS_COMPILE_PREFIX for both 32/64 bit
TARGET_TOOLS_PREFIX is a new variable introduced in build environment
which keeps the location of the toolchain from the android source, which
was working for 64bit but giving unwind warnings for 32 bit targets.

[    7.353691] VFS: Mounted root (ext4 filesystem) readonly on device 253:0.
[    7.363324] Freeing unused kernel memory: 2048K
[    7.375778] unwind: Unknown symbol address c010130c
[    7.375802] unwind: Index not found c010130c
[    7.379466] unwind: Unknown symbol address c010130c
[    7.383992] unwind: Index not found c010130c
[    7.388578] unwind: Unknown symbol address c010130c
[    7.393096] unwind: Index not found c010130c
[    7.397690] unwind: Unknown symbol address c010130c
[    7.402227] unwind: Index not found c010130c
[    7.406806] unwind: Unknown symbol address c010130c
[    7.411331] unwind: Index not found c010130c 

To solve this let's make the toolchain path prefix change in the target
BoardConfig file as per architecture(32/64) basis and avoid making change
in kernel.

Change-Id: I6ca9642aeabbba1b892e169816f3d6d260bd50d5
Signed-off-by: Mukesh Ojha <mojha@codeaurora.org>
2019-01-28 01:40:24 -08:00
Divya Sharma
e91a5bf56b AndroidKernel: Explicitly mark certain targets as phony
kerneltags and kernelconfig are phony targets, so mark them
with .PHONY.

Change-Id: If2b6d9c20f8954f217c68dd8dec2360592f74492
Signed-off-by: Bruce Levy <blevy@codeaurora.org>
2018-11-14 12:41:32 -08:00
Divya Sharma
12b9364801 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>
2018-10-27 09:07:16 -07:00
Raghavendra Rao Ananta
032ad65606 AndroidKernel: Look for defconfig under vendor/
The target configuration searches for defconfig under
configs/vendor/ by default. Hence, change the search
path for the same for kernel configuration.

Change-Id: Ica83363fc6783eb1ce2d46acfd755a1915e1d113
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2018-08-16 10:53:09 -07:00
Raghavendra Rao Ananta
cd202af931 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>
2018-07-26 15:38:54 -07:00
Raghavendra Rao Ananta
7c7447394e 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>
2018-04-17 16:50:06 -07:00
Raghavendra Rao Ananta
4d2072f04e 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>
2018-04-16 19:20:22 -07:00
Prasad Sodagudi
0cc35b1bfa 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>
2017-12-01 15:09:26 -08:00
Pothuluraiah Usarthi
5078166214 AndroidKernel: Add the makefile required to build Android
The makefile invoked by the Android build system is now added to the
kernel tree.

Change-Id: I0bb97c6ec8f3dedf6da0247e23e5a5419e859a69
Signed-off-by: Pothuluraiah Usarthi <pusarthi@codeaurora.org>
2017-08-10 15:10:00 -07:00