1# 2# Copyright 2017 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 17LOCAL_PATH := $(call my-dir) 18 19ifneq ($(filter $(LOCAL_PATH),$(PRODUCT_SOONG_NAMESPACES)),) 20 $(eval $(call declare-1p-copy-files,device/generic/goldfish/data,)) 21 $(eval $(call declare-1p-copy-files,device/generic/goldfish/input,)) 22 $(eval $(call declare-1p-copy-files,device/generic/goldfish/wifi,)) 23 $(eval $(call declare-1p-copy-files,device/generic/goldfish/camera,)) 24 $(eval $(call declare-1p-copy-files,device/generic/goldfish,hals.conf)) 25 $(eval $(call declare-1p-copy-files,device/generic/goldfish,init.qemu-adb-keys.sh)) 26 $(eval $(call declare-1p-copy-files,device/generic/goldfish,init.system_ext.rc)) 27 $(eval $(call declare-1p-copy-files,device/generic/goldfish,.json)) 28 $(eval $(call declare-1p-copy-files,device/generic/goldfish,ueventd.rc)) 29 $(eval $(call declare-1p-copy-files,device/generic/goldfish,wpa_supplicant.conf)) 30 $(eval $(call declare-1p-copy-files,device/generic/goldfish,media_profiles_V1_0.xml)) 31 $(eval $(call declare-1p-copy-files,device/generic/goldfish,init.ranchu.rc)) 32 $(eval $(call declare-1p-copy-files,device/generic/goldfish,fstab.ranchu)) 33 $(eval $(call declare-1p-copy-files,device/generic/goldfish,display_settings.xml)) 34 $(eval $(call declare-1p-copy-files,device/generic/goldfish,display_settings_freeform.xml)) 35 $(eval $(call declare-1p-copy-files,device/generic/goldfish,device_state_configuration.xml)) 36 $(eval $(call declare-1p-copy-files,device/generic/goldfish,init.ranchu-core.sh)) 37 $(eval $(call declare-1p-copy-files,device/generic/goldfish,init.ranchu-net.sh)) 38 $(eval $(call declare-1p-copy-files,device/generic/goldfish,audio_policy_configuration.xml)) 39 40 ifeq ($(BUILD_QEMU_IMAGES),true) 41 QEMU_CUSTOMIZATIONS := true 42 endif 43 44 ifeq ($(QEMU_CUSTOMIZATIONS),true) 45 INSTALLED_EMULATOR_INFO_TXT_TARGET := $(PRODUCT_OUT)/emulator-info.txt 46 emulator_info_txt := $(wildcard ${LOCAL_PATH}/emulator-info.txt) 47 48$(INSTALLED_EMULATOR_INFO_TXT_TARGET): $(emulator_info_txt) 49 $(call pretty,"Generated: ($@)") 50 $(hide) grep -v '#' $< > $@ 51 52 $(call dist-for-goals, dist_files, $(INSTALLED_EMULATOR_INFO_TXT_TARGET)) 53 $(call dist-for-goals, sdk, $(INSTALLED_EMULATOR_INFO_TXT_TARGET)) 54 55 subdir_makefiles=$(call first-makefiles-under,$(LOCAL_PATH)) 56 $(foreach mk,$(subdir_makefiles),$(info including $(mk) ...)$(eval include $(mk))) 57 58 include device/generic/goldfish/tasks/emu_img_zip.mk 59 endif 60endif 61