Fix ndk build.

The NDK gen_stub_libs.py doesn't support introduced=P yet:

  Traceback (most recent call last):
    File "build/soong/cc/gen_stub_libs.py", line 439, in <module>
      main()
    File "build/soong/cc/gen_stub_libs.py", line 429, in main
      versions = SymbolFileParser(symbol_file, api_map).parse()
    File "build/soong/cc/gen_stub_libs.py", line 234, in parse
      versions.append(self.parse_version())
    File "build/soong/cc/gen_stub_libs.py", line 269, in parse_version
      symbols.append(self.parse_symbol())
    File "build/soong/cc/gen_stub_libs.py", line 286, in parse_symbol
      tags = decode_api_level_tags(tags, self.api_map)
    File "build/soong/cc/gen_stub_libs.py", line 76, in decode_api_level_tags
      raise ParseError('Unknown version name in tag: {}'.format(tag))
  __main__.ParseError: Unknown version name in tag: introduced=P

Bug: N/A
Test: builds
Change-Id: Ifd91e525b30f3aa9ad8c889c9564cd769a3a603a
This commit is contained in:
Elliott Hughes 2017-08-25 08:42:48 -07:00
parent fa3d3291e1
commit 44d8f7be1f
7 changed files with 28 additions and 28 deletions

View File

@ -1320,10 +1320,10 @@ LIBC_O {
LIBC_P {
global:
__freading; # introduced=P
__fwriting; # introduced=P
getlogin_r; # introduced=P
syncfs; # introduced=P
__freading; # future
__fwriting; # future
getlogin_r; # future
syncfs; # future
} LIBC_O;
LIBC_PRIVATE {

View File

@ -1240,10 +1240,10 @@ LIBC_O {
LIBC_P {
global:
__freading; # introduced=P
__fwriting; # introduced=P
getlogin_r; # introduced=P
syncfs; # introduced=P
__freading; # future
__fwriting; # future
getlogin_r; # future
syncfs; # future
} LIBC_O;
LIBC_PRIVATE {

View File

@ -1345,10 +1345,10 @@ LIBC_O {
LIBC_P {
global:
__freading; # introduced=P
__fwriting; # introduced=P
getlogin_r; # introduced=P
syncfs; # introduced=P
__freading; # future
__fwriting; # future
getlogin_r; # future
syncfs; # future
} LIBC_O;
LIBC_PRIVATE {

View File

@ -1304,10 +1304,10 @@ LIBC_O {
LIBC_P {
global:
__freading; # introduced=P
__fwriting; # introduced=P
getlogin_r; # introduced=P
syncfs; # introduced=P
__freading; # future
__fwriting; # future
getlogin_r; # future
syncfs; # future
} LIBC_O;
LIBC_PRIVATE {

View File

@ -1240,10 +1240,10 @@ LIBC_O {
LIBC_P {
global:
__freading; # introduced=P
__fwriting; # introduced=P
getlogin_r; # introduced=P
syncfs; # introduced=P
__freading; # future
__fwriting; # future
getlogin_r; # future
syncfs; # future
} LIBC_O;
LIBC_PRIVATE {

View File

@ -1302,10 +1302,10 @@ LIBC_O {
LIBC_P {
global:
__freading; # introduced=P
__fwriting; # introduced=P
getlogin_r; # introduced=P
syncfs; # introduced=P
__freading; # future
__fwriting; # future
getlogin_r; # future
syncfs; # future
} LIBC_O;
LIBC_PRIVATE {

View File

@ -1240,10 +1240,10 @@ LIBC_O {
LIBC_P {
global:
__freading; # introduced=P
__fwriting; # introduced=P
getlogin_r; # introduced=P
syncfs; # introduced=P
__freading; # future
__fwriting; # future
getlogin_r; # future
syncfs; # future
} LIBC_O;
LIBC_PRIVATE {