• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
19$(eval $(call declare-1p-copy-files,device/generic/goldfish/data,))
20$(eval $(call declare-1p-copy-files,device/generic/goldfish/input,))
21$(eval $(call declare-1p-copy-files,device/generic/goldfish/wifi,))
22$(eval $(call declare-1p-copy-files,device/generic/goldfish/camera,))
23$(eval $(call declare-1p-copy-files,device/generic/goldfish,hals.conf))
24$(eval $(call declare-1p-copy-files,device/generic/goldfish,init.qemu-adb-keys.sh))
25$(eval $(call declare-1p-copy-files,device/generic/goldfish,init.system_ext.rc))
26$(eval $(call declare-1p-copy-files,device/generic/goldfish,.json))
27$(eval $(call declare-1p-copy-files,device/generic/goldfish,ueventd.rc))
28$(eval $(call declare-1p-copy-files,device/generic/goldfish,wpa_supplicant.conf))
29$(eval $(call declare-1p-copy-files,device/generic/goldfish,media_profiles_V1_0.xml))
30$(eval $(call declare-1p-copy-files,device/generic/goldfish,init.ranchu.rc))
31$(eval $(call declare-1p-copy-files,device/generic/goldfish,fstab.ranchu))
32$(eval $(call declare-1p-copy-files,device/generic/goldfish,display_settings.xml))
33$(eval $(call declare-1p-copy-files,device/generic/goldfish,display_settings_freeform.xml))
34$(eval $(call declare-1p-copy-files,device/generic/goldfish,device_state_configuration.xml))
35$(eval $(call declare-1p-copy-files,device/generic/goldfish,init.ranchu-core.sh))
36$(eval $(call declare-1p-copy-files,device/generic/goldfish,init.ranchu-net.sh))
37$(eval $(call declare-1p-copy-files,device/generic/goldfish,task_profiles.json))
38$(eval $(call declare-1p-copy-files,device/generic/goldfish,audio_policy_configuration.xml))
39
40ifeq ($(BUILD_QEMU_IMAGES),true)
41  QEMU_CUSTOMIZATIONS := true
42endif
43
44ifeq ($(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
59endif
60