xref: /aosp_15_r20/development/gsi/build_with_kernel/repack_kernels.sh (revision 90c8c64db3049935a07c6143d7fd006e26f8ecca)
1#!/bin/bash
2
3# Copyright (C) 2021 The Android Open Source Project
4#
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9#       http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16
17source development/gsi/build_with_kernel/repack_kernels_common.sh
18
19set -e
20
21prepare_lz4
22
23prepare_kernel_image \
24  "artifacts/common-android13-5_10-kernel_aarch64" \
25  "5.10" \
26  "arm64"
27
28prepare_kernel_image \
29  "artifacts/common-android13-5_10-kernel_debug_aarch64" \
30  "5.10" \
31  "arm64" \
32  "debug"
33
34prepare_kernel_modules \
35  "artifacts/common-android13-5_10-kernel_virt_aarch64" \
36  "5.10" \
37  "arm64"
38
39prepare_kernel_image \
40  "artifacts/common-android13-5_15-kernel_aarch64" \
41  "5.15" \
42  "arm64"
43
44prepare_kernel_image \
45  "artifacts/common-android13-5_15-kernel_debug_aarch64" \
46  "5.15" \
47  "arm64" \
48  "debug"
49
50prepare_kernel_modules \
51  "artifacts/common-android13-5_15-kernel_virt_aarch64" \
52  "5.15" \
53  "arm64"
54