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)
It's good to move the abi files out of the root kernel directory, so
move them to android/ to make it obvious these are add-on things, not
anything that is upstream.
Bug: 155573384
Cc: Matthias Maennich <maennich@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I9f6c2269a1c4e8e4233971adc805cb7584d455f9
No need for "_whitelist" to be on the abi symbol files, it's just a
list of abi symbols we are going to support.
Bug: 160578303
Cc: Matthias Maennich <maennich@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I0e4c449550f41ff364a09a2987e877a62b986be7
This will ensure we get a build-time error if the whitelist does not
match the KMI resulting from a build. This indicates that some
whitelisted symbols are not actually exported, or that we export
non-whitelisted symbols. This is non-desirable either way.
Bug: 151133259
Bug: 149980028
Signed-off-by: Quentin Perret <qperret@google.com>
Change-Id: Ifaa1ae8a15f09f3791ed4487920d7751062fa210
This adds a whitelist for the symbols used by the cuttlefish device and
updates the ABI representation accordingly.
These are the steps:
1) Perform a clean device build (Cuttlefish):
$ BUILD_CONFIG=common/build.config.cuttlefish.aarch64 build/build.sh
2) Extract the ABI whitelist for this device
$ build/abi/extract_symbols out/android-4.19/dist/ --whitelist common/abi_gki_aarch64_cuttlefish_whitelist
3) Add the whitelist to the list of ADDITIONAL_KMI_WHITELISTS
4) Update the ABI representation for the GKI
$ BUILD_CONFIG=common/build.config.gki.aarch64 build/build_abi.sh --update
Bug: 147894960
Change-Id: I433b200dd5b79bf9ee9adeea1db7b66c571f6539
Signed-off-by: Matthias Maennich <maennich@google.com>
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>
In preparation of 4.19-gki-dev branch deprecation
Bug: 138132040
Test: BUILD_CONFIG=common/build.config.gki.aarch64 build/build_abi.sh
Test: BUILD_CONFIG=common/build.config.cuttlefish.x86_64 build/build.sh
Change-Id: I05311ff05b1904240263204835084c6a5e375cd2
Signed-off-by: Tri Vo <trong@google.com>