2009-03-04 04:32:55 +01:00
|
|
|
LOCAL_PATH:= $(call my-dir)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
# files that live under /system/etc/...
|
|
|
|
|
|
|
|
copy_from := \
|
|
|
|
etc/dbus.conf \
|
|
|
|
etc/hosts
|
|
|
|
|
2010-07-15 16:24:39 +02:00
|
|
|
ifeq ($(TARGET_PRODUCT),full)
|
2009-12-17 16:13:16 +01:00
|
|
|
copy_from += etc/vold.fstab
|
2009-09-09 00:55:36 +02:00
|
|
|
endif
|
|
|
|
|
2011-02-14 06:10:40 +01:00
|
|
|
ifeq ($(TARGET_PRODUCT),full_x86)
|
|
|
|
copy_from += etc/vold.fstab
|
|
|
|
endif
|
|
|
|
|
2012-06-08 00:15:52 +02:00
|
|
|
ifeq ($(TARGET_PRODUCT),full_mips)
|
|
|
|
copy_from += etc/vold.fstab
|
|
|
|
endif
|
|
|
|
|
2009-09-23 20:19:20 +02:00
|
|
|
# the /system/etc/init.goldfish.sh is needed to enable emulator support
|
|
|
|
# in the system image. In theory, we don't need these for -user builds
|
|
|
|
# which are device-specific. However, these builds require at the moment
|
|
|
|
# to run the dex pre-optimization *in* the emulator. So keep the file until
|
|
|
|
# we are capable of running dex preopt on the host.
|
|
|
|
#
|
2009-09-09 00:55:36 +02:00
|
|
|
copy_from += etc/init.goldfish.sh
|
2009-08-31 17:04:49 +02:00
|
|
|
|
2009-03-04 04:32:55 +01:00
|
|
|
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)
|
2010-04-09 21:39:16 +02:00
|
|
|
$(INSTALLED_RAMDISK_TARGET): $(file)
|
2009-03-04 04:32:55 +01:00
|
|
|
endif
|
|
|
|
|
2010-04-20 23:32:50 +02:00
|
|
|
file := $(TARGET_ROOT_OUT)/ueventd.rc
|
|
|
|
$(file) : $(LOCAL_PATH)/ueventd.rc | $(ACP)
|
|
|
|
$(transform-prebuilt-to-target)
|
|
|
|
ALL_PREBUILT += $(file)
|
|
|
|
$(INSTALLED_RAMDISK_TARGET): $(file)
|
|
|
|
|
2012-04-04 20:26:59 +02:00
|
|
|
# init.usb.rc is handled by build/target/product/core.rc
|
|
|
|
|
2009-09-23 20:19:20 +02:00
|
|
|
# Just like /system/etc/init.goldfish.sh, the /init.godlfish.rc is here
|
|
|
|
# to allow -user builds to properly run the dex pre-optimization pass in
|
|
|
|
# the emulator.
|
2009-03-04 04:32:55 +01:00
|
|
|
file := $(TARGET_ROOT_OUT)/init.goldfish.rc
|
|
|
|
$(file) : $(LOCAL_PATH)/etc/init.goldfish.rc | $(ACP)
|
|
|
|
$(transform-prebuilt-to-target)
|
|
|
|
ALL_PREBUILT += $(file)
|
2010-04-20 23:32:50 +02:00
|
|
|
$(INSTALLED_RAMDISK_TARGET): $(file)
|
|
|
|
|
|
|
|
file := $(TARGET_ROOT_OUT)/ueventd.goldfish.rc
|
|
|
|
$(file) : $(LOCAL_PATH)/etc/ueventd.goldfish.rc | $(ACP)
|
|
|
|
$(transform-prebuilt-to-target)
|
|
|
|
ALL_PREBUILT += $(file)
|
|
|
|
$(INSTALLED_RAMDISK_TARGET): $(file)
|
2009-03-04 04:32:55 +01:00
|
|
|
|
|
|
|
# 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)
|