| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
| |
Building when $SRC != $OUT fails due to an assumption in these scripts.
Fix them to respect $SRC.
Bug: None
Test: `make OUT=$PWD/foo` works again
Change-Id: I082b1295c2a42d6df33e487bd3a941d63d66f338
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
See build/soong/README.md for more information.
gen.mk is currently using build system internals in order to tell the
gen_*.sh scripts how to call the compiler. Soong genrules do not provide
the required information to call a compiler, so use a `cc_object {}` to
do the preprocessing steps, and pass the output from that into the
gen_*.sh scripts (cc_genrule).
It fixes the missing dependencies for the 2nd arch, and uses the correct
libc headers for the _vendor variant.
Bug: 66914194
Test: mmma external/minijail
Test: cd external/minijail; make all tests
Test: out/host/linux-x86/nativetest/system_unittest_gtest/system_unittest_gtest
Test: out/host/linux-x86/nativetest64/system_unittest_gtest/system_unittest_gtest
Test: cd external/minijail; ../../out/host/linux-x86/nativetest/syscall_filter_unittest_gtest/syscall_filter_unittest_gtest
Test: cd external/minijail; ../../out/host/linux-x86/nativetest64/syscall_filter_unittest_gtest/syscall_filter_unittest_gtest
Change-Id: Id116afb24677ea386f1b043c71c59d3b7ffd8696
|
| |
|
|
|
|
|
|
| |
The addition of more headers caused a break in MIPS builds.
Bug: None
Test: make tests
Change-Id: I0dc27117b8edd1f3aa239b7f185fca8eb37c115c
|
| |
|
|
|
|
|
|
|
|
| |
This change allows the use of the various RLIMIT_*, termios (to get some
ioctl() commands), as well as adding an underscore to the regex so that
S_IFIFO (which expands to __S_IFIFO) could be added.
Bug: None
Test: Can parse a policy with RLIMIT_CPU, ARCH_SET_FS
Change-Id: Ie6c4a0cf004d8aebfdcf7e070c9480bc53220fc0
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Chrome OS toolchain generates "-:" instead of "-.o:" when reading the
source from stdin "-". This patch makes the code handle both cases and
fixes some missing quotes.
Bug: chromium:609385
Bug: 27954979
TEST=FEATURES=test emerge-link chromeos-minijail
Change-Id: I88b03d1c080308560f71b4d3f2e3b1522c8900e9
|
| |
|
|
|
|
|
|
| |
so ninja can regenerate these files when included header files
are updated.
Bug: 27954979
Change-Id: I7be71330a84be63a0717df4557c089a7b9dfc27c
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Changes to the clang build flags passed into gen_constants.sh
can cause compile errors for the generated libconstants.c. Make
this process more robust by:
1. Typecasting values to unsigned long to address compiler failures
when other integer types are added to libconstants.c.
2. Making the grep statement filter out constants defined
without a value but with trailing whitespace e.g.
"#define ANDROID_API_H ".
Change-Id: I91d65db70b9e267882a8f381a836bbd7caded22e
|
| |
|
|
|
|
|
| |
Use the -E flag to get ERE behavior by default so we don't need to escape
chars in a BRE. Also switch the delimiter to avoid escaping that too.
Change-Id: I6d73bcad1d8544d40eaa74e4b70a1e29549edeb2
|
| |
|
|
|
|
|
| |
The sort tool has a -u flag which does the same thing as uniq, so
merge the two commands into one.
Change-Id: I41775eb11226dc14a65530fa4574db510c8ff91d
|
| |
|
|
|
|
|
|
| |
Rather than use a BRE and escape specific chars up to ERE, default
to ERE by using the -E flag and drop all the \ chars. This makes
the code more readable.
Change-Id: I53342db748f1418194e87b519324f14eb70858c1
|
| |
|
|
|
|
|
|
| |
The A-Z/a-z classes are not guaranteed to match the 26 english characters
in all locales -- they might match more or fewer characters. Use classes
instead so we know they'll always match.
Change-Id: Id8046a4f663c7bdb8fa46911d953716d6ba4bdb6
|
| |
|
|
|
|
|
|
|
|
|
| |
Move the sed expression outside of the inline shell expression and
replace \n with newlines so that newlines appear in the result; also
replace non-portable use of \+ with * using the same match expression
as is used in the command sequence for 'grep' anyway.
BUG=24873059
Change-Id: I45e0f2252a3a91e6c8e18643a68aab8e78e0fcdd
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add missing whitespace to input validation check in
gen_constants.sh, so that this check actually runs.
While there, reduce the 3-argument version of this
script to 2 arguments by combining the path to the
compiler binary and the arguments to pass to
the compiler into one argument.
BUG=chromium:539662
TEST=minijail builds using emerge.
Change-Id: Ib31688b034d960b6dbb2cb241401ef560f3c517f
|
|
|
This makes it possible to write filters using named constants (like
ENOSYS instead of 38).
BUG=chromium:516701
TEST=syscall_filter_unittest passes.
Change-Id: Ic44cbdfb6f2228f6f658b1cc48adf5a923394306
Reviewed-on: https://chromium-review.googlesource.com/290540
Reviewed-by: Jorge Lucangeli Obes <jorgelo@chromium.org>
Trybot-Ready: Luis Hector Chavez <lhchavez@google.com>
Tested-by: Luis Hector Chavez <lhchavez@google.com>
Commit-Queue: Luis Hector Chavez <lhchavez@google.com>
|