Linux can now be built with LLVM=1, all necessary llvm params
such as CC, LD, OBJCOPY, and NM will be set correctly.
Introduce LLVM=1 to kenv.mk and drop legacy approach.
To make it work, we have to also change build.config.mtk* files.
With commit commit 2c71673913c12528c77bd0f75ce2c6adc9ac5059
("Revert "ANDROID: Kbuild, LLVMLinux: allow overriding clang target triple""),
we must not use "CLANG_TRIPLE" in build commands, otherwise well
have boot failures.
MTK-Commit-Id: 52ced0a041efb0231efb134de7f821b3f678ced8
Change-Id: I76f2ec556e14d8ed28a89bc13e3b551fda625037
CR-Id: ALPS05556626
Feature: [Module]Kernel Maintenance
Signed-off-by: Miles Chen <miles.chen@mediatek.com>
[Detail]
We found 4.19.124 addd VDSO_COMPAT.
It might break the shared object for 64b device.
We revert it for workaround first.
MTK-Commit-Id: 71c542a3019152826829b8c95c6ec3e286475ffb
Change-Id: I71d8504cdcc2d31e9deccd57e294dc9763d5b8a9
Signed-off-by: Juju Sung <juju.sung@mediatek.com>
CR-Id: ALPS05014853
Feature: [Module]Kernel Maintenance
Comment out DEFCONFIG in build.config.mtk* to pass DEFCONFIG
from command line. We can use build.config.mtk* to test
different internal kernel configs.
BUILD_CONFIG=kernel-4.19/build.config.mtk.arm
DEFCONFIG=k61v1_32_bsp_1g_debug_defconfig ./kernel/build/build.sh -j32
MTK-Commit-Id: f441079aa7c9056548c8c288ea432fd28f0d5bd6
Change-Id: Icf28e864c5f0a6d5e2535d250889742d9c98d5bb
CR-Id: ALPS04991764
Signed-off-by: Miles Chen <miles.chen@mediatek.com>
Feature: [Module]Kernel Maintenance
Remove functions from build.config.mtk. This is the preparation
for "include the build.config.mtk files" in the kenv.mk.
kenv.mk is a Makefile so we have to make build.config.mtk compatible
with kenv.mk.
MTK-Commit-Id: d8c2df367ab7fc6ebdd07de8af3b47d082c6e213
Change-Id: Ie27605691f9e752a1728a1f55a7b7e74ddea8e3f
Signed-off-by: Miles Chen <miles.chen@mediatek.com>
CR-Id: ALPS04983527
Feature: [Module]Kernel Maintenance
Add build.config.mtk.* to kernel, the files are compatible with
Android kernel/build scripts
MTK-Commit-Id: 310f7ff77b7c818af3d09be47b8af2678cf64a0c
Change-Id: Ic1ec7810b81f188c14acfed884b16e27cb4566d3
CR-Id: ALPS04965372
Signed-off-by: Miles Chen <miles.chen@mediatek.com>
Feature: [Module]Kernel Maintenance