Merge "Pack all boot images in a zip for certification" am: 9e8e85292b

Original change: https://android-review.googlesource.com/c/platform/development/+/1936022

Change-Id: I745b01dfb5addf6556f13c1b8f5d1f42f3106779
This commit is contained in:
Treehugger Robot
2022-01-05 04:00:46 +00:00
committed by Automerger Merge Worker
2 changed files with 31 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
#!/bin/bash
# Copyright (C) 2022 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.
source development/gsi/build_with_kernel/repack_kernels_common.sh
set -e
pack_boot_for_certification ${DIST_DIR}

View File

@@ -151,3 +151,13 @@ function update_kernel_module_prebuilts_with_artifact
cp -f ${x} ${prebuilts_dir} cp -f ${x} ${prebuilts_dir}
done done
} }
function pack_boot_for_certification
{
local file=boot.zip
local dist=$1
pushd ${dist}
rm -f ${file}
zip ${file} boot*.img
popd
}