diff options
author | Anton Hansson <hansson@google.com> | 2018-06-26 14:03:38 +0100 |
---|---|---|
committer | Anton Hansson <hansson@google.com> | 2018-06-27 11:15:59 +0100 |
commit | e85ec84eef1f3f2fa778912684931d8c3935715f (patch) | |
tree | 3917e4caa5ab0b8dcef2b573badcc036821cdc0e /tools/fs_config/Android.mk | |
parent | a314fc0166d58e2f866baa91e704b39bf7cb97c9 (diff) | |
download | platform_build-e85ec84eef1f3f2fa778912684931d8c3935715f.tar.gz platform_build-e85ec84eef1f3f2fa778912684931d8c3935715f.tar.bz2 platform_build-e85ec84eef1f3f2fa778912684931d8c3935715f.zip |
Split up fs_config_* modules per partition.
This was already done for partitions other than the system partition.
Add new, separate "_system" targets, and add new phony modules which
collects _system and _nonsystem targets for now.
Update the base_system.mk file to only depend on the system module, and
put the other ones in base_vendor.mk for now.
Bug: 80410283
Test: make fs_config_dirs[_*] fs_config_files[_*] and verify output
Change-Id: I7843578dbb9f27edf4c1e5b4a795a530f79e0be1
Diffstat (limited to 'tools/fs_config/Android.mk')
-rw-r--r-- | tools/fs_config/Android.mk | 57 |
1 files changed, 51 insertions, 6 deletions
diff --git a/tools/fs_config/Android.mk b/tools/fs_config/Android.mk index 8a8eca98ef..cb32b9e35a 100644 --- a/tools/fs_config/Android.mk +++ b/tools/fs_config/Android.mk @@ -111,13 +111,57 @@ fs_config_generate_extra_partition_list := $(strip \ $(if $(BOARD_USES_ODMIMAGE)$(BOARD_ODMIMAGE_FILE_SYSTEM_TYPE),odm)) ################################## -# Generate the system/etc/fs_config_dirs binary file for the target -# Add fs_config_dirs to PRODUCT_PACKAGES in the device make file to enable +# 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. include $(CLEAR_VARS) 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_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 $(LOCAL_BUILT_MODULE): $(fs_config_generate_bin) @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 -# 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) -LOCAL_MODULE := fs_config_files +LOCAL_MODULE := fs_config_files_system 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 $(LOCAL_BUILT_MODULE): $(fs_config_generate_bin) @mkdir -p $(dir $@) |