Skip to content

Commit 280b422

Browse files
DyneteveUtsavBalar1231
authored andcommittedAug 1, 2021
Import initial alioth build configs
Change-Id: I3ad61458e66abd27f0ec8eceed966b109434cbf4 Signed-off-by: UtsavBalar1231 <[email protected]>
1 parent 350c4ae commit 280b422

6 files changed

+51
-4
lines changed
 

‎build.config.alioth

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
KERNEL_DIR=private/msm-google
2+
. ${ROOT_DIR}/${KERNEL_DIR}/build.config.alioth.common.clang
3+
POST_DEFCONFIG_CMDS="check_defconfig"

‎build.config.alioth.common

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
. ${ROOT_DIR}/${KERNEL_DIR}/build.config.common
2+
DEFCONFIG=vendor/alioth_defconfig
3+
BUILD_INITRAMFS=1

‎build.config.alioth.common.clang

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
. ${ROOT_DIR}/${KERNEL_DIR}/build.config.alioth.common
2+
CC=clang
3+
CLANG_TRIPLE=aarch64-linux-gnu-

‎build.config.alioth.no-cfi

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
KERNEL_DIR=private/msm-google
2+
. ${ROOT_DIR}/${KERNEL_DIR}/build.config.alioth.common.clang
3+
4+
POST_DEFCONFIG_CMDS="check_defconfig && update_nocfi_config"
5+
function update_nocfi_config() {
6+
# Disable clang-specific options
7+
${KERNEL_DIR}/scripts/config --file ${OUT_DIR}/.config \
8+
-e THINLTO \
9+
-d CFI \
10+
-d CFI_PERMISSIVE \
11+
-d CFI_CLANG
12+
(cd ${OUT_DIR} && \
13+
make O=${OUT_DIR} CLANG_TRIPLE=${CLANG_TRIPLE} CROSS_COMPILE=${CROSS_COMPILE} "${TOOL_ARGS[@]}" ${MAKE_ARGS} olddefconfig)
14+
}

‎build.config.common

+27-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,35 @@
1-
BRANCH=android-4.19-stable
2-
KMI_GENERATION=0
1+
ARCH=arm64
2+
BRANCH=android-msm-alioth-4.19
3+
CROSS_COMPILE=aarch64-linux-gnu-
4+
CROSS_COMPILE_ARM32=arm-linux-gnueabi-
5+
CROSS_COMPILE_COMPAT=$CROSS_COMPILE_ARM32
36

47
LLVM=1
58
DEPMOD=depmod
6-
CLANG_PREBUILT_BIN=prebuilts-master/clang/host/linux-x86/clang-r416183b/bin
9+
CLANG_PREBUILT_BIN=prebuilts-master/clang/host/linux-x86/proton-clang/bin
710
BUILDTOOLS_PREBUILT_BIN=build/build-tools/path/linux-x86
811

912
EXTRA_CMDS=''
10-
STOP_SHIP_TRACEPRINTK=1
13+
LD_LIBRARY_PATH=${ROOT_DIR}/prebuilts-master/clang/host/linux-x86/proton-clang/lib64:$LD_LIBRARY_PATH
14+
export LD_LIBRARY_PATH
15+
LIBUFDT_PREBUILTS_BIN=prebuilts-master/misc/linux-x86/libufdt
16+
DTC_EXT=${ROOT_DIR}/prebuilts/kernel-build-tools/linux-x86/bin/dtc
17+
export DTC_EXT
18+
DTC_OVERLAY_TEST_EXT=${ROOT_DIR}/prebuilts/kernel-build-tools/linux-x86/bin/ufdt_apply_overlay
19+
export DTC_OVERLAY_TEST_EXT
20+
FILES="
21+
arch/arm64/boot/dtbo.img
22+
arch/arm64/boot/Image.gz-dtb
23+
arch/arm64/boot/Image.gz
24+
arch/arm64/boot/dts/vendor/qcom/*.dtb
25+
vmlinux
26+
System.map
27+
.config
28+
"
29+
UNSTRIPPED_MODULES="
30+
wlan.ko
31+
"
1132
IN_KERNEL_MODULES=1
33+
SKIP_MRPROPER=1
34+
STOP_SHIP_TRACEPRINTK=1
1235
DO_NOT_STRIP_MODULES=1

‎build_alioth.sh

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
BUILD_BOOT_IMG=true BUILD_CONFIG=private/msm-google/build.config.alioth.no-cfi build/build.sh "$@"

0 commit comments

Comments
 (0)
Please sign in to comment.