11 Commits

Author SHA1 Message Date
Yongqin Liu
04d51f36db 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.cuttlefish.aarch64

Bug: 162785964
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
Change-Id: I5da16e14cf79275622c03daca5c9e9b3e630e948
2020-10-15 02:48:27 +00:00
Alistair Delva
f312c63f1c ANDROID: Enable LZ4_RAMDISK
Bug: 150391496
Change-Id: Ib742a7e98cd19d2ff5eccac78b564e3792f20eb9
Signed-off-by: Alistair Delva <adelva@google.com>
2020-06-18 03:59:15 +00:00
Matthias Maennich
7d642373db 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-21 19:05:35 +00:00
Alistair Strachan
087e5d1462 ANDROID: Move from clang r349610 to r353983c.
Bug: 120439617
Bug: 132097678
Test: make ARCH=arm64 cuttlefish_defconfig && make ARCH=arm64
Test: make ARCH=x86_64 x86_64_cuttlefish_defconfig && make ARCH=x86_64
Change-Id: If5542a39e36fb4de6dd4b4135a22e188f752dd84
Signed-off-by: Alistair Strachan <astrachan@google.com>
2019-05-14 17:34:12 -07:00
Alistair Strachan
8aa4b68023 ANDROID: Move from clang r346389b to r349610.
Bug: 123635022
Test: make ARCH=arm64 cuttlefish_defconfig && make ARCH=arm64
Test: make ARCH=x86_64 x86_64_cuttlefish_defconfig && make ARCH=x86_64
Change-Id: Icc02ea92c13435fa5a6ecd33d8878629762fd2f7
Signed-off-by: Alistair Strachan <astrachan@google.com>
2019-02-12 21:47:24 +00:00
Alistair Strachan
f1d799a76a ANDROID: Move from clang r328903 to r346389b.
Bug: 120439617
Bug: 120503084
Change-Id: I21bb183cac03753d1ba719a69305e2199c3f3227
Signed-off-by: Alistair Strachan <astrachan@google.com>
2018-12-07 15:38:20 -08:00
Alistair Strachan
e47f8ea78e ANDROID: build: cuttlefish: Upgrade clang to newer version.
The last upgrade introduced a new build failure, because it had a bug
which caused it to emit PLT relocations, certain types of which cannot
be handled by the reloc tool in the kernel.

See https://bugs.llvm.org/show_bug.cgi?id=36674 for more details.

Bug: 63889157
Change-Id: I813febdbacb0579abcb12dc7f2164cce1e2f5a26
Signed-off-by: Alistair Strachan <astrachan@google.com>
2018-05-22 18:04:12 -07:00
Alistair Strachan
3a9585de70 ANDROID: build: cuttlefish: Upgrade clang to newer version.
Use the same clang version as hikey-linaro.

Bug: 63889157
Change-Id: I6932d6149642d429086207e63aa8a8d5c2afd6f7
Signed-off-by: Alistair Strachan <astrachan@google.com>
2018-05-22 16:09:49 -07:00
Alistair Strachan
725ccdb009 ANDROID: build: cuttlefish: Fix path to clang.
Reconcile with changes made to the kernel manifest. Clang must come from
master because it was not usable for kernel builds in older branches of
the Android platform.

Bug: 63889157
Change-Id: Id0a080fc2f1cba495f37f26afa48e43e736b756a
Signed-off-by: Alistair Strachan <astrachan@google.com>
2018-05-22 11:41:33 -07:00
Wei Wang
592f302536 ANDROID: build.config: enforce trace_printk check
Bug: 79166848
Change-Id: I41d2fe57b377e305b4b68c30c98ee94643d142e4
Test: Build a kernel with trace_prink and see warning
Signed-off-by: Wei Wang <wvw@google.com>
2018-05-04 15:22:33 -07:00
Alistair Strachan
a6bbdb917e ANDROID: Add build server config for cuttlefish.
The build server config can be used with gcc or clang.
Specify CC=clang to build with clang.

Change-Id: Id346ab1489ecaaef8e9e66b084cc416dd0581f69
Signed-off-by: Alistair Strachan <astrachan@google.com>
2018-04-13 15:50:09 -07:00