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