The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 1 | LOCAL_PATH:= $(call my-dir) |
| 2 | include $(CLEAR_VARS) |
| 3 | |
| 4 | # files that live under /system/etc/... |
| 5 | |
| 6 | copy_from := \ |
| 7 | etc/dbus.conf \ |
| 8 | etc/init.goldfish.sh \ |
| 9 | etc/hosts |
| 10 | |
| 11 | dont_copy := \ |
| 12 | etc/init.gprs-pppd \ |
| 13 | etc/ppp/chap-secrets \ |
| 14 | etc/ppp/ip-down \ |
| 15 | etc/ppp/ip-up |
| 16 | |
| 17 | copy_to := $(addprefix $(TARGET_OUT)/,$(copy_from)) |
| 18 | copy_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 | |
| 24 | ALL_PREBUILT += $(copy_to) |
| 25 | |
| 26 | |
| 27 | # files that live under /... |
| 28 | |
| 29 | # Only copy init.rc if the target doesn't have its own. |
| 30 | ifneq ($(TARGET_PROVIDES_INIT_RC),true) |
| 31 | file := $(TARGET_ROOT_OUT)/init.rc |
| 32 | $(file) : $(LOCAL_PATH)/init.rc | $(ACP) |
| 33 | $(transform-prebuilt-to-target) |
| 34 | ALL_PREBUILT += $(file) |
| 35 | endif |
| 36 | |
| 37 | file := $(TARGET_ROOT_OUT)/init.goldfish.rc |
| 38 | $(file) : $(LOCAL_PATH)/etc/init.goldfish.rc | $(ACP) |
| 39 | $(transform-prebuilt-to-target) |
| 40 | ALL_PREBUILT += $(file) |
| 41 | |
| 42 | |
| 43 | # create some directories (some are mount points) |
| 44 | DIRS := $(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 | |
| 58 | ALL_PREBUILT += $(DIRS) |