1#
2# Copyright (C) 2013 The Android Open Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8#      http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17PRODUCT_COPY_FILES += \
18    kernel/prebuilts/4.19/arm64/kernel-4.19-gz:kernel-4.19-gz \
19    kernel/prebuilts/5.4/arm64/kernel-5.4:kernel-5.4 \
20    kernel/prebuilts/5.4/arm64/kernel-5.4-gz:kernel-5.4-gz \
21    kernel/prebuilts/5.4/arm64/kernel-5.4-lz4:kernel-5.4-lz4 \
22    kernel/prebuilts/5.10/arm64/kernel-5.10:kernel-5.10 \
23    kernel/prebuilts/5.10/arm64/kernel-5.10-gz:kernel-5.10-gz \
24    kernel/prebuilts/5.10/arm64/kernel-5.10-lz4:kernel-5.10-lz4 \
25
26$(call dist-for-goals, dist_files, kernel/prebuilts/4.19/arm64/prebuilt-info.txt:kernel/4.19/prebuilt-info.txt)
27$(call dist-for-goals, dist_files, kernel/prebuilts/5.4/arm64/prebuilt-info.txt:kernel/5.4/prebuilt-info.txt)
28$(call dist-for-goals, dist_files, kernel/prebuilts/5.10/arm64/prebuilt-info.txt:kernel/5.10/prebuilt-info.txt)
29
30ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT)))
31PRODUCT_COPY_FILES += \
32    kernel/prebuilts/4.19/arm64/kernel-4.19-gz-allsyms:kernel-4.19-gz-allsyms \
33    kernel/prebuilts/5.4/arm64/kernel-5.4-allsyms:kernel-5.4-allsyms \
34    kernel/prebuilts/5.4/arm64/kernel-5.4-gz-allsyms:kernel-5.4-gz-allsyms \
35    kernel/prebuilts/5.4/arm64/kernel-5.4-lz4-allsyms:kernel-5.4-lz4-allsyms \
36    kernel/prebuilts/5.10/arm64/kernel-5.10-allsyms:kernel-5.10-allsyms \
37    kernel/prebuilts/5.10/arm64/kernel-5.10-gz-allsyms:kernel-5.10-gz-allsyms \
38    kernel/prebuilts/5.10/arm64/kernel-5.10-lz4-allsyms:kernel-5.10-lz4-allsyms \
39
40endif
41
42PRODUCT_BUILD_VENDOR_BOOT_IMAGE := false
43PRODUCT_BUILD_RECOVERY_IMAGE := false
44
45$(call inherit-product, $(SRC_TARGET_DIR)/product/generic_ramdisk.mk)
46