Android.mk revision dd7bc3319deb2b77c5d07a51b7d6cd7e11b5beb0
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/init.goldfish.sh \ 9 etc/hosts 10 11dont_copy := \ 12 etc/init.gprs-pppd \ 13 etc/ppp/chap-secrets \ 14 etc/ppp/ip-down \ 15 etc/ppp/ip-up 16 17copy_to := $(addprefix $(TARGET_OUT)/,$(copy_from)) 18copy_from := $(addprefix $(LOCAL_PATH)/,$(copy_from)) 19 20$(copy_to) : PRIVATE_MODULE := system_etcdir 21$(copy_to) : $(TARGET_OUT)/% : $(LOCAL_PATH)/% | $(ACP) 22 $(transform-prebuilt-to-target) 23 24ALL_PREBUILT += $(copy_to) 25 26 27# files that live under /... 28 29# Only copy init.rc if the target doesn't have its own. 30ifneq ($(TARGET_PROVIDES_INIT_RC),true) 31file := $(TARGET_ROOT_OUT)/init.rc 32$(file) : $(LOCAL_PATH)/init.rc | $(ACP) 33 $(transform-prebuilt-to-target) 34ALL_PREBUILT += $(file) 35endif 36 37file := $(TARGET_ROOT_OUT)/init.goldfish.rc 38$(file) : $(LOCAL_PATH)/etc/init.goldfish.rc | $(ACP) 39 $(transform-prebuilt-to-target) 40ALL_PREBUILT += $(file) 41 42 43# create some directories (some are mount points) 44DIRS := $(addprefix $(TARGET_ROOT_OUT)/, \ 45 sbin \ 46 dev \ 47 proc \ 48 sys \ 49 system \ 50 data \ 51 ) \ 52 $(TARGET_OUT_DATA) 53 54$(DIRS): 55 @echo Directory: $@ 56 @mkdir -p $@ 57 58ALL_PREBUILT += $(DIRS) 59