Age | Commit message (Collapse) | Author |
|
This effectively locks down OWNERS approval to a small group to guard
the code base against unintentional breakages.
Bug: 194314089
Signed-off-by: Matthias Maennich <maennich@google.com>
Change-Id: Ifd1ea97639a622320ea83f901f6451e2e52b38d4
|
|
Now that we've reverted the kernel commit:
("ANDROID: Kbuild, LLVMLinux: allow overriding clang target triple")
in:
- aosp/1492141
- aosp/1494224
- aosp/1494616
we no longer need such triples.
After this, we're left with just:
aarch64-linux-gnu-as
aarch64-linux-gnu-elfedit
arm-linux-gnueabi-as
arm-linux-gnueabi-elfedit
x86_64-linux-gnu-as
x86_64-linux-gnu-elfedit
As part of
https://android.googlesource.com/platform/prebuilts/clang/host/linux-x86/+/master/BINUTILS_KERNEL_DEPRECATION.md
should we ever need to revert LLVM_IAS=1 kernel changes (see Contigency
Plans section in above link), then these are the few binaries we will
fall back on.
Bug: 141693040
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Change-Id: I05455520ae5890e09f0b12f16cafaaef64de3592
|
|
This allows us to remove the use of CLANG_TRIPLE env var for building
Android Common Kernels. The androidkernel binaries can be removed once
builds are moved over.
Bug: 141693040
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Change-Id: I89904415011154332848985e17e1e073e475aa0e
|
|
In the previous commit, I had not properly removed prebuilts/gcc/ from
manifests upstream. This failed presubmits in aosp/1441815.
The prefix for the elfedit binaries is indeed CROSS_COMPILE, but for
Android common kernels, that's the tool prefix, not the target triple
(CLANG_TRIPLE). It seems I myself continue to mix these up.
Bug: 141693040
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Change-Id: I0338c4fcd740866ec93effbe4a4788dd019366cc
|
|
In order for Android Common Kernels to use this directory via
LINUX_GCC_CROSS_COMPILE_PREBUILTS_BIN, we need 2 things:
1. to provide <CLANG_TRIPLE>-as where CLANG_TRIPLE is one of
aarch64-linux-androidekernel-, arm-linux-androidkernel-, or
x86_64-linux-androidkernel-. With LLVM=1 changes proposed in
https://android.googlesource.com/platform/prebuilts/clang/host/linux-x86/+/master/BINUTILS_KERNEL_DEPRECATION.md
we should be able to revert CLANG_TRIPLE downstream changes in Android
Common Kernels, but I would prefer to do that *after* moving ACK over to
prebuilts/gas. At that point, we can delete the symlinks added in this
commit.
2. KBUILD invokes `which $(CROSS_COMPILE)elfedit` to find the path to
binutils to use for the --gcc-toolchain arg to clang when cross
compiling. `which` requires a file in the $PATH to have the same name,
and have its executable bit set. Create empty elfedit executables via
touch and chmod. When we remove this repo dependency in step 8 from the
above URL, I may need to fix KBUILD upstream to not depend on finding
any elfedit in order to cross compile correctly.
Step 5 of the above URL.
Bug: 141693040
Test: uninstall cross binutils from host, remove prebuilts/gcc from
common kernels, then:
$ BUILD_CONFIG=common/build.config.gki.aarch64 ./build/build.sh
$ BUILD_CONFIG=common/build.config.gki.x86_64 ./build/build.sh
$ BUILD_CONFIG=common/build.config.allmodconfig.arm ./build/build.sh
$ BUILD_CONFIG=common-modules/virtual-device/build.config.cuttlefish.aarch64 build/build.sh
$ BUILD_CONFIG=common-modules/virtual-device/build.config.cuttlefish.x86_64 build/build.sh
$ BUILD_CONFIG=common-modules/virtual-device/build.config.cuttlefish.i686 build/build.sh
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Change-Id: Iddee3065f5e9df8da276644921aa5fbc1b8c6381
|
|
See README.md for more information.
Bug: 141693040
Bug: 169436709
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Change-Id: Ie2e24f0e63ce542dcad51fc0c714a9820a4fdce2
|
|
|