Android.mk revision 4f6e8d7a00cbeda1e70cc15be9c4af1018bdad53
1LOCAL_PATH:= $(call my-dir)
2include $(CLEAR_VARS)
3
4# files that live under /system/etc/...
5
6copy_from := \
7	etc/mountd.conf \
8	etc/dbus.conf \
9	etc/init.goldfish.sh \
10	etc/hosts \
11	etc/hcid.conf 
12
13dont_copy := \
14	etc/init.gprs-pppd \
15	etc/ppp/chap-secrets \
16	etc/ppp/ip-down \
17	etc/ppp/ip-up
18
19copy_to := $(addprefix $(TARGET_OUT)/,$(copy_from))
20copy_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
26ALL_PREBUILT += $(copy_to)
27
28
29# files that live under /...
30
31file := $(TARGET_ROOT_OUT)/init.rc
32$(file) : $(LOCAL_PATH)/init.rc | $(ACP)
33	$(transform-prebuilt-to-target)
34ALL_PREBUILT += $(file)
35
36file := $(TARGET_ROOT_OUT)/init.goldfish.rc
37$(file) : $(LOCAL_PATH)/etc/init.goldfish.rc | $(ACP)
38	$(transform-prebuilt-to-target)
39ALL_PREBUILT += $(file)
40	
41
42# create some directories (some are mount points)
43DIRS := $(addprefix $(TARGET_ROOT_OUT)/, \
44		sbin \
45		dev \
46		proc \
47		sys \
48		system \
49		data \
50	) \
51	$(TARGET_OUT_DATA)
52
53$(DIRS):
54	@echo Directory: $@
55	@mkdir -p $@
56
57ALL_PREBUILT += $(DIRS)
58