aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMatthias Maennich <maennich@google.com>2020-06-23 11:05:49 +0200
committerMatthias Maennich <maennich@google.com>2020-09-18 22:00:53 +0100
commita55c49f0c016a1439f698f48d0cd8d328e4ae398 (patch)
tree7b8f72408f305bab97f94f65ee8d21a9be65e8c9 /lib
parent0b6325a647fb8c6bc6f6d9c38b9d302a15d8915b (diff)
downloadplatform_external_elfutils-a55c49f0c016a1439f698f48d0cd8d328e4ae398.tar.gz
platform_external_elfutils-a55c49f0c016a1439f698f48d0cd8d328e4ae398.tar.bz2
platform_external_elfutils-a55c49f0c016a1439f698f48d0cd8d328e4ae398.zip
Add build description for libdw
This adds build description for more elfutils libraries in order support users that require libdw, such as pahole and libabigail. While the remaining libraries could be considered standalone, they are not really suitable to be built standalone in soong as they have circular dependencies and are usually anyway built as one unit. Hence only build libdw and include all libraries into it. This then works as an extension for libelf. The generated files in libcpu are now all generated from sources. No really significant generated file is now checked in. Left are config.h and version.h, which are generated at update time via post_update.sh. The build rules for the generated files have been reverse engineered from the autotools build. This mostly making m4, bison and flex work what we want them to, but builtin rules in soong made that possible without being overly verbose. An additional library - libeu - needed to be added as a generator dependency. In order to not overload the main Android.bp with all the little generator details, subpackages have been reintroduced and visibility adjusted accordingly. Bug: 159682555 Signed-off-by: Matthias Maennich <maennich@google.com> Change-Id: I32e6523b3d604de0ead354b9b325fa492b680cec
Diffstat (limited to 'lib')
-rw-r--r--lib/Android.bp7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Android.bp b/lib/Android.bp
new file mode 100644
index 00000000..31647ee5
--- /dev/null
+++ b/lib/Android.bp
@@ -0,0 +1,7 @@
+cc_library_host_static {
+ name: "libeu",
+ defaults: ["elfutils_defaults"],
+ srcs: ["*.c"],
+ exclude_srcs: ["dynamicsizehash*.c"],
+}
+