blob: dea3d82ff9d922eaa334741ccdd1ca5488be0528 [file] [log] [blame]
Herbert Xue4c0faf02025-03-18 14:56:15 +08001// Copyright (C) 2025 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15package {
16 // See: http://go/android-license-faq
17 default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
20java_genrule_host {
21 name: "otatools_package_dep_jars",
22 tools: ["soong_zip"],
23 compile_multilib: "first",
24 cmd: "mkdir -p $(genDir)/framework && " +
25 "cp $(in) $(genDir)/framework && " +
26 "$(location soong_zip) -o $(out) -C $(genDir) -D $(genDir)/framework",
27 srcs: [
28 ":apksigner",
29 ":boot_signer",
30 ":signapk",
31 ":verity_signer",
32 ],
33 out: ["otatools_package_dep_jars.zip"],
34}
35
36java_genrule_host {
37 name: "otatools_package",
38 tools: ["merge_zips"],
39 compile_multilib: "first",
40 cmd: "$(location merge_zips) $(out) $(in)",
41 srcs: [
42 ":otatools_package_cert_files",
43 ":otatools_package_dep_jars",
44 ":otatools_package_releasetools",
45 ],
46 // TODO: Rename as "otatools.zip" when the rest files are ready.
47 out: ["otatools_temp.zip"],
48 dist: {
49 targets: [
50 "otatools-package-temp",
51 ],
52 },
53}
54
55otatools_package_cert_files {
56 name: "otatools_package_cert_files",
57}