LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)# files that live under /system/etc/...copy_from := \
etc/dbus.conf \
etc/hosts 
ifeq ($(TARGET_PRODUCT),generic)
copy_from += etc/vold.conf
endif# the /system/etc/init.goldfish.sh is needed to enable emulator support
# in the system image. In theory, we don't need these for -user builds
# which are device-specific. However, these builds require at the moment
# to run the dex pre-optimization *in* the emulator. So keep the file until
# we are capable of running dex preopt on the host.
#
copy_from += etc/init.goldfish.shcopy_to := $(addprefix $(TARGET_OUT)/,$(copy_from))
copy_from := $(addprefix $(LOCAL_PATH)/,$(copy_from))$(copy_to) : PRIVATE_MODULE := system_etcdir
$(copy_to) : $(TARGET_OUT)/% : $(LOCAL_PATH)/% | $(ACP)
$(transform-prebuilt-to-target)ALL_PREBUILT += $(copy_to)上面的参考