summaryrefslogtreecommitdiff
path: root/rootdir/Android.mk
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2009-03-03 19:32:55 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2009-03-03 19:32:55 -0800
commitdd7bc3319deb2b77c5d07a51b7d6cd7e11b5beb0 (patch)
tree2ba8d1a0846d69b18f623515e8d9b5d9fe38b590 /rootdir/Android.mk
parente54eebbf1a908d65ee8cf80bab62821c05666d70 (diff)
auto import from //depot/cupcake/@135843
Diffstat (limited to 'rootdir/Android.mk')
-rw-r--r--rootdir/Android.mk58
1 files changed, 58 insertions, 0 deletions
diff --git a/rootdir/Android.mk b/rootdir/Android.mk
new file mode 100644
index 000000000..b2fe8cf15
--- /dev/null
+++ b/rootdir/Android.mk
@@ -0,0 +1,58 @@
+LOCAL_PATH:= $(call my-dir)
+include $(CLEAR_VARS)
+
+# files that live under /system/etc/...
+
+copy_from := \
+ etc/dbus.conf \
+ etc/init.goldfish.sh \
+ etc/hosts
+
+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 /...
+
+# Only copy init.rc if the target doesn't have its own.
+ifneq ($(TARGET_PROVIDES_INIT_RC),true)
+file := $(TARGET_ROOT_OUT)/init.rc
+$(file) : $(LOCAL_PATH)/init.rc | $(ACP)
+ $(transform-prebuilt-to-target)
+ALL_PREBUILT += $(file)
+endif
+
+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)