summaryrefslogtreecommitdiff
path: root/rootdir/Android.mk
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2008-10-21 07:00:00 -0700
committerThe Android Open Source Project <initial-contribution@android.com>2008-10-21 07:00:00 -0700
commit4f6e8d7a00cbeda1e70cc15be9c4af1018bdad53 (patch)
tree54fd1b2695a591d2306d41264df67c53077b752c /rootdir/Android.mk
Initial Contribution
Diffstat (limited to 'rootdir/Android.mk')
-rw-r--r--rootdir/Android.mk57
1 files changed, 57 insertions, 0 deletions
diff --git a/rootdir/Android.mk b/rootdir/Android.mk
new file mode 100644
index 000000000..756005b30
--- /dev/null
+++ b/rootdir/Android.mk
@@ -0,0 +1,57 @@
+LOCAL_PATH:= $(call my-dir)
+include $(CLEAR_VARS)
+
+# files that live under /system/etc/...
+
+copy_from := \
+ etc/mountd.conf \
+ etc/dbus.conf \
+ etc/init.goldfish.sh \
+ etc/hosts \
+ etc/hcid.conf
+
+dont_copy := \
+ etc/init.gprs-pppd \
+ etc/ppp/chap-secrets \
+ etc/ppp/ip-down \
+ etc/ppp/ip-up
+
+copy_to := $(addprefix $(TARGET_OUT)/,$(copy_from))
+copy_from := $(addprefix $(LOCAL_PATH)/,$(copy_from))
+
+$(copy_to) : PRIVATE_MODULE := system_etcdir
+$(copy_to) : $(TARGET_OUT)/% : $(LOCAL_PATH)/% | $(ACP)
+ $(transform-prebuilt-to-target)
+
+ALL_PREBUILT += $(copy_to)
+
+
+# files that live under /...
+
+file := $(TARGET_ROOT_OUT)/init.rc
+$(file) : $(LOCAL_PATH)/init.rc | $(ACP)
+ $(transform-prebuilt-to-target)
+ALL_PREBUILT += $(file)
+
+file := $(TARGET_ROOT_OUT)/init.goldfish.rc
+$(file) : $(LOCAL_PATH)/etc/init.goldfish.rc | $(ACP)
+ $(transform-prebuilt-to-target)
+ALL_PREBUILT += $(file)
+
+
+# create some directories (some are mount points)
+DIRS := $(addprefix $(TARGET_ROOT_OUT)/, \
+ sbin \
+ dev \
+ proc \
+ sys \
+ system \
+ data \
+ ) \
+ $(TARGET_OUT_DATA)
+
+$(DIRS):
+ @echo Directory: $@
+ @mkdir -p $@
+
+ALL_PREBUILT += $(DIRS)