History log of /build/tools/fs_config/fs_config_generate.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
256d339413a54adeceb505f9d2f062856bcbba43 22-Mar-2017 Mark Salyzyn <salyzyn@google.com> fs_config_generate: add -P <partitionlist> option

Add a -P option to fs_config_generate that allows us to filter on
a comma separated partition whitelist or minus prefixed -blacklist.
A partition is defined as accessible as <partition>/ or
system/<partition>/.

No change for legacy, where no -P flag is specified.

For system.img, but not vendor, oem or odm file references:
fs_config_generate -P -vendor,-oem,-odm

For vendor.img file references:
fs_config_generate -P vendor

For oem.img file references:
fs_config_generate -P oem

For odm.img file references:
fs_config_generate -P odm

Add and fortify tests for each of these cases.

SideEffects: none
Test: gTest host fs_config-unit-test
Bug: 36071012
Change-Id: I0537453bb289d41ef98ad76e69f78ae49358a1b3
/build/make/tools/fs_config/fs_config_generate.c
5649b31a177f98e0f6601ec03c0e0b4fc0ae07e0 22-Mar-2017 Mark Salyzyn <salyzyn@google.com> fs_config_generate: unit test

Test -D and -F flag of fs_config_generate

Test: gTest host fs_config-unit-tests
Bug: 36071012
Change-Id: I23a655b17b7c55817f2aacc760700ff1b0728db3
/build/make/tools/fs_config/fs_config_generate.c
6024069f378dd95667c078d8360ed515116dd309 16-Apr-2015 Mark Salyzyn <salyzyn@google.com> build: fs_config_generate must open file in binary mode

Bug: 19908228
Change-Id: I2361b8af90b3729deb438e6a7a7179de12680b65
/build/make/tools/fs_config/fs_config_generate.c
06b91b9bcf4410d7b8c8c5e10a717671dd327c35 01-Apr-2015 Mark Salyzyn <salyzyn@google.com> fs_config: Add fs_config_generate

fs_config_generate_$(TARGET_DEVICE) is built based off the content
of $(TARGET_ANDROID_FILESYSTEM_CONFIG_H). We also add the rules
fs_config_dirs and fs_config_file to utilize this command
for target contents:

fs_config_generate_$(TARGET_DEVICE) -D -o system/etc/fs_config_dir
fs_config_generate_$(TARGET_DEVICE) -F -o system/etc/fs_config_file

In order to use this feature, one must have the fs_config_dirs and
fs_config_files in the $(PRODUCT_PACKAGES) list defined in the
device make files in $(TARGET_DEVICE_DIR). And either an
android_filesystem_config.h file in that directory, or define a
path in TARGET_ANDROID_FILESYSTEM_CONFIG_H to point to one.

Bug: 19908228
Change-Id: Iee1543d99169f874e0915ae07962a7750ecb6342
/build/make/tools/fs_config/fs_config_generate.c