2009-03-04 11:32:55 +08:00
|
|
|
LOCAL_PATH:= $(call my-dir)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
# files that live under /system/etc/...
|
|
|
|
|
|
|
|
copy_from := \
|
|
|
|
etc/hosts
|
|
|
|
|
2009-08-31 23:04:49 +08:00
|
|
|
|
2009-03-04 11:32:55 +08: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-10 03:39:16 +08:00
|
|
|
$(INSTALLED_RAMDISK_TARGET): $(file)
|
2009-03-04 11:32:55 +08:00
|
|
|
endif
|
|
|
|
|
2010-04-21 05:32:50 +08: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-05 02:26:59 +08:00
|
|
|
# init.usb.rc is handled by build/target/product/core.rc
|
|
|
|
|
2009-03-04 11:32:55 +08: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)
|