1LOCAL_PATH:= $(call my-dir) 2include $(CLEAR_VARS) 3 4# files that live under /system/etc/... 5 6copy_from := \ 7 etc/dbus.conf \ 8 etc/hosts 9 10ifeq ($(TARGET_PRODUCT),full) 11copy_from += etc/vold.fstab 12endif 13 14ifeq ($(TARGET_PRODUCT),full_x86) 15copy_from += etc/vold.fstab 16endif 17 18ifeq ($(TARGET_PRODUCT),full_mips) 19copy_from += etc/vold.fstab 20endif 21 22# the /system/etc/init.goldfish.sh is needed to enable emulator support 23# in the system image. In theory, we don't need these for -user builds 24# which are device-specific. However, these builds require at the moment 25# to run the dex pre-optimization *in* the emulator. So keep the file until 26# we are capable of running dex preopt on the host. 27# 28copy_from += etc/init.goldfish.sh 29 30copy_to := $(addprefix $(TARGET_OUT)/,$(copy_from)) 31copy_from := $(addprefix $(LOCAL_PATH)/,$(copy_from)) 32 33$(copy_to) : PRIVATE_MODULE := system_etcdir 34$(copy_to) : $(TARGET_OUT)/% : $(LOCAL_PATH)/% | $(ACP) 35 $(transform-prebuilt-to-target) 36 37ALL_PREBUILT += $(copy_to) 38 39 40# files that live under /... 41 42# Only copy init.rc if the target doesn't have its own. 43ifneq ($(TARGET_PROVIDES_INIT_RC),true) 44file := $(TARGET_ROOT_OUT)/init.rc 45$(file) : $(LOCAL_PATH)/init.rc | $(ACP) 46 $(transform-prebuilt-to-target) 47ALL_PREBUILT += $(file) 48$(INSTALLED_RAMDISK_TARGET): $(file) 49endif 50 51file := $(TARGET_ROOT_OUT)/ueventd.rc 52$(file) : $(LOCAL_PATH)/ueventd.rc | $(ACP) 53 $(transform-prebuilt-to-target) 54ALL_PREBUILT += $(file) 55$(INSTALLED_RAMDISK_TARGET): $(file) 56 57# init.usb.rc is handled by build/target/product/core.rc 58 59# Just like /system/etc/init.goldfish.sh, the /init.godlfish.rc is here 60# to allow -user builds to properly run the dex pre-optimization pass in 61# the emulator. 62file := $(TARGET_ROOT_OUT)/init.goldfish.rc 63$(file) : $(LOCAL_PATH)/etc/init.goldfish.rc | $(ACP) 64 $(transform-prebuilt-to-target) 65ALL_PREBUILT += $(file) 66$(INSTALLED_RAMDISK_TARGET): $(file) 67 68file := $(TARGET_ROOT_OUT)/ueventd.goldfish.rc 69$(file) : $(LOCAL_PATH)/etc/ueventd.goldfish.rc | $(ACP) 70 $(transform-prebuilt-to-target) 71ALL_PREBUILT += $(file) 72$(INSTALLED_RAMDISK_TARGET): $(file) 73 74# create some directories (some are mount points) 75DIRS := $(addprefix $(TARGET_ROOT_OUT)/, \ 76 sbin \ 77 dev \ 78 proc \ 79 sys \ 80 system \ 81 data \ 82 ) \ 83 $(TARGET_OUT_DATA) 84 85$(DIRS): 86 @echo Directory: $@ 87 @mkdir -p $@ 88 89ALL_PREBUILT += $(DIRS) 90