-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ANDROID: refactor build.config files to remove duplication
The build.config.* files largely contain duplicate information by their nature. Reorganize them reduce duplication and to allow adding new configurations without copying the definitions again. Bug: 140224784 Change-Id: I6a3810a125b0ed48591690ca33bb5c02be58218a Signed-off-by: Matthias Maennich <[email protected]> (cherry picked from commit 7d64237)
- Loading branch information
Showing
5 changed files
with
37 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
ARCH=arm64 | ||
|
||
CLANG_TRIPLE=aarch64-linux-gnu- | ||
CROSS_COMPILE=aarch64-linux-androidkernel- | ||
LINUX_GCC_CROSS_COMPILE_PREBUILTS_BIN=prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin | ||
|
||
FILES=" | ||
arch/arm64/boot/Image.gz | ||
vmlinux | ||
System.map | ||
" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
BRANCH=android-4.14-q | ||
KERNEL_DIR=common | ||
|
||
CC=clang | ||
CLANG_PREBUILT_BIN=prebuilts-master/clang/host/linux-x86/clang-r353983c/bin | ||
BUILDTOOLS_PREBUILT_BIN=build/build-tools/path/linux-x86 | ||
|
||
EXTRA_CMDS='' | ||
STOP_SHIP_TRACEPRINTK=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,5 @@ | ||
ARCH=arm64 | ||
BRANCH=android-4.14 | ||
CLANG_TRIPLE=aarch64-linux-gnu- | ||
CROSS_COMPILE=aarch64-linux-androidkernel- | ||
. ${ROOT_DIR}/common/build.config.common | ||
. ${ROOT_DIR}/common/build.config.aarch64 | ||
|
||
DEFCONFIG=cuttlefish_defconfig | ||
EXTRA_CMDS='' | ||
KERNEL_DIR=common | ||
POST_DEFCONFIG_CMDS="check_defconfig" | ||
CLANG_PREBUILT_BIN=prebuilts-master/clang/host/linux-x86/clang-r353983c/bin | ||
LINUX_GCC_CROSS_COMPILE_PREBUILTS_BIN=prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin | ||
FILES=" | ||
arch/arm64/boot/Image.gz | ||
vmlinux | ||
System.map | ||
" | ||
STOP_SHIP_TRACEPRINTK=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,5 @@ | ||
ARCH=x86_64 | ||
BRANCH=android-4.14 | ||
CLANG_TRIPLE=x86_64-linux-gnu- | ||
CROSS_COMPILE=x86_64-linux-androidkernel- | ||
. ${ROOT_DIR}/common/build.config.common | ||
. ${ROOT_DIR}/common/build.config.x86_64 | ||
|
||
DEFCONFIG=x86_64_cuttlefish_defconfig | ||
EXTRA_CMDS='' | ||
KERNEL_DIR=common | ||
POST_DEFCONFIG_CMDS="check_defconfig" | ||
CLANG_PREBUILT_BIN=prebuilts-master/clang/host/linux-x86/clang-r353983c/bin | ||
LINUX_GCC_CROSS_COMPILE_PREBUILTS_BIN=prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/bin | ||
FILES=" | ||
arch/x86/boot/bzImage | ||
vmlinux | ||
System.map | ||
" | ||
STOP_SHIP_TRACEPRINTK=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
ARCH=x86_64 | ||
|
||
CLANG_TRIPLE=x86_64-linux-gnu- | ||
CROSS_COMPILE=x86_64-linux-androidkernel- | ||
LINUX_GCC_CROSS_COMPILE_PREBUILTS_BIN=prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/bin | ||
|
||
FILES=" | ||
arch/x86/boot/bzImage | ||
vmlinux | ||
System.map | ||
" |