Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 04750bc0 authored by Anton Hansson's avatar Anton Hansson Committed by android-build-merger
Browse files

Merge "Split up fs_config_* modules per partition."

am: 4e0ccc4c

Change-Id: I82751b7f53a22bdcccb6667dfb17089d296dd43c
parents 5b393682 4e0ccc4c
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -74,6 +74,8 @@ PRODUCT_PACKAGES += \
    framework-res \
    framework-res \
    framework-sysconfig.xml \
    framework-sysconfig.xml \
    fsck_msdos \
    fsck_msdos \
    fs_config_files_system \
    fs_config_dirs_system \
    gatekeeperd \
    gatekeeperd \
    healthd \
    healthd \
    hid \
    hid \
+2 −2
Original line number Original line Diff line number Diff line
@@ -20,8 +20,8 @@ PRODUCT_PACKAGES += \
    android.hardware.configstore@1.1-service \
    android.hardware.configstore@1.1-service \
    android.hardware.media.omx@1.0-service \
    android.hardware.media.omx@1.0-service \
    device_compatibility_matrix.xml \
    device_compatibility_matrix.xml \
    fs_config_files \
    fs_config_files_nonsystem \
    fs_config_dirs \
    fs_config_dirs_nonsystem \
    gralloc.default \
    gralloc.default \
    group \
    group \
    libbundlewrapper \
    libbundlewrapper \
+51 −6
Original line number Original line Diff line number Diff line
@@ -111,13 +111,57 @@ fs_config_generate_extra_partition_list := $(strip \
  $(if $(BOARD_USES_ODMIMAGE)$(BOARD_ODMIMAGE_FILE_SYSTEM_TYPE),odm))
  $(if $(BOARD_USES_ODMIMAGE)$(BOARD_ODMIMAGE_FILE_SYSTEM_TYPE),odm))


##################################
##################################
# Generate the system/etc/fs_config_dirs binary file for the target
# Generate the <p>/etc/fs_config_dirs binary files for each partition.
# Add fs_config_dirs to PRODUCT_PACKAGES in the device make file to enable
# Add fs_config_dirs to PRODUCT_PACKAGES in the device make file to enable.
include $(CLEAR_VARS)
include $(CLEAR_VARS)


LOCAL_MODULE := fs_config_dirs
LOCAL_MODULE := fs_config_dirs
LOCAL_REQUIRED_MODULES := \
	fs_config_dirs_system \
	$(foreach t,$(fs_config_generate_extra_partition_list),$(LOCAL_MODULE)_$(t))
include $(BUILD_PHONY_PACKAGE)


##################################
# Generate the <p>/etc/fs_config_files binary files for each partition.
# Add fs_config_files to PRODUCT_PACKAGES in the device make file to enable.
include $(CLEAR_VARS)

LOCAL_MODULE := fs_config_files
LOCAL_REQUIRED_MODULES := \
  fs_config_files_system \
  $(foreach t,$(fs_config_generate_extra_partition_list),$(LOCAL_MODULE)_$(t))
include $(BUILD_PHONY_PACKAGE)

##################################
# Generate the <p>/etc/fs_config_dirs binary files for all enabled partitions
# excluding /system. Add fs_config_dirs_nonsystem to PRODUCT_PACKAGES in the
# device make file to enable.
include $(CLEAR_VARS)

LOCAL_MODULE := fs_config_dirs_nonsystem
LOCAL_REQUIRED_MODULES := $(foreach t,$(fs_config_generate_extra_partition_list),fs_config_dirs_$(t))
include $(BUILD_PHONY_PACKAGE)

##################################
# Generate the <p>/etc/fs_config_files binary files for all enabled partitions
# excluding /system. Add fs_config_files_nonsystem to PRODUCT_PACKAGES in the
# device make file to enable.
include $(CLEAR_VARS)

LOCAL_MODULE := fs_config_files_nonsystem
LOCAL_REQUIRED_MODULES := $(foreach t,$(fs_config_generate_extra_partition_list),fs_config_files_$(t))
include $(BUILD_PHONY_PACKAGE)

##################################
# Generate the system/etc/fs_config_dirs binary file for the target
# Add fs_config_dirs or fs_config_dirs_system to PRODUCT_PACKAGES in
# the device make file to enable
include $(CLEAR_VARS)

LOCAL_MODULE := fs_config_dirs_system
LOCAL_MODULE_CLASS := ETC
LOCAL_MODULE_CLASS := ETC
LOCAL_REQUIRED_MODULES := $(foreach t,$(fs_config_generate_extra_partition_list),$(LOCAL_MODULE)_$(t))
LOCAL_INSTALLED_MODULE_STEM := fs_config_dirs
include $(BUILD_SYSTEM)/base_rules.mk
include $(BUILD_SYSTEM)/base_rules.mk
$(LOCAL_BUILT_MODULE): $(fs_config_generate_bin)
$(LOCAL_BUILT_MODULE): $(fs_config_generate_bin)
	@mkdir -p $(dir $@)
	@mkdir -p $(dir $@)
@@ -127,12 +171,13 @@ $(LOCAL_BUILT_MODULE): $(fs_config_generate_bin)


##################################
##################################
# Generate the system/etc/fs_config_files binary file for the target
# Generate the system/etc/fs_config_files binary file for the target
# Add fs_config_files to PRODUCT_PACKAGES in the device make file to enable
# Add fs_config_files or fs_config_files_system to PRODUCT_PACKAGES in
# the device make file to enable
include $(CLEAR_VARS)
include $(CLEAR_VARS)


LOCAL_MODULE := fs_config_files
LOCAL_MODULE := fs_config_files_system
LOCAL_MODULE_CLASS := ETC
LOCAL_MODULE_CLASS := ETC
LOCAL_REQUIRED_MODULES := $(foreach t,$(fs_config_generate_extra_partition_list),$(LOCAL_MODULE)_$(t))
LOCAL_INSTALLED_MODULE_STEM := fs_config_files
include $(BUILD_SYSTEM)/base_rules.mk
include $(BUILD_SYSTEM)/base_rules.mk
$(LOCAL_BUILT_MODULE): $(fs_config_generate_bin)
$(LOCAL_BUILT_MODULE): $(fs_config_generate_bin)
	@mkdir -p $(dir $@)
	@mkdir -p $(dir $@)