Add dump_hals_for_release.
Dumps HALs for each release by analyzing
- current.txt
- prebuilt_hashes/*.txt
- hardware/interfaces
Test: prebuilt_hashes/dump_hals_for_release.py \
--pretty \
--package-root android.hardware:. \
-- current.txt prebuilt_hashes/26.txt \
prebuilt_hashes/27.txt prebuilt_hashes/28.txt
Bug: 116165266
Change-Id: I10279daa0b51e378c5b0f42a1eaf9f30f0b8dd56
diff --git a/prebuilt_hashes/Android.bp b/prebuilt_hashes/Android.bp
new file mode 100644
index 0000000..4692b76
--- /dev/null
+++ b/prebuilt_hashes/Android.bp
@@ -0,0 +1,30 @@
+// Copyright (C) 2018 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+python_binary_host {
+ name: "dump_hals_for_release",
+
+ srcs: [
+ "dump_hals_for_release.py",
+ ],
+
+ version: {
+ py2: {
+ enabled: true,
+ },
+ py3: {
+ enabled: false,
+ },
+ },
+}