1// Copyright 2020 Google Inc. All rights reserved. 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15package { 16 // See: http://go/android-license-faq 17 default_applicable_licenses: ["Android-Apache-2.0"], 18} 19 20filegroup { 21 name: "vndk_lib_lists", 22 srcs: [ 23 "*.txt", 24 ], 25} 26 27prebuilt_etc { 28 name: "gsi_skip_mount.cfg", 29 filename: "skip_mount.cfg", 30 src: "gsi_skip_mount.cfg", 31 32 system_ext_specific: true, 33 relative_install_path: "init/config", 34 35 required: ["gsi_skip_mount_compat_symlink"], 36} 37 38// Adds a symlink under /system/etc/init/config pointing to /system/system_ext/etc/init/config 39// because first-stage init in Android 10.0 will read the skip_mount.cfg from /system/etc/* after 40// chroot /system. 41// TODO: remove this symlink when no need to support new GSI on Android 10. 42// The actual file needs to be under /system/system_ext because it's GSI-specific and does not 43// belong to core CSI. 44install_symlink { 45 name: "gsi_skip_mount_compat_symlink", 46 installed_location: "etc/init/config", 47 symlink_target: "/system/system_ext/etc/init/config", 48} 49