Skip to content

Commit

Permalink
Merge pull request #1 from Inkypen79/lineage-20.0
Browse files Browse the repository at this point in the history
odin: Compile kernel with Clang 17.0.2
  • Loading branch information
hafeoz authored Jul 9, 2023
2 parents c73058c + 56248d1 commit b74ff58
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
5 changes: 1 addition & 4 deletions BoardConfig.mk
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,9 @@ BOARD_KERNEL_TAGS_OFFSET := 0x00000100
BOARD_RAMDISK_OFFSET := 0x01000000

TARGET_KERNEL_ADDITIONAL_FLAGS := DTC_EXT=$(shell pwd)/prebuilts/misc/linux-x86/dtc/dtc LLVM=1 LLVM_IAS=1
TARGET_KERNEL_ADDITIONAL_FLAGS += AR=$(shell pwd)/prebuilts/clang/host/linux-x86/clang-r487747/bin/llvm-ar
TARGET_KERNEL_ADDITIONAL_FLAGS += LD=$(shell pwd)/prebuilts/clang/host/linux-x86/clang-r487747/bin/ld.lld
TARGET_KERNEL_ARCH := arm64
TARGET_KERNEL_CLANG_COMPILE := true
TARGET_KERNEL_CLANG_VERSION := r487747
TARGET_KERNEL_LLVM_BINUTILS := false
TARGET_KERNEL_CLANG_VERSION := r487747c
TARGET_KERNEL_CONFIG := odin_defconfig
TARGET_KERNEL_SOURCE := kernel/xiaomi/odin
BOARD_KERNEL_CMDLINE += androidboot.console=ttyMSM0
Expand Down
6 changes: 3 additions & 3 deletions vendorsetup.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
CLANGDIR=$PWD/prebuilts/clang/host/linux-x86
CLANGVER=clang-r487747
CLANGVER=clang-r487747c
if [ ! -d "${CLANGDIR}/${CLANGVER}" ]
then
GREEN='\033[0;32m'
NC='\033[0m'
echo -e "${GREEN}Downloading clang 17.0${NC}"
git clone https://gitlab.com/inkypen/prebuilts_clang_host_linux-x86 -b ${CLANGVER} "${CLANGDIR}/${CLANGVER}"
echo -e "${GREEN}Downloading clang 17.0.2${NC}"
git clone https://gitlab.com/inkypen/prebuilts_clang_host_linux-x86 -b ${CLANGVER} "${CLANGDIR}/${CLANGVER}" --single-branch
fi

0 comments on commit b74ff58

Please sign in to comment.