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 := \ |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 7 | etc/hosts |
| 8 | |
San Mehat | 2dfe490 | 2009-08-31 08:04:49 -0700 | [diff] [blame] | 9 | |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 10 | copy_to := $(addprefix $(TARGET_OUT)/,$(copy_from)) |
| 11 | copy_from := $(addprefix $(LOCAL_PATH)/,$(copy_from)) |
| 12 | |
| 13 | $(copy_to) : PRIVATE_MODULE := system_etcdir |
| 14 | $(copy_to) : $(TARGET_OUT)/% : $(LOCAL_PATH)/% | $(ACP) |
| 15 | $(transform-prebuilt-to-target) |
| 16 | |
| 17 | ALL_PREBUILT += $(copy_to) |
| 18 | |
| 19 | |
| 20 | # files that live under /... |
| 21 | |
| 22 | # Only copy init.rc if the target doesn't have its own. |
| 23 | ifneq ($(TARGET_PROVIDES_INIT_RC),true) |
| 24 | file := $(TARGET_ROOT_OUT)/init.rc |
| 25 | $(file) : $(LOCAL_PATH)/init.rc | $(ACP) |
| 26 | $(transform-prebuilt-to-target) |
| 27 | ALL_PREBUILT += $(file) |
Colin Cross | dc61c9c | 2010-04-09 12:39:16 -0700 | [diff] [blame] | 28 | $(INSTALLED_RAMDISK_TARGET): $(file) |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 29 | endif |
| 30 | |
Colin Cross | 44b65d0 | 2010-04-20 14:32:50 -0700 | [diff] [blame] | 31 | file := $(TARGET_ROOT_OUT)/ueventd.rc |
| 32 | $(file) : $(LOCAL_PATH)/ueventd.rc | $(ACP) |
| 33 | $(transform-prebuilt-to-target) |
| 34 | ALL_PREBUILT += $(file) |
| 35 | $(INSTALLED_RAMDISK_TARGET): $(file) |
| 36 | |
Mike Lockwood | 4f5d517 | 2012-04-04 11:26:59 -0700 | [diff] [blame] | 37 | # init.usb.rc is handled by build/target/product/core.rc |
| 38 | |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 39 | |
| 40 | # create some directories (some are mount points) |
| 41 | DIRS := $(addprefix $(TARGET_ROOT_OUT)/, \ |
| 42 | sbin \ |
| 43 | dev \ |
| 44 | proc \ |
| 45 | sys \ |
| 46 | system \ |
| 47 | data \ |
| 48 | ) \ |
| 49 | $(TARGET_OUT_DATA) |
| 50 | |
| 51 | $(DIRS): |
| 52 | @echo Directory: $@ |
| 53 | @mkdir -p $@ |
| 54 | |
| 55 | ALL_PREBUILT += $(DIRS) |