summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Lezcano <daniel.lezcano@linaro.org>2021-06-08 08:29:29 +0200
committerDaniel Lezcano <daniel.lezcano@linaro.org>2021-06-08 08:30:56 +0200
commit0b8a15a9079c7d5d95e838a17922fb369efe5301 (patch)
tree087a723fb8c3be21ac06ee166afc02e2483e8904
parent06ba4a3adf2812f573cc858b21b8b574c81eb11f (diff)
Add Android.bpHEADmaster
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
-rw-r--r--Android.bp55
1 files changed, 55 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
new file mode 100644
index 0000000..4ee2ff8
--- /dev/null
+++ b/Android.bp
@@ -0,0 +1,55 @@
+// Copyright 2021 The Android Open Source Project
+
+package {
+ default_applicable_licenses: ["external_libthermal_license"],
+}
+
+// Added automatically by a large-scale-change that took the approach of
+// 'apply every license found to every target'. While this makes sure we respect
+// every license restriction, it may not be entirely correct.
+//
+// e.g. GPL in an MIT project might only apply to the contrib/ directory.
+//
+// Please consider splitting the single license below into multiple licenses,
+// taking care not to lose any license_kind information, and overriding the
+// default license using the 'licenses: [...]' property on targets as needed.
+//
+// For unused files, consider creating a 'fileGroup' with "//visibility:private"
+// to attach the license to, and including a comment whether the files may be
+// used in the current project.
+// See: http://go/android-license-faq
+license {
+ name: "external_libthermal_license",
+ visibility: [":__subpackages__"],
+ license_kinds: [
+ "SPDX-license-identifier-LGPL",
+ "SPDX-license-identifier-LGPL-2.1",
+ "SPDX-license-identifier-LGPL-3.0",
+ ],
+ license_text: [
+ "COPYING.txt",
+ ],
+}
+
+cc_library_headers {
+ name: "libthermal_headers",
+ export_include_dirs: ["include"],
+}
+
+cc_library_shared {
+ name: "libthermal",
+ srcs: [
+ "thermal.c",
+ "events.c",
+ "sampling.c",
+ "commands.c",
+ "netlink.c",
+ ],
+
+ cflags: [
+ "-Wall",
+ "-Werror",
+ "-Wno-sign-compare",
+ "-Wno-unused-parameter",
+ ],
+}