11 Commits

Author SHA1 Message Date
Miles Chen
890057d646 [ALPS05556626] kernel: introduce LLVM=1 and gas toolchain to kenv.mk
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>
2021-03-05 11:57:15 +08:00
Bo Ye
edebe6e5c4 [ALPS05515589] DSO: VDSO COMPACT restore
This reverts commit 71c542a3019152826829b8c95c6ec3e286475ffb.

MTK-Commit-Id: 7fd8f55044d2c0fc0a6a6016ec43b58ae63bc435

Change-Id: I86c14d07d3b02f1975a15807247916358c258e65
CR-Id: ALPS05515589
Feature: [Module]Kernel Maintenance
Signed-off-by: Bo Ye <bo.ye@mediatek.com>
2021-01-29 02:41:22 +08:00
Rueifong Chiu
076a1afe34 [ALPS05178814] kernel: move CC to clang-r383902
Move CC to clang-r383902

MTK-Commit-Id: eda790ad39062dc88d11aa99da47cd225b1ab326

Change-Id: Ic3401b93b8fea118a0d9b85c0da6b7ebf0eda4d0
Signed-off-by: Rueifong Chiu <allen.chiu@mediatek.com>
CR-Id: ALPS05178814
Feature: [Module]Kernel Maintenance
2021-01-29 02:11:53 +08:00
Juju Sung
d9f1702108 [ALPS05014853] DSO: VDSO COMPACT rollback
[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
2021-01-29 00:45:09 +08:00
Miles Chen
153f29a87c [ALPS05055288] kernel: move CC to clang-r377782c
Move CC to clang-r377782c

MTK-Commit-Id: 65ac6a77db192874a98776e33c085761fd55a505

Change-Id: I2d31a3407af2f9cd88a2cf670a52f833b095f928
CR-Id: ALPS05055288
Signed-off-by: Miles Chen <miles.chen@mediatek.com>
Feature: [Module]Kernel Maintenance
2021-01-28 19:45:39 +08:00
Miles Chen
61264b77a9 [ALPS05055288] Revert "kernel: move CC to clang-r377782c"
This reverts commit 56c2d2217990fedd0d659b073093317a9572445e.

MTK-Commit-Id: 4ffaafbd8172f8089351fb914733c362f4773d46

Change-Id: I67259ad039115afd81ef82d23ac3c81818fda056
CR-Id: ALPS05055288
Signed-off-by: Miles Chen <miles.chen@mediatek.com>
Feature: [Module]Kernel Maintenance
2021-01-28 19:45:36 +08:00
Miles Chen
4992ec4a0b [ALPS05055288] kernel: move CC to clang-r377782c
Move CC to clang-r377782c

MTK-Commit-Id: 56c2d2217990fedd0d659b073093317a9572445e

Change-Id: I8a2f13918dd481047becd2a173796771dad03bc9
CR-Id: ALPS05055288
Signed-off-by: Miles Chen <miles.chen@mediatek.com>
Feature: [Module]Kernel Maintenance
2021-01-28 19:44:45 +08:00
Miles Chen
be5f5eb54a [ALPS04991764] kernel: allow passing DEFCONFIG from command line
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
2021-01-28 17:25:15 +08:00
Miles Chen
a594fa1b6d [ALPS04983527] kernel: setup NM and OBJCOPY for arm64
Follow android common kernel setting to setup NM
and OBJCOPY.

https://android.googlesource.com/kernel/common/+/refs/heads/
ndroid-4.19/build.config.common

MTK-Commit-Id: 25d770b5470fdbe62f4d30e3d74a6d237efa82d8

Change-Id: I23aae097c25c9f5a1aa80869c28167bc704f8891
CR-Id: ALPS04983527
Signed-off-by: Miles Chen <miles.chen@mediatek.com>
Feature: [Module]Kernel Maintenance
2021-01-28 16:30:12 +08:00
Miles Chen
923d69826a [ALPS04983527] kernel: remove functions from build.config.mtk
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
2021-01-28 16:28:49 +08:00
Miles Chen
e689f68f87 [ALPS04965372] kernel: add build.config.mtk
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
2021-01-28 16:07:44 +08:00