If TARGET_COMPILE_WITH_MSM_KERNEL is set to false, it implies
we do not want to have compile time dependency between AOSP modules
and kernel builds (except for final boot.img generation). In this
case, use /tmp location for kernel objs instead of $(TARGET_OUT).
Change-Id: I6d5717d9d1b0799e1908abc97fc6a28c311e06c2
Signed-off-by: Ajay Dudani <adudani@codeaurora.org>
When using a cross compiler that supports both Android
and non-Android configurations, pass the -mno-android flag
to use non-Android spec to compile the kernel.
Change-Id: Ibd952f3aea06f9f4f8c957c8e2a7666dd5dcdbba
Signed-off-by: David Ng <dave@codeaurora.org>
Skip header file generation section if KERNEL_DEFCONFIG
parameter is not defined. This occurs during Android mm
build of a module (without dependency); and the lack
of KERNEL_DEFCONFIG causes the command line to trigger a
kernel recompile.
Change-Id: I709d8c23691442e537ec6e2b7aebeb010d90a139
Signed-off-by: David Ng <dave@codeaurora.org>
Force 32-bit binder IPC for 64-bit kernel with 32-bit
userspace. This is needed since pure 32-bit userspace
does not have 64-bit binder IPC support.
Change-Id: I6db45bb430ad2292d9cdbe7dc026e179ec6a0dc7
Signed-off-by: David Ng <dave@codeaurora.org>
We now set the install path for the kernel image if it has not already been
set earlier by the build system.
Change-Id: I88d23916901ae9a96917c138a200d7e1772f02c0
Signed-off-by: Ameya Thakur <ameyat@codeaurora.org>
Modify uncompressed kernel handling to use generated Image
file instead of uncompressing the compressed piggy.gzip.
Change-Id: Ide607830aa0a5a981fe34b34b273dcc0ded7fe6f
Signed-off-by: David Ng <dave@codeaurora.org>
Allow headers (sanitized kernel header generation for
userspace consumption) for a different architecture than
the one use for the kernel build.
This is normally not recommended, but is useful for bring-up
purposes.
Change-Id: Ia2cfffb2e8e9c255cb1567664e88f7df0e8bb126
Signed-off-by: David Ng <dave@codeaurora.org>
Allow overriding of the ARCH and CROSS_COMPILE parameters passed
to kernel make, with fallback to previous hardcoded values if
the overrides are not defined.
Change-Id: I33b571e22363fdc06eb9b867e13d4487a7b5bf55
Signed-off-by: David Ng <dave@codeaurora.org>
Force rebuild of dtbs by removing the dtb output
directory at the start of a kernel compile in
an Android build environment.
Change-Id: I29f86adfb39b8da467cd7515d0aff2b9c62d1195
Signed-off-by: David Ng <dave@codeaurora.org>
Add support to build zImage with multiple dtbs appended.
Change-Id: Iddb7884df3b8ff0da1b65ccba7efeb64acc0c0aa
Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
Change Android kernel build makefile to pick up CONFIG_ARCH_MPQ8092
Change-Id: Id99b78f59be9809c6a6a6d24636e5a16c46659bf
Signed-off-by: Ravi Kumar V <kumarrav@codeaurora.org>
Debug symbols in installed kernel modules consume space
in the target filesystem, so strip them. Modules with
debug symbols should be present in the KERNEL_OBJ
location for debug purposes.
CRs-fixed: 400053
Change-Id: Ic7f75faf6d44b5bca831c159d7bb09bba6a12b66
Signed-off-by: Nagender Telkar <ntelkar@codeaurora.org>
Change Android kernel build makefile to pick up multiple CONFIG_ARCH_
options for device tree targets. These options are used to indicate the
DTS file(s) to compile.
Change-Id: I25ea8072f428171b21c056177ea5fec1be660aa3
Signed-off-by: David Ng <dave@codeaurora.org>