summaryrefslogtreecommitdiff
path: root/AndroidKernel.mk
AgeCommit message (Collapse)Author
2020-07-09AndroidKernel: Explicitly mark certain targets as phonyDivya Sharma
kerneltags and kernelconfig are phony targets, so mark them with .PHONY. Change-Id: If2b6d9c20f8954f217c68dd8dec2360592f74492 Signed-off-by: Bruce Levy <blevy@codeaurora.org> Signed-off-by: Kishor Krishna Bhat <kishkris@codeaurora.org>
2020-04-24ANDROID_BUILD_TOP is deprecated.Divya Sharma
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> [snaseem@codeaurora.org: Ignoring TARGET_KERNEL_CROSS_COMPILE_PREFIX part as it was intentionally removed in 4.9] Signed-off-by: Shadab Naseem <snaseem@codeaurora.org> Signed-off-by: Swetha Chikkaboraiah <schikk@codeaurora.org>
2020-04-24AndroidKernel: Update the LLVM pathRaghavendra Rao Ananta
Update the LLVM path due to a change in the compiler version. Change-Id: I7c6c46047b4bb6f4a9e3d49eec1ae252c42fdbd8 Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org> Signed-off-by: Swetha Chikkaboraiah <schikk@codeaurora.org>
2020-04-24AndroidKernel: Add configuration for the LLVM pathRaghavendra Rao Ananta
Set LLVM path depending on the configuration done by the build system. Change-Id: Ib4ebf15c17c2febfee44404df0d2582625f11516 Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org> Signed-off-by: Swetha Chikkaboraiah <schikk@codeaurora.org>
2020-04-24AndroidKernel: Add LLVM support for KernelPrasad Sodagudi
Add necessary changes to be able to compile the Kernel with LLVM. Also update for KERNEL_VM_* specific rules. Change-Id: I147a7abc29ec66828e9626a74125d391f8aaa329 Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org> Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org> Signed-off-by: Shadab Naseem <snaseem@codeaurora.org> [schikk@codeaurora.org: resolve trivial merge conflicts] Signed-off-by: Swetha Chikkaboraiah <schikk@codeaurora.org>
2019-07-05AndroidKernel: Building dtb.img to support header version 2Rahul Shahare
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: I9684126c312e3f5988b1eaa298b37037a11fe747 Signed-off-by: Rahul Shahare <rshaha@codeaurora.org>
2019-03-11AndroidKernel: Use host machine toolsMukesh Ojha
Use the host directory of tools for kernel cross compilation to ensure build results are reproducible across different machines. Change-Id: I804745bb1962c46e944ba43e77e8876435c9059e Signed-off-by: Mukesh Ojha <mojha@codeaurora.org>
2017-04-06AndroidKernel: add support to configure DLKM install pathShashank Mittal
Add support to configure DLKM install path. TARGET_OUT is hard coded to system directory. Use PRODUCT_OUT instead of TARGET_OUT to use user configured path instead. Change-Id: Iacbfa0fce69d3cb4b6f47a6c857983034633dc19 Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
2017-04-06AndroidKernel: add support to pass build flagsShashank Mittal
Add support to pass build flags while compiling Linux kernel. This change is required to add support in Linux kernel to use external host executable. (example: dtc) Usage example: TARGET_KERNEL_MAKE_ENV := DTC_EXT=dtc$(HOST_EXECUTABLE_SUFFIX) Change-Id: I008ca00cf9695133ff167ffdee8d8dfb89beb598 Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
2016-05-16AndroidKernel.mk: additional fixes for multi-kernel treeLior David
Fixes 2 problems related to multi-kernel tree support: 1. Copying of modules to /system/lib/modules is broken when building in a multi-kernel tree. This is because INSTALL_MOD_PATH is not set correctly. When building a multi-kernel tree, the output directory is one additional directory deep, so modules end up under <out>/obj/system/lib/modules instead of <out>/system/lib/modules. Fix this by using BUILD_ROOT_LOC which is set appropriately for multi-kernel and standard trees. 2. When running "make kernelconfig" on a multi-kernel tree, the generated defconfig is copied to the wrong location, since it uses the old-style location under kernel, instead of kernel/<kernel name>. Change-Id: I90563104a5b6219472eaeae1964fc34b52586536 CRs-Fixed: 1014872 Signed-off-by: Lior David <liord@codeaurora.org>
2016-05-03AndroidKernel.mk: Enforce KERNEL_OBJ generationDavid Ng
Always create the KERNEL_OBJ symlink for legacy reference support when using the new directory style. Earlier the generation relies on another make target that requires it. Also solve a minor issue where the make @(hide) was incorrectly used within a shell command. Change-Id: Ie1b74b6a3eac563ee34865655b046f71411aca65 Signed-off-by: David Ng <dave@codeaurora.org>
2016-03-23AndroidKernel.mk: Add support for multi kernel treeAmeya Thakur
We now support building Android in a build tree that contains multiple kernels. The kernel version to be built is passed in by the higher level makefiles. Currently supported structure: - legacy <Android Root>/kernel - New <Android Root>/kernel/msm-* Change-Id: Ibd6c03c019643adfbadc61e46a3dd760930028bb Signed-off-by: Ameya Thakur <ameyat@codeaurora.org> Signed-off-by: David Ng <dave@codeaurora.org>
2016-03-23AndroidKernel.mk: snapshot support for building in the Android build systemMatt Wagantall
This snapshot is taken as of msm-3.14 commit 3bc54cf86b (Merge "msm: camera: Add dummy sub module in sensor pipeline") Signed-off-by: Matt Wagantall <mattw@codeaurora.org>