Commit Graph

21 Commits

Author SHA1 Message Date
Nick Desaulniers
3f37ba9fc1 ANDROID: clang: update to 12.0.5
Bug: 185804542
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Change-Id: If3d0c122472d8979b326d8a6fece30d8b2af962a
2021-04-19 19:40:51 +00:00
Nick Desaulniers
5a9fe3e7b9 ANDROID: clang: update to 12.0.4
Bug: 183031914
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Change-Id: I7b5219a9f91aa2554b6206d98f3c2140c9d24629
2021-03-22 14:25:57 +00:00
Nick Desaulniers
df7c201e4f ANDROID: clang: update to 12.0.3
Bug: 180726982
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Change-Id: Ibafe2f9bb93f9214de017a0b742e9b9e29aa9b06
2021-03-05 20:57:52 +00:00
Alistair Delva
788594063c ANDROID: clang: update to 12.0.1
Bug: 176824850
Signed-off-by: Alistair Delva <adelva@google.com>
Change-Id: I19ae68518af68caa99ed55b87e4e04c58ded9947
2021-01-26 04:20:13 +00:00
Nick Desaulniers
7a05159d1f Revert "Revert "ANDROID: clang: update to 11.0.5""
This reverts commit 998f5e469d.

Re-upgrades clang to 11.0.5/clang-r399163b.

Bug: 171827315
Bug: 173479375
Bug: 174047799
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Change-Id: Iea4177618cce065c0ec683ec191e378e250975d3
2020-12-04 12:58:01 -08:00
Will McVicker
998f5e469d Revert "ANDROID: clang: update to 11.0.5"
This reverts commit 199499f1d7. It breaks
full suspend/resume on bramble/redfin.

Bug: 173479375
Test: Full suspend/resume on bramble
Signed-off-by: Will McVicker <willmcvicker@google.com>
Change-Id: I97a49f6fac26d714a89924ea343450216701f87a
2020-11-18 16:10:22 -08:00
Nick Desaulniers
199499f1d7 ANDROID: clang: update to 11.0.5
Bug: 170775238
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Change-Id: I6d08d436c837997bac34e8c5e51ecdbb8471246c
2020-10-27 11:18:23 -07:00
Nick Desaulniers
b03349cb58 ANDROID: build.config.common: enable LLVM=1
This moves builds to all use LLVM=1 argument to make, rather than
CC=clang NM=llvm-nm OBJCOPY=llvm-objcopy ... (see also
https://www.kernel.org/doc/html/latest/kbuild/llvm.html#llvm-utilities).

Step 3 of:
https://android.googlesource.com/platform/prebuilts/clang/host/linux-x86/+/master/BINUTILS_KERNEL_DEPRECATION.md

Bug: 65987925
Bug: 141693040
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Change-Id: I0d1a4e322a76a91746f2d0888bbba1eee54a7926
2020-10-01 20:10:11 +00:00
Will McVicker
e2a92b6020 ANDROID: drop KERNEL_DIR setting in build.config.common
And replace many references of ${ROOT_DIR}/common with
${ROOT_DIR}/${KERNEL_DIR}, which makes it a lot easier
to branch off of ACK and update the KERNEL_DIR.

The variable of KERNEL_DIR will be set in build/_setup_env.sh
to the directory of the build config file by default if it's
not set explicitly in the build config file or in environment.

Test: build test with following configs
        common/build.config.gki.aarch64
        common-modules/virtual-device/build.config.cuttlefish.aarch64
        common-modules/virtual-device/build.config.goldfish.aarch64

Bug: 162785964
Change-Id: I790ac0ded10bd790484f14c6f93d53e06c38b830
Signed-off-by: Will McVicker <willmcvicker@google.com>
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
(cherry picked from commit 931718fa65fe5e34d143250c048f591a7d74e5f8)
2020-09-25 15:14:51 +08:00
Will McVicker
897439b64d ANDROID: update the kernel release format for GKI
The new kernel release format is: w.x.y-zz-k where,
  w.x.y are the current values
  zzz is the Android Release value
  k is the KMI Generation number

This allows one to identify the kernel module interface version using
`uname -r`. The KMI Generation number is used to identify any KMI
changes that occur after the KMI freeze. This should only occur in an
unlikely event that a security patch requires a KMI update.

Here is a local example:
  5.4.51-android12-0-00153-ga972f59040e4-dirty

Signed-off-by: Will McVicker <willmcvicker@google.com>
Bug: 159842160
Change-Id: I33f40e424ca967b85d810cdb12c6a2c58e4197b7
[willmcvicker: squash with commit 0c0d417747d8e289b2808c3fca32c845f82fd5e5]
2020-07-27 22:22:43 +00:00
Matthias Maennich
20763d5b10 ANDROID: Use depmod from the hermetic toolchain
DEPMOD=depmod overwrites the default DEPMOD=/sbin/depmod and uses the
depmod version from PATH (coming from the hermetic toolchain).

Bug: 130657633
Signed-off-by: Matthias Maennich <maennich@google.com>
Change-Id: I73eefaa5508298bc61e9e586f981c5ddabed7656
(cherry picked from commit 82ce726a3f8d53533203189a0f2a5fa20ae4eabd)
2020-06-22 12:55:38 +00:00
Alistair Delva
9af51e3fbc ANDROID: clang: update to 11.0.1
Bug: 155426344
Signed-off-by: Alistair Delva <adelva@google.com>
Change-Id: I7c295a72419ad63d8b6b885bd66c6e2e3f46efb3
2020-05-18 19:33:08 +00:00
Todd Kjos
7502b09f02 Merge branch 'android-4.19' into android-4.19-stable
Final merge of android-4.19

Change-Id: Ifa789a66260ed6207e829555ad2050d30e3de555
2020-05-18 08:24:14 -07:00
Matthias Maennich
3031e16419 ANDROID: Correct build.config branch name
Bug: 148979805
Change-Id: I948ed494ef08601392f0d6688a392e9cb37488b5
Signed-off-by: Matthias Maennich <maennich@google.com>
2020-05-05 13:46:27 +02:00
Nathan Chancellor
2ca600cbe0 ANDROID: build.config.common: Add BUILDTOOLS_PREBUILT_BIN
This was added to build.config.common in all of the other branches but
not this one during the build.config refactor. Without this, it is
possible to get different build results across host environments.

Change-Id: Ie72dd902adfa4b3d8fed8bfbadf13a78cf55f1fa
Fixes: f04f84fdeb ("ANDROID: refactor build.config files to remove duplication")
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
2020-04-16 18:00:31 +00:00
Alistair Delva
78e767a83b ANDROID: clang: update to 10.0.5
Bug: 151950245
Signed-off-by: Alistair Delva <adelva@google.com>
Change-Id: I8d2182f5f09dd3f148afd5259557f8487af23304
2020-03-30 20:08:33 +00:00
Alistair Delva
6617bf0e6d ANDROID: clang: update to 10.0.4
Bug: 149785865
Change-Id: I953557b4fab528ee9528312c3364e8ec36a16f85
Signed-off-by: Alistair Delva <adelva@google.com>
2020-02-19 19:33:36 +00:00
Alistair Delva
7e0ea2a79c ANDROID: clang: update to 10.0.1
Bug: 144776928
Change-Id: Ic1c76a05a54b0001eac6f9c6f248222989aa79bd
Signed-off-by: Alistair Delva <adelva@google.com>
2019-11-27 12:37:18 -08:00
Matthias Maennich
8e1c72a497 ANDROID: add unstripped modules to the distribution
The kernel ABI is determined by what vmlinux and the kernel modules are
exposing in their distribution. Hence, add IN_KERNEL_MODULES to the
distribution and ensure they have proper debug information.

Change-Id: Ia0ac6b8aa98fa28690acc1469c92c92e01f0fcbd
Signed-off-by: Matthias Maennich <maennich@google.com>
2019-11-20 23:43:35 +00:00
Peter Collingbourne
9334007477 ANDROID: build kernels with llvm-nm and llvm-objcopy
Causes CONFIG_RELR to be enabled, resulting in a gki_defconfig image size
decrease of 2.2MB/10.4% uncompressed or 170KB/2.0% compressed.

Bug: 137200966
Change-Id: I85d36e346ca54bfc50aaca6804684b9bf16c47f0
Signed-off-by: Peter Collingbourne <pcc@google.com>
2019-11-14 22:15:06 +00:00
Matthias Maennich
f04f84fdeb 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 <maennich@google.com>
2019-10-22 18:27:12 -07:00