Revert "Revert "move android_ids into bionic""
This reverts commit 77cb68d9f2
.
Change-Id: Ibc9f775c4cd418be90fd8a6f192dd72ca5dff09a
This commit is contained in:
parent
77cb68d9f2
commit
3f6eee9793
5 changed files with 17 additions and 0 deletions
|
@ -1194,6 +1194,13 @@ cc_library_static {
|
|||
name: "libc_bionic",
|
||||
}
|
||||
|
||||
genrule {
|
||||
name: "generated_android_ids",
|
||||
out: [ "generated_android_ids.h" ],
|
||||
tool_files: [ "fs_config_generator.py" ],
|
||||
cmd: "$(location fs_config_generator.py) aidarray system/core/include/private/android_filesystem_config.h > $(out)",
|
||||
}
|
||||
|
||||
// ========================================================
|
||||
// libc_bionic_ndk.a- The portions of libc_bionic that can
|
||||
// be safely used in libc_ndk.a (no troublesome global data
|
||||
|
@ -1382,6 +1389,7 @@ cc_library_static {
|
|||
local_include_dirs: ["stdio"],
|
||||
include_dirs: ["bionic/libstdc++/include"],
|
||||
name: "libc_bionic_ndk",
|
||||
generated_headers: ["generated_android_ids"],
|
||||
}
|
||||
|
||||
// ========================================================
|
||||
|
|
|
@ -43,6 +43,9 @@
|
|||
#include "private/libc_logging.h"
|
||||
#include "private/ThreadLocalBuffer.h"
|
||||
|
||||
// Generated android_ids array
|
||||
#include "generated_android_ids.h"
|
||||
|
||||
// POSIX seems to envisage an implementation where the <pwd.h> functions are
|
||||
// implemented by brute-force searching with getpwent(3), and the <grp.h>
|
||||
// functions are implemented similarly with getgrent(3). This means that it's
|
||||
|
|
1
libc/fs_config_generator.py
Symbolic link
1
libc/fs_config_generator.py
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../build/tools/fs_config/fs_config_generator.py
|
|
@ -155,6 +155,8 @@ cc_test_library {
|
|||
shared: {
|
||||
enabled: false,
|
||||
},
|
||||
|
||||
generated_headers: ["generated_android_ids"],
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
|
|
@ -30,6 +30,9 @@
|
|||
|
||||
#include <private/android_filesystem_config.h>
|
||||
|
||||
// Generated android_ids array
|
||||
#include "generated_android_ids.h"
|
||||
|
||||
enum uid_type_t {
|
||||
TYPE_SYSTEM,
|
||||
TYPE_APP
|
||||
|
|
Loading…
Reference in a new issue