Skip to content

Commit

Permalink
[ALPS04991764] kernel: allow passing DEFCONFIG from command line
Browse files Browse the repository at this point in the history
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 <[email protected]>
Feature: [Module]Kernel Maintenance
  • Loading branch information
milesdotchen committed Jan 28, 2021
1 parent 19df672 commit be5f5eb
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.config.mtk.aarch64
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ LD=ld.lld
LD_LIBRARY_PATH=prebuilts/clang/host/linux-x86/clang-r370808/lib64:$$LD_LIBRARY_PATH
NM=llvm-nm
OBJCOPY=llvm-objcopy
DEFCONFIG=defconfig
# DEFCONFIG=defconfig
KERNEL_DIR=kernel-4.19
CLANG_PREBUILT_BIN=prebuilts/clang/host/linux-x86/clang-r370808/bin
LINUX_GCC_CROSS_COMPILE_PREBUILTS_BIN=prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin
2 changes: 1 addition & 1 deletion build.config.mtk.aarch64.gcc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ARCH=arm64
CROSS_COMPILE=aarch64-linux-gnu-
CC=gcc
DEFCONFIG=defconfig
# DEFCONFIG=defconfig
KERNEL_DIR=kernel-4.19
LINUX_GCC_CROSS_COMPILE_PREBUILTS_BIN=prebuilts/gcc/linux-x86/aarch64/aarch64-linux-gnu-6.3.1/bin
2 changes: 1 addition & 1 deletion build.config.mtk.aarch64.kasan
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ARCH=arm64
CROSS_COMPILE=aarch64-linux-gnu-
CC=gcc
DEFCONFIG=defconfig
# DEFCONFIG=defconfig
KERNEL_DIR=kernel-4.19
LINUX_GCC_CROSS_COMPILE_PREBUILTS_BIN=prebuilts/gcc/linux-x86/aarch64/aarch64-linux-gnu-6.3.1/bin
2 changes: 1 addition & 1 deletion build.config.mtk.aarch64.ubsan
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ARCH=arm64
CROSS_COMPILE=aarch64-linux-gnu-
CC=gcc
DEFCONFIG=defconfig
# DEFCONFIG=defconfig
KERNEL_DIR=kernel-4.19
LINUX_GCC_CROSS_COMPILE_PREBUILTS_BIN=prebuilts/gcc/linux-x86/aarch64/aarch64-linux-gnu-6.3.1/bin
2 changes: 1 addition & 1 deletion build.config.mtk.arm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARCH=arm
CLANG_TRIPLE=arm-linux-gnueabi-
CROSS_COMPILE=arm-linux-androidkernel-
CC=clang
DEFCONFIG=defconfig
# DEFCONFIG=defconfig
KERNEL_DIR=kernel-4.19
CLANG_PREBUILT_BIN=prebuilts/clang/host/linux-x86/clang-r370808/bin
LINUX_GCC_CROSS_COMPILE_PREBUILTS_BIN=prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin

0 comments on commit be5f5eb

Please sign in to comment.