OSDN Git Service

fs_config: Fix oem range parsing
authorJohan Redestig <johan.redestig@sonymobile.com>
Tue, 3 Jan 2017 08:36:47 +0000 (09:36 +0100)
committerJohan Redestig <johan.redestig@sonymobile.com>
Tue, 3 Jan 2017 08:45:33 +0000 (09:45 +0100)
commit1552a28e5f8d437aabeb97f167d80c07e1af987c
tree95702f312edb3cd2325560f39de39028af119618
parent5f60b74297d80d7ef03048c375540cc633a43ba5
fs_config: Fix oem range parsing

Addresses the following build error:
  "value" not in valid range [], got: 2901 for: "AID_ABC" file:\
  "device/somc/abc/config.fs"

that happens when parsing device/somc/abc/config.fs:
  [AID_ABC]
  value: 2901

The problem is that the AID.PREFIX is 'AID_' so the _OEM_RANGE
expression is searching for AID__OEM_RESERVED, which never
exists. Drop the extra '_'.

Change-Id: I8a1556731e14e49cef66e3e91121e4be23a308e0
Test: ./build/tools/fs_config/fs_config_generator.py fsconfig --aid-header=system/core/include/private/android_filesystem_config.h device/somc/abc/config.fs
tools/fs_config/fs_config_generator.py