Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

Commit

Permalink
libra: Build kernel image with clang-12
Browse files Browse the repository at this point in the history
It's now possible to install clang-12 package on both Debian and Ubuntu.
Also swith to absolute path to provide support for WSL Linux distributions.
  • Loading branch information
BYZYB committed Apr 27, 2021
1 parent 3e2817d commit 675681f
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions BoardConfig.mk
Original file line number Diff line number Diff line change
Expand Up @@ -131,20 +131,18 @@ TARGET_RECOVERY_DEVICE_MODULES := libinit_libra
USE_DEVICE_SPECIFIC_DATA_IPA_CFG_MGR := true

# Kernel
# To build the kernel with gcc-10 (or newer), please install "gcc-10-aarch64-linux-gnu" on your build OS.
# To build the kernel with clang-11 (or newer), please install "clang" on your build OS.
# For Ubuntu 20.10 (or newer), exec "sudo apt install clang gcc-aarch64-linux-gnu gcc-arm-linux-gnueabi" should finish these things properly.
# To build the kernel with gcc-10 (or newer), please install "gcc-10-aarch64-linux-gnu" and "gcc-10-arm-linux-gnueabi".
# To build the kernel with clang-11 (or newer), please install "clang" and "llvm-dev".
# If you'd like to build with other toolchains, please modify "TARGET_KERNEL_CROSS_COMPILE_PREFIX" to proper values.
# It's not recommend to build the kernel with android-gcc-4.9, which may cause build errors.
BOARD_KERNEL_BASE := 0x00000000
BOARD_KERNEL_CMDLINE := androidboot.hardware=qcom androidboot.selinux=permissive ehci-hcd.park=3 msm_rtb.filter=0x37
BOARD_KERNEL_IMAGE_NAME := Image.gz-dtb
BOARD_KERNEL_PAGESIZE := 4096
TARGET_KERNEL_CLANG_COMPILE := true
TARGET_KERNEL_CLANG_PATH := /lib/llvm-11
TARGET_KERNEL_CLANG_VERSION := 11.0
TARGET_KERNEL_CLANG_PATH := /usr/lib/llvm-12
TARGET_KERNEL_CLANG_VERSION := 12.0
TARGET_KERNEL_CONFIG := libra_defconfig
TARGET_KERNEL_CROSS_COMPILE_PREFIX := /bin/aarch64-linux-gnu-
TARGET_KERNEL_CROSS_COMPILE_PREFIX := /usr/bin/aarch64-linux-gnu-
TARGET_KERNEL_HEADER_ARCH := arm64
TARGET_KERNEL_SOURCE := kernel/xiaomi/libra

Expand Down

0 comments on commit 675681f

Please sign in to comment.