| 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 |  | 
| David 'Digit' Turner | a0c98ef | 2009-09-23 11:19:20 -0700 | [diff] [blame] | 14 | # the /system/etc/init.goldfish.sh is needed to enable emulator support | 
|  | 15 | # in the system image. In theory, we don't need these for -user builds | 
|  | 16 | # which are device-specific. However, these builds require at the moment | 
|  | 17 | # to run the dex pre-optimization *in* the emulator. So keep the file until | 
|  | 18 | # we are capable of running dex preopt on the host. | 
|  | 19 | # | 
| David 'Digit' Turner | ca8177d | 2009-09-08 15:55:36 -0700 | [diff] [blame] | 20 | copy_from += etc/init.goldfish.sh | 
| San Mehat | 2dfe490 | 2009-08-31 08:04:49 -0700 | [diff] [blame] | 21 |  | 
| The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 22 | copy_to := $(addprefix $(TARGET_OUT)/,$(copy_from)) | 
|  | 23 | copy_from := $(addprefix $(LOCAL_PATH)/,$(copy_from)) | 
|  | 24 |  | 
|  | 25 | $(copy_to) : PRIVATE_MODULE := system_etcdir | 
|  | 26 | $(copy_to) : $(TARGET_OUT)/% : $(LOCAL_PATH)/% | $(ACP) | 
|  | 27 | $(transform-prebuilt-to-target) | 
|  | 28 |  | 
|  | 29 | ALL_PREBUILT += $(copy_to) | 
|  | 30 |  | 
|  | 31 |  | 
|  | 32 | # files that live under /... | 
|  | 33 |  | 
|  | 34 | # Only copy init.rc if the target doesn't have its own. | 
|  | 35 | ifneq ($(TARGET_PROVIDES_INIT_RC),true) | 
|  | 36 | file := $(TARGET_ROOT_OUT)/init.rc | 
|  | 37 | $(file) : $(LOCAL_PATH)/init.rc | $(ACP) | 
|  | 38 | $(transform-prebuilt-to-target) | 
|  | 39 | ALL_PREBUILT += $(file) | 
|  | 40 | endif | 
|  | 41 |  | 
| David 'Digit' Turner | a0c98ef | 2009-09-23 11:19:20 -0700 | [diff] [blame] | 42 | # Just like /system/etc/init.goldfish.sh, the /init.godlfish.rc is here | 
|  | 43 | # to allow -user builds to properly run the dex pre-optimization pass in | 
|  | 44 | # the emulator. | 
| The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 45 | file := $(TARGET_ROOT_OUT)/init.goldfish.rc | 
|  | 46 | $(file) : $(LOCAL_PATH)/etc/init.goldfish.rc | $(ACP) | 
|  | 47 | $(transform-prebuilt-to-target) | 
|  | 48 | ALL_PREBUILT += $(file) | 
| The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 49 |  | 
|  | 50 | # create some directories (some are mount points) | 
|  | 51 | DIRS := $(addprefix $(TARGET_ROOT_OUT)/, \ | 
|  | 52 | sbin \ | 
|  | 53 | dev \ | 
|  | 54 | proc \ | 
|  | 55 | sys \ | 
|  | 56 | system \ | 
|  | 57 | data \ | 
|  | 58 | ) \ | 
|  | 59 | $(TARGET_OUT_DATA) | 
|  | 60 |  | 
|  | 61 | $(DIRS): | 
|  | 62 | @echo Directory: $@ | 
|  | 63 | @mkdir -p $@ | 
|  | 64 |  | 
|  | 65 | ALL_PREBUILT += $(DIRS) |