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 \ |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 8 | etc/hosts |
| 9 | |
Ravi K Yenduri | 2ee12e7 | 2010-07-15 09:24:39 -0500 | [diff] [blame] | 10 | ifeq ($(TARGET_PRODUCT),full) |
San Mehat | 5184fc5 | 2009-12-17 07:13:16 -0800 | [diff] [blame] | 11 | copy_from += etc/vold.fstab |
David 'Digit' Turner | ca8177d | 2009-09-08 15:55:36 -0700 | [diff] [blame] | 12 | endif |
| 13 | |
Jun Nakajima | 0db0921 | 2011-02-13 21:10:40 -0800 | [diff] [blame] | 14 | ifeq ($(TARGET_PRODUCT),full_x86) |
| 15 | copy_from += etc/vold.fstab |
| 16 | endif |
| 17 | |
Bhanu Chetlapalli | a7fbf8a | 2012-06-07 15:15:52 -0700 | [diff] [blame] | 18 | ifeq ($(TARGET_PRODUCT),full_mips) |
| 19 | copy_from += etc/vold.fstab |
| 20 | endif |
| 21 | |
David 'Digit' Turner | a0c98ef | 2009-09-23 11:19:20 -0700 | [diff] [blame] | 22 | # the /system/etc/init.goldfish.sh is needed to enable emulator support |
| 23 | # in the system image. In theory, we don't need these for -user builds |
| 24 | # which are device-specific. However, these builds require at the moment |
| 25 | # to run the dex pre-optimization *in* the emulator. So keep the file until |
| 26 | # we are capable of running dex preopt on the host. |
| 27 | # |
David 'Digit' Turner | ca8177d | 2009-09-08 15:55:36 -0700 | [diff] [blame] | 28 | copy_from += etc/init.goldfish.sh |
San Mehat | 2dfe490 | 2009-08-31 08:04:49 -0700 | [diff] [blame] | 29 | |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 30 | copy_to := $(addprefix $(TARGET_OUT)/,$(copy_from)) |
| 31 | copy_from := $(addprefix $(LOCAL_PATH)/,$(copy_from)) |
| 32 | |
| 33 | $(copy_to) : PRIVATE_MODULE := system_etcdir |
| 34 | $(copy_to) : $(TARGET_OUT)/% : $(LOCAL_PATH)/% | $(ACP) |
| 35 | $(transform-prebuilt-to-target) |
| 36 | |
| 37 | ALL_PREBUILT += $(copy_to) |
| 38 | |
| 39 | |
| 40 | # files that live under /... |
| 41 | |
| 42 | # Only copy init.rc if the target doesn't have its own. |
| 43 | ifneq ($(TARGET_PROVIDES_INIT_RC),true) |
| 44 | file := $(TARGET_ROOT_OUT)/init.rc |
| 45 | $(file) : $(LOCAL_PATH)/init.rc | $(ACP) |
| 46 | $(transform-prebuilt-to-target) |
| 47 | ALL_PREBUILT += $(file) |
Colin Cross | dc61c9c | 2010-04-09 12:39:16 -0700 | [diff] [blame] | 48 | $(INSTALLED_RAMDISK_TARGET): $(file) |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 49 | endif |
| 50 | |
Colin Cross | 44b65d0 | 2010-04-20 14:32:50 -0700 | [diff] [blame] | 51 | file := $(TARGET_ROOT_OUT)/ueventd.rc |
| 52 | $(file) : $(LOCAL_PATH)/ueventd.rc | $(ACP) |
| 53 | $(transform-prebuilt-to-target) |
| 54 | ALL_PREBUILT += $(file) |
| 55 | $(INSTALLED_RAMDISK_TARGET): $(file) |
| 56 | |
Mike Lockwood | 4f5d517 | 2012-04-04 11:26:59 -0700 | [diff] [blame] | 57 | # init.usb.rc is handled by build/target/product/core.rc |
| 58 | |
David 'Digit' Turner | a0c98ef | 2009-09-23 11:19:20 -0700 | [diff] [blame] | 59 | # Just like /system/etc/init.goldfish.sh, the /init.godlfish.rc is here |
| 60 | # to allow -user builds to properly run the dex pre-optimization pass in |
| 61 | # the emulator. |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 62 | file := $(TARGET_ROOT_OUT)/init.goldfish.rc |
| 63 | $(file) : $(LOCAL_PATH)/etc/init.goldfish.rc | $(ACP) |
| 64 | $(transform-prebuilt-to-target) |
| 65 | ALL_PREBUILT += $(file) |
Colin Cross | 44b65d0 | 2010-04-20 14:32:50 -0700 | [diff] [blame] | 66 | $(INSTALLED_RAMDISK_TARGET): $(file) |
| 67 | |
| 68 | file := $(TARGET_ROOT_OUT)/ueventd.goldfish.rc |
| 69 | $(file) : $(LOCAL_PATH)/etc/ueventd.goldfish.rc | $(ACP) |
| 70 | $(transform-prebuilt-to-target) |
| 71 | ALL_PREBUILT += $(file) |
| 72 | $(INSTALLED_RAMDISK_TARGET): $(file) |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 73 | |
| 74 | # create some directories (some are mount points) |
| 75 | DIRS := $(addprefix $(TARGET_ROOT_OUT)/, \ |
| 76 | sbin \ |
| 77 | dev \ |
| 78 | proc \ |
| 79 | sys \ |
| 80 | system \ |
| 81 | data \ |
| 82 | ) \ |
| 83 | $(TARGET_OUT_DATA) |
| 84 | |
| 85 | $(DIRS): |
| 86 | @echo Directory: $@ |
| 87 | @mkdir -p $@ |
| 88 | |
| 89 | ALL_PREBUILT += $(DIRS) |