xref: /aosp_15_r20/build/make/target/product/generic_ramdisk.mk (revision 9e94795a3d4ef5c1d47486f9a02bb378756cea8a)
1#
2# Copyright (C) 2020 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
17# This makefile installs contents of the generic ramdisk.
18# Inherit from this makefile to declare that this product uses generic ramdisk.
19# This makefile checks that other makefiles must not install things to the
20# ramdisk.
21
22# Ramdisk
23PRODUCT_PACKAGES += \
24    init_first_stage \
25    snapuserd_ramdisk \
26    ramdisk-build.prop \
27
28# Debug ramdisk
29PRODUCT_PACKAGES += \
30    adb_debug.prop \
31    userdebug_plat_sepolicy.cil \
32
33
34# For targets using dedicated recovery partition, generic ramdisk
35# might be relocated to recovery partition
36_my_paths := \
37    $(TARGET_COPY_OUT_RAMDISK)/ \
38    $(TARGET_COPY_OUT_DEBUG_RAMDISK)/ \
39    $(TARGET_COPY_OUT_RECOVERY)/root/first_stage_ramdisk/system \
40
41
42# We use the "relaxed" version here because tzdata / tz_version is only produced
43# by this makefile on a subset of devices.
44# TODO: remove this
45$(call require-artifacts-in-path-relaxed, $(_my_paths), )
46