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 | |
San Mehat | 2dfe490 | 2009-08-31 08:04:49 -0700 | [diff] [blame] | 10 | ifeq ($(TARGET_PRODUCT),generic) |
David 'Digit' Turner | ca8177d | 2009-09-08 15:55:36 -0700 | [diff] [blame] | 11 | copy_from += etc/vold.conf |
| 12 | endif |
| 13 | |
| 14 | # for non -user build, also copy emulator-support script into /system/etc |
| 15 | ifneq ($(TARGET_BUILD_VARIANT),user) |
| 16 | copy_from += etc/init.goldfish.sh |
San Mehat | 2dfe490 | 2009-08-31 08:04:49 -0700 | [diff] [blame] | 17 | endif |
| 18 | |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 19 | copy_to := $(addprefix $(TARGET_OUT)/,$(copy_from)) |
| 20 | copy_from := $(addprefix $(LOCAL_PATH)/,$(copy_from)) |
| 21 | |
| 22 | $(copy_to) : PRIVATE_MODULE := system_etcdir |
| 23 | $(copy_to) : $(TARGET_OUT)/% : $(LOCAL_PATH)/% | $(ACP) |
| 24 | $(transform-prebuilt-to-target) |
| 25 | |
| 26 | ALL_PREBUILT += $(copy_to) |
| 27 | |
| 28 | |
| 29 | # files that live under /... |
| 30 | |
| 31 | # Only copy init.rc if the target doesn't have its own. |
| 32 | ifneq ($(TARGET_PROVIDES_INIT_RC),true) |
| 33 | file := $(TARGET_ROOT_OUT)/init.rc |
| 34 | $(file) : $(LOCAL_PATH)/init.rc | $(ACP) |
| 35 | $(transform-prebuilt-to-target) |
| 36 | ALL_PREBUILT += $(file) |
| 37 | endif |
| 38 | |
David 'Digit' Turner | ca8177d | 2009-09-08 15:55:36 -0700 | [diff] [blame] | 39 | # for non -user build, also copy emulator-specific init script into / |
| 40 | ifneq ($(TARGET_BUILD_VARIANT),user) |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 41 | file := $(TARGET_ROOT_OUT)/init.goldfish.rc |
| 42 | $(file) : $(LOCAL_PATH)/etc/init.goldfish.rc | $(ACP) |
| 43 | $(transform-prebuilt-to-target) |
| 44 | ALL_PREBUILT += $(file) |
David 'Digit' Turner | ca8177d | 2009-09-08 15:55:36 -0700 | [diff] [blame] | 45 | endif |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 46 | |
| 47 | # create some directories (some are mount points) |
| 48 | DIRS := $(addprefix $(TARGET_ROOT_OUT)/, \ |
| 49 | sbin \ |
| 50 | dev \ |
| 51 | proc \ |
| 52 | sys \ |
| 53 | system \ |
| 54 | data \ |
| 55 | ) \ |
| 56 | $(TARGET_OUT_DATA) |
| 57 | |
| 58 | $(DIRS): |
| 59 | @echo Directory: $@ |
| 60 | @mkdir -p $@ |
| 61 | |
| 62 | ALL_PREBUILT += $(DIRS) |