blob: 3417f54f36d5f429e9a5dc3dcd0625cf0490d80c [file] [log] [blame]
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -08001LOCAL_PATH:= $(call my-dir)
2include $(CLEAR_VARS)
3
4# files that live under /system/etc/...
5
6copy_from := \
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -08007 etc/hosts
8
San Mehat2dfe4902009-08-31 08:04:49 -07009
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080010copy_to := $(addprefix $(TARGET_OUT)/,$(copy_from))
11copy_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
17ALL_PREBUILT += $(copy_to)
18
19
20# files that live under /...
21
22# Only copy init.rc if the target doesn't have its own.
23ifneq ($(TARGET_PROVIDES_INIT_RC),true)
24file := $(TARGET_ROOT_OUT)/init.rc
25$(file) : $(LOCAL_PATH)/init.rc | $(ACP)
26 $(transform-prebuilt-to-target)
27ALL_PREBUILT += $(file)
Colin Crossdc61c9c2010-04-09 12:39:16 -070028$(INSTALLED_RAMDISK_TARGET): $(file)
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080029endif
30
Colin Cross44b65d02010-04-20 14:32:50 -070031file := $(TARGET_ROOT_OUT)/ueventd.rc
32$(file) : $(LOCAL_PATH)/ueventd.rc | $(ACP)
33 $(transform-prebuilt-to-target)
34ALL_PREBUILT += $(file)
35$(INSTALLED_RAMDISK_TARGET): $(file)
36
Mike Lockwood4f5d5172012-04-04 11:26:59 -070037# init.usb.rc is handled by build/target/product/core.rc
38
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080039
40# create some directories (some are mount points)
41DIRS := $(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
55ALL_PREBUILT += $(DIRS)