move android_ids into bionic
am: 1a13db5b26
Change-Id: I12ac9a338503687fba3c43dcdd8a6c1a74cc99fe
This commit is contained in:
commit
f3def87a05
5 changed files with 17 additions and 0 deletions
|
@ -1193,6 +1193,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
|
||||
|
@ -1381,6 +1388,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