Merge "fs_config: remove empty fs_config_* automation."
This commit is contained in:
@@ -41,22 +41,7 @@ static const struct fs_path_config android_device_dirs[] = { };
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef NO_ANDROID_FILESYSTEM_CONFIG_DEVICE_FILES
|
#ifdef NO_ANDROID_FILESYSTEM_CONFIG_DEVICE_FILES
|
||||||
static const struct fs_path_config android_device_files[] = {
|
static const struct fs_path_config android_device_files[] = { };
|
||||||
#ifdef NO_ANDROID_FILESYSTEM_CONFIG_DEVICE_DIRS
|
|
||||||
{0000, AID_ROOT, AID_ROOT, 0, "system/etc/fs_config_dirs"},
|
|
||||||
{0000, AID_ROOT, AID_ROOT, 0, "vendor/etc/fs_config_dirs"},
|
|
||||||
{0000, AID_ROOT, AID_ROOT, 0, "oem/etc/fs_config_dirs"},
|
|
||||||
{0000, AID_ROOT, AID_ROOT, 0, "odm/etc/fs_config_dirs"},
|
|
||||||
{0000, AID_ROOT, AID_ROOT, 0, "product/etc/fs_config_dirs"},
|
|
||||||
{0000, AID_ROOT, AID_ROOT, 0, "product_services/etc/fs_config_dirs"},
|
|
||||||
#endif
|
|
||||||
{0000, AID_ROOT, AID_ROOT, 0, "system/etc/fs_config_files"},
|
|
||||||
{0000, AID_ROOT, AID_ROOT, 0, "vendor/etc/fs_config_files"},
|
|
||||||
{0000, AID_ROOT, AID_ROOT, 0, "oem/etc/fs_config_files"},
|
|
||||||
{0000, AID_ROOT, AID_ROOT, 0, "odm/etc/fs_config_files"},
|
|
||||||
{0000, AID_ROOT, AID_ROOT, 0, "product/etc/fs_config_files"},
|
|
||||||
{0000, AID_ROOT, AID_ROOT, 0, "product_services/etc/fs_config_files"},
|
|
||||||
};
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static void usage() {
|
static void usage() {
|
||||||
|
@@ -909,22 +909,6 @@ class FSConfigGen(BaseGenerator):
|
|||||||
'#warning No device-supplied android_filesystem_config.h,'
|
'#warning No device-supplied android_filesystem_config.h,'
|
||||||
' using empty default.')
|
' using empty default.')
|
||||||
|
|
||||||
# Long names.
|
|
||||||
# pylint: disable=invalid-name
|
|
||||||
_NO_ANDROID_FILESYSTEM_CONFIG_DEVICE_DIRS_ENTRY = (
|
|
||||||
'{ 00000, AID_ROOT, AID_ROOT, 0,'
|
|
||||||
'"system/etc/fs_config_dirs" },')
|
|
||||||
|
|
||||||
_NO_ANDROID_FILESYSTEM_CONFIG_DEVICE_FILES_ENTRY = (
|
|
||||||
'{ 00000, AID_ROOT, AID_ROOT, 0,'
|
|
||||||
'"system/etc/fs_config_files" },')
|
|
||||||
|
|
||||||
_IFDEF_ANDROID_FILESYSTEM_CONFIG_DEVICE_DIRS = (
|
|
||||||
'#ifdef NO_ANDROID_FILESYSTEM_CONFIG_DEVICE_DIRS')
|
|
||||||
# pylint: enable=invalid-name
|
|
||||||
|
|
||||||
_ENDIF = '#endif'
|
|
||||||
|
|
||||||
_OPEN_FILE_STRUCT = (
|
_OPEN_FILE_STRUCT = (
|
||||||
'static const struct fs_path_config android_device_files[] = {')
|
'static const struct fs_path_config android_device_files[] = {')
|
||||||
|
|
||||||
@@ -1082,12 +1066,6 @@ class FSConfigGen(BaseGenerator):
|
|||||||
for fs_config in files:
|
for fs_config in files:
|
||||||
self._to_fs_entry(fs_config)
|
self._to_fs_entry(fs_config)
|
||||||
|
|
||||||
if not are_dirs:
|
|
||||||
print FSConfigGen._IFDEF_ANDROID_FILESYSTEM_CONFIG_DEVICE_DIRS
|
|
||||||
print(
|
|
||||||
' ' +
|
|
||||||
FSConfigGen._NO_ANDROID_FILESYSTEM_CONFIG_DEVICE_DIRS_ENTRY)
|
|
||||||
print FSConfigGen._ENDIF
|
|
||||||
print FSConfigGen._CLOSE_FILE_STRUCT
|
print FSConfigGen._CLOSE_FILE_STRUCT
|
||||||
|
|
||||||
if are_dirs:
|
if are_dirs:
|
||||||
|
Reference in New Issue
Block a user