Commit graph

4 commits

Author SHA1 Message Date
Lior David
83da6b7f65 AndroidKernel.mk: additional fixes for multi-kernel tree
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-16 20:10:14 -07:00
David Ng
93cc3fa659 AndroidKernel.mk: Enforce KERNEL_OBJ generation
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-05-03 15:51:56 -07:00
Ameya Thakur
58446132b1 AndroidKernel.mk: Add support for multi kernel tree
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-23 21:25:31 -07:00
Matt Wagantall
12cf0ae819 AndroidKernel.mk: snapshot support for building in the Android build system
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>
2016-03-23 20:57:49 -07:00