Merge "Pack all boot images in a zip for certification"

This commit is contained in:
Treehugger Robot
2022-01-05 03:48:08 +00:00
committed by Gerrit Code Review
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}
done
}
function pack_boot_for_certification
{
local file=boot.zip
local dist=$1
pushd ${dist}
rm -f ${file}
zip ${file} boot*.img
popd
}