Commit Graph

18 Commits

Author SHA1 Message Date
Ram Muthiah
f2684370d3 ANDROID: GKI: Disable symbol stripping
Temporary workaround to enable arm64 gki devices to boot.

Virtual devices failed to boot with 5.10 ARM64 GKI because symbol
stripping has removed tracepoint symbols pertaining to xdp which are
included in the symbol allowlist.

klog excerpt for this error.
init: Loading module /lib/modules/virtio_net.ko with args ""
virtio_net: disagrees about version of symbol __traceiter_xdp_exception
virtio_net: Unknown symbol __traceiter_xdp_exception (err -22)
virtio_net: disagrees about version of symbol __tracepoint_xdp_exception
virtio_net: Unknown symbol __tracepoint_xdp_exception (err -22)
init: Failed to insmod '/lib/modules/virtio_net.ko' with args ''
init: LoadWithAliases was unable to load virtio_net
init: Failed to load kernel modules

Bug: 176831960
Test: Treehugger
Signed-off-by: Ram Muthiah <rammuthiah@google.com>
Change-Id: If5b6fd12ce1c783966ff4ed0a8bc141d077c71a3
2021-01-07 19:39:38 +00:00
Ram Muthiah
e7579f4acd ANDROID: renamed virtual device symbol list
Formerly cuttlefish and goldfish had separate symbol lists.
The defconfigs and symbol lists were unified recently. However, the
symbol lists should conform to this naming convention.

Generated with
BUILD_CONFIG=common/build.config.gki.aarch64 build/build.sh;
BUILD_CONFIG= \
common-modules/virtual-device/build.config.virtual_device.aarch64 \
build/build.sh;
build/abi/extract_symbols out/android12-5.10/dist/ \
--whitelist common/android/abi_gki_aarch64_virtual_device

Test: Treehugger
Bug: 176831960
Signed-off-by: Ram Muthiah <rammuthiah@google.com>
Change-Id: I21755fbd3e9ab6319fdf4fcd06e501d722fb7242
2021-01-06 21:26:57 +00:00
Matthias Maennich
3106314066 ANDROID: add initial symbol list for cuttlefish
Generated with:

BUILD_CONFIG=common-modules/virtual-device/build.config.cuttlefish.aarch64 build/build_abi.sh -s

Bug: 175534863
Signed-off-by: Matthias Maennich <maennich@google.com>
Change-Id: I7841f2a2298bc1ddae8039006f8cddf374ff0f19
2020-12-16 11:36:20 +00:00
Matthias Maennich
895a2f809a ANDROID: add initial symbol list for db845c
Generated with:
  BUILD_CONFIG=common/build.config.db845c build/build_abi.sh -s

Bug: 175534863
Signed-off-by: Matthias Maennich <maennich@google.com>
Change-Id: I51a1981556da3439618dfc5ad40e8927a53434ec
2020-12-16 11:36:20 +00:00
Matthias Maennich
33a674bd42 ANDROID: create initial symbol lists for android12-5.10
Bug: 175534863
Signed-off-by: Matthias Maennich <maennich@google.com>
Change-Id: I99bb33802b001bbe9e0adb96b52ba81b9df3b30b
2020-12-16 11:36:20 +00:00
Matthias Maennich
da5e68a82d ANDROID: disable BTF generation
This is to allow LTO on this branch which currently is incompatible with
pahole's BTF extraction mechanism.

Bug: 168714651
Signed-off-by: Matthias Maennich <maennich@google.com>
Change-Id: I8eb00db99fa97674155e47cf5f1e01ff651375ba
2020-12-15 09:42:07 +00:00
Matthias Maennich
ee9e175152 ANDROID: Enable generation of BTF type information
Enable building vmlinux.btf (in addition to vmlinux). The original
binaries are not affected.

Bug: 157508131
Signed-off-by: Matthias Maennich <maennich@google.com>
Change-Id: I37e95edacf2df62d5b9680296e797a1e0949bfb3
2020-11-02 09:39:41 +00:00
Will McVicker
67a1d5d3be 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/build.config.db845c
        common/build.config.hikey960
        cuttlefish-modules/build.config.cuttlefish.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)
[elavila: resolve conflicts]
Signed-off-by: J. Avila <elavila@google.com>
2020-08-31 15:20:37 +00:00
Matthias Maennich
e139341e41 ANDROID: Remove ABI Monitoring on android-mainline
We stabilized the ABI tooling on the GKI branches by now. There is no
need anymore to keep the ABI Monitoring alive on this branch. It rather
causes friction as the ABI changes all the time and the purpose of
battletesting the tooling is not as valid anymore as before.
(Also, the representation diffs slowly blow up the repository.)

Bug: 111449103
Change-Id: I86f0baf48f2f183f25aa63e1f560e8b767e7e03f
Signed-off-by: Matthias Maennich <maennich@google.com>
2020-01-27 13:53:52 +00:00
Matthias Maennich
ac049f22f1 ANDROID: add initial ABI whitelist for android-mainline
Bug: 145692847
Change-Id: I52e4b9b6bc025a86eb4f75bc7643a69b1e5c0d93
Signed-off-by: Matthias Maennich <maennich@google.com>
2019-12-18 12:57:43 +00:00
Matthias Maennich
6e792fdbdf 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-08-30 14:55:29 +01:00
Ram Muthiah
2dae5b0e71 Adding GKI Ramdisk to gki config
Test: Treehugger
Bug: 132629930
Change-Id: I3773d828cea4ab0ea8cfaef8a533a5ae925f037c
Signed-of-by: Ram Muthiah <rammuthiah@google.com>
2019-08-14 18:19:21 +00:00
Matthias Maennich
cf045d8837 ANDROID: build configs: switch prebuilt path location
Move to a kernel specific prebuilt path.

Bug: 135922132
Change-Id: I8755f8f0154eecc86ad598be7a7811e9d8f068ed
Signed-off-by: Matthias Maennich <maennich@google.com>
2019-07-23 15:15:32 +01:00
Matthias Maennich
d5458786d8 ANDROID: gki/cuttlefish defconfigs: use prebuilt build-tools
Rather than relying on the hosts build tools, use a set of prebuilt
build-tools. These are tools like awk, cat, cp, hostname, python, rm,
sed, etc.

Bug: 135922132
Change-Id: Ie6b0bd208c684c9f153eb2f0bfac4712e02e8e05
Signed-off-by: Matthias Maennich <maennich@google.com>
2019-06-24 18:10:19 +01:00
Matthias Maennich
31835ae1d7 ANDROID: ABI out: Use the extension .xml rather then .out
Bug: 133501930
Change-Id: I7ddae7a56593389b0ab13ff765d4e7329ecf5f8d
Signed-off-by: Matthias Maennich <maennich@google.com>
2019-05-29 10:10:14 +01:00
Matthias Maennich
553049f81c ANDROID: Initial abi_gki_aarch64 definition
abi_gki_aarch64.out contains the ABI definition corresponding to the
current sources and the configuration referred to in
build.config.gki.aarch64.

As part of the build.sh tooling it will be copied over into the
distribution for further inspection / analysis. See
https://android-review.googlesource.com/970737 for details on that
process.

This is the initial version of this definition to allow implementation
of workflows around it. It is not considered stable at this point. It is
expected that it will break with significant changes from either
upstream or with changes implemented specific for this tree. Automated
validation is supposed to catch differences between this definition and
the actual binary before they are introduced into the tree. At a later
stage this validation should be part of build.sh itself.

Bug: 133501930
Change-Id: I815940ee13037ad450547e0ab0786e37f0b83d9b
Signed-off-by: Matthias Maennich <maennich@google.com>
2019-05-28 12:38:16 +01:00
Alistair Strachan
bd2c781b52 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:23:57 -07:00
Matthias Maennich
4543809cd7 ANDROID: Expose gki_defconfig to build.config
With this in place, the gki_defconfig can be build with build.sh
machinery.

Bug: 132113225
Change-Id: I4c623a866cd41aa4587e4fab1c4e5254f6680542
Signed-off-by: Matthias Maennich <maennich@google.com>
2019-05-14 17:23:56 -07:00