Commit Graph

15828 Commits

Author SHA1 Message Date
Colin Cross
c0b9f6b9d2 Force dumpvars into dumb terminal mode and move log files
Force soong_ui in dumpvars mode to use a dumb terminal so that it
doesn't print an empty status table.  Also move the logs to files
that are prefixed with "dumpvars-" so that they don't rotate the
real build logs.

Fixes: 139307849
Test: lunch
Change-Id: If92421af07731fedc9ca42670f309e95922a2224
2019-09-23 14:24:57 -07:00
Yi Kong
14007d89e2 Merge "Remove -Wno-format-pedantic cflag" am: aefd0af575
am: 65fcfa1fc1

Change-Id: I10d1d81d98b0aeb85064c353bae77bbe35589b05
2019-09-23 11:12:11 -07:00
Yi Kong
65fcfa1fc1 Merge "Remove -Wno-format-pedantic cflag"
am: aefd0af575

Change-Id: I8dcf49a3469007d7343eb9ea869a8725ee5c2ffa
2019-09-23 11:05:41 -07:00
Yi Kong
aefd0af575 Merge "Remove -Wno-format-pedantic cflag" 2019-09-23 17:48:21 +00:00
Jeff Vander Stoep
f2545d26be Merge "Rust config whitelist: Add chh@ to OWNERS" am: 1a4d45b2f8
am: 0ea37d5012

Change-Id: I1e85059998f5610b2f27c956850473fdc3b37bd0
2019-09-23 08:50:56 -07:00
Jeff Vander Stoep
0ea37d5012 Merge "Rust config whitelist: Add chh@ to OWNERS"
am: 1a4d45b2f8

Change-Id: I81c428b58e10df80e0c408fe91495fa7ec9bb715
2019-09-23 08:44:16 -07:00
Treehugger Robot
1a4d45b2f8 Merge "Rust config whitelist: Add chh@ to OWNERS" 2019-09-23 15:32:51 +00:00
Sundong Ahn
7dca301944 Merge "Add isFlattenedVariant function" am: d9271cd823
am: e77be60bdc

Change-Id: Ic721601d43818bc1b4229e6ce202b97c1d785450
2019-09-23 07:40:05 -07:00
Sundong Ahn
e77be60bdc Merge "Add isFlattenedVariant function"
am: d9271cd823

Change-Id: I5fbe0080e5ba002cf1402c8fd1400a3c54120c62
2019-09-23 07:34:17 -07:00
Treehugger Robot
d9271cd823 Merge "Add isFlattenedVariant function" 2019-09-23 14:17:06 +00:00
Paul Duffin
2223daa208 Merge "Add custom SystemModules to bootclasspath to reduce duplication" am: 2b6f04ca42
am: 5a1a799bd0

Change-Id: I7ab134fe87a36b25379fa1ea8a63eed5a974076c
2019-09-23 03:48:30 -07:00
Paul Duffin
5a1a799bd0 Merge "Add custom SystemModules to bootclasspath to reduce duplication"
am: 2b6f04ca42

Change-Id: Iab98b9f8ef5054486681b2b0c184f855f8a15957
2019-09-23 03:43:01 -07:00
Paul Duffin
2b6f04ca42 Merge "Add custom SystemModules to bootclasspath to reduce duplication" 2019-09-23 10:31:40 +00:00
Jeff Vander Stoep
75b901182e Rust config whitelist: Add chh@ to OWNERS
Test: none
Bug: 141207129
Change-Id: Icdc43b3192fd84f0880eb354117fb1de46c6aa15
2019-09-23 10:41:48 +02:00
Inseob Kim
988f53cf5a Move sysprop gen code to sysprop module
sysprop_library now generates srcjar itself, effectively cutting the
implicit dependency from java module to sysprop module.

Bug: 131637873
Test: m {sysprop_library}-dump-api
Test: m (with no arguments) performs API check
Change-Id: Ia11a744e74b6f733ff0e30d194fbba22505ed644
2019-09-23 15:34:06 +09:00
Sundong Ahn
e8fb724689 Add isFlattenedVariant function
The return value is true if TARGET_FLATTEN_APEX is true,
TARGET_BUILD_APPS is false and the module is flatten variant.
Only the module name of flattened variant is appended with
".flattened" as suffix.

Test: m -j
Bug: 139716748
Change-Id: I966a178b43c5d08bd69d19e97e59456aa66d9d28
2019-09-23 14:40:21 +09:00
Jiyong Park
d284cd8894 Merge "Introduce module type 'sdk'" am: b1102ba828
am: 303b2992af

Change-Id: I40634b9b8d326f0b971624711f158dd989c3203d
2019-09-22 22:10:13 -07:00
Jiyong Park
303b2992af Merge "Introduce module type 'sdk'"
am: b1102ba828

Change-Id: I2fe48c7185491a9d092cd69260bf2edfa86462da
2019-09-22 22:02:44 -07:00
Treehugger Robot
b1102ba828 Merge "Introduce module type 'sdk'" 2019-09-23 04:38:24 +00:00
Jiyong Park
d1063c1586 Introduce module type 'sdk'
This change introduces a new module type named 'sdk'. It is a logical
group of prebuilt modules that together provide a context (e.g. APIs)
in which Mainline modules (such as APEXes) are built.

A prebuilt module (e.g. java_import) can join an sdk by adding it to the
sdk module as shown below:

sdk {
    name: "mysdk#20",
    java_libs: ["myjavalib_mysdk_20"],
}

java_import {
    name: "myjavalib_mysdk_20",
    srcs: ["myjavalib-v20.jar"],
    sdk_member_name: "myjavalib",
}

sdk {
    name: "mysdk#21",
    java_libs: ["myjavalib_mysdk_21"],
}

java_import {
    name: "myjavalib_mysdk_21",
    srcs: ["myjavalib-v21.jar"],
    sdk_member_name: "myjavalib",
}

java_library {
    name: "myjavalib",
    srcs: ["**/*/*.java"],
}

An APEX can specify the SDK(s) that it wants to build with via the new
'uses_sdks' property.

apex {
    name: "myapex",
    java_libs: ["libX", "libY"],
    uses_sdks: ["mysdk#20"],
}

With this, libX, libY, and their transitive dependencies are all built
with the version 20 of myjavalib (the first java_import module) instead
of the other one (which is for version 21) and java_library having the
same name (which is for ToT).

Bug: 138182343
Test: m (sdk_test.go added)
Change-Id: I7e14c524a7d6a0d9f575fb20822080f39818c01e
2019-09-22 08:21:27 +09:00
Yi Kong
011aaa46c5 Remove -Wno-format-pedantic cflag
This is no longer needed.

Test: presubmit
Bug: 20148343
Change-Id: Ie377b3cd183ae89bc159c3b31c64960bce3bc753
2019-09-20 17:24:21 -07:00
Ivan Lozano
e28ad297cc Merge "Amend list of required Rust stdlib libraries." am: 04de8b5ca5
am: 734c7f2d36

Change-Id: Ibc5374349e5926fbcf898bb9fc852606c483b773
2019-09-20 17:15:58 -07:00
George Burgess IV
28601812b9 Merge "soong: -Werror=fortify-source" am: 83dcee3094
am: bf6c16ad48

Change-Id: Ib613be28e8baa076af354d756d4c881bfa3733f0
2019-09-20 17:14:42 -07:00
Ivan Lozano
734c7f2d36 Merge "Amend list of required Rust stdlib libraries."
am: 04de8b5ca5

Change-Id: Iadf8ff4b34dd245cb1bc1fa56023f6f88f35d21c
2019-09-20 17:11:43 -07:00
George Burgess IV
bf6c16ad48 Merge "soong: -Werror=fortify-source"
am: 83dcee3094

Change-Id: Ia215f25a9da8a60a6b148718952be1210a29b47e
2019-09-20 17:10:10 -07:00
Ivan Lozano
04de8b5ca5 Merge "Amend list of required Rust stdlib libraries." 2019-09-20 23:59:20 +00:00
Treehugger Robot
83dcee3094 Merge "soong: -Werror=fortify-source" 2019-09-20 23:49:33 +00:00
Colin Cross
f0b987ecba status table: don't write newlines in non-scrolling terminals
Multiple terminals have had issues with writing newlines into the
non-scrolling region, just set the cursor to the beginning of the
next line instead.

Test: m nothing in JediTerm
Change-Id: I2e434f4cc263ca13b82889a79d6a8bb48d084cb3
2019-09-20 15:03:31 -07:00
Colin Cross
bf8f57e2f6 status table: ANSI code rows and columns are 1-based
Don't pass 0 to setCursor or setScrollingMargins.  Passing 0 hasn't
caused any known issues, but 1 is correct.

Test: m nothing
Change-Id: I8735032eb3f1d46df4c41c4ea9ef95b5fd842824
2019-09-20 15:03:11 -07:00
Dan Willemsen
979829248d Merge "Switch genrule-phony to ninja phony rule" am: 4e1e313287
am: 297b397c6c

Change-Id: I0446dfb08ef8981a1d64af4d41de7d5da2cf8cd4
2019-09-20 13:40:30 -07:00
Dan Willemsen
297b397c6c Merge "Switch genrule-phony to ninja phony rule"
am: 4e1e313287

Change-Id: I70dd6c739a7ca860d14c186a174a3c522da46c7a
2019-09-20 13:34:29 -07:00
Treehugger Robot
4e1e313287 Merge "Switch genrule-phony to ninja phony rule" 2019-09-20 20:18:10 +00:00
George Burgess IV
6c691644f7 soong: -Werror=fortify-source
Recently, we started deferring to clang for some of its built-in
FORTIFY-like warnings. We should always treat these as errors, since
they represent potential security vulnerabilities.

Bug: 131861088
Test: m. Also made a compilation in Bionic fail; verified the build
  command had -Werror=fortify-source in it.

Change-Id: I2715ea411ef067f801534dab4d306fef5431f290
2019-09-20 11:15:40 -07:00
Ivan Lozano
6d9e712858 Amend list of required Rust stdlib libraries.
Add libtest to our list of stdlib libraries, and remove some others that
are only used when generating proc_macros (which aren't dynamic).

Bug: 141207434
Test: m -j crosvm.experimental
Change-Id: I39cb030940adf1993e861d0142378eeea8b1ff5e
2019-09-20 10:59:56 -07:00
Dan Willemsen
afeea436ea Switch genrule-phony to ninja phony rule
Instead of using android.Phony, which is a "real" rule, use
blueprint.Phony, which is ninja's built-in "phony" rule. That's desired
in this case, since we only want this to be an alias to the inputs.

Test: cd system/bt; mma; mma (second run had nothing to do)
Test: treehugger
Change-Id: Ib0b630e23653c05a12cf617350f8b4c6d6d6cdff
2019-09-20 10:55:10 -07:00
Roland Levillain
76d6c2ce22 Merge "Fix documentation of field soong.apex.apexBundleProperties.Apex_name." am: 50aee7c375
am: 9d380cbcc6

Change-Id: I6a1b7225e262198532acf71676768974e28993a4
2019-09-20 08:20:28 -07:00
Roland Levillain
9d380cbcc6 Merge "Fix documentation of field soong.apex.apexBundleProperties.Apex_name."
am: 50aee7c375

Change-Id: I011f653685e7d58c66cbe7df6536368aa9e12e70
2019-09-20 08:13:38 -07:00
Roland Levillain
50aee7c375 Merge "Fix documentation of field soong.apex.apexBundleProperties.Apex_name." 2019-09-20 14:37:14 +00:00
Paul Duffin
68289b0efd Add custom SystemModules to bootclasspath to reduce duplication
Adds a library dependency to each of the dummy system modules created
by testing.go so that any changes in the behavior were detected by
the existing tests which were then fixed.

Bug: 141359858
Test: m checkbuild
Change-Id: Id4442f4aa3931ac93049f3367b96a5b49cc075e1
2019-09-20 14:52:56 +01:00
Dan Willemsen
b7aae6cc2a Merge "Fix missing deps found through RBE" am: 9f6cbaca21
am: 46c91e3e6a

Change-Id: I963604554a79dc064522b254eba4085e7996364e
2019-09-19 14:04:12 -07:00
Dan Willemsen
46c91e3e6a Merge "Fix missing deps found through RBE"
am: 9f6cbaca21

Change-Id: Ia74d6a616624576a3363e6d20cc10096adf900ff
2019-09-19 13:58:39 -07:00
Treehugger Robot
9f6cbaca21 Merge "Fix missing deps found through RBE" 2019-09-19 20:34:05 +00:00
Dan Willemsen
724ab5d5f7 Fix missing deps found through RBE
Bug: 130111713
Test: run with RBE, no longer see error about file not found
Change-Id: Ib6192f2a537f49efdb69b3f3bf28aef1660dec01
2019-09-19 10:51:03 -07:00
nelsonli
948bfa5686 Merge "Add option test_min_api_level and test_min_sdk_version for auto-generated test config" am: de8b140bf6
am: adc424d9d2

Change-Id: I5be13e20201bad6d78bfb0ba5822da0491674078
2019-09-19 10:12:42 -07:00
nelsonli
adc424d9d2 Merge "Add option test_min_api_level and test_min_sdk_version for auto-generated test config"
am: de8b140bf6

Change-Id: I3f2343ab21acc89292a9852018dc9da0c29c5533
2019-09-19 10:06:56 -07:00
Treehugger Robot
de8b140bf6 Merge "Add option test_min_api_level and test_min_sdk_version for auto-generated test config" 2019-09-19 16:48:48 +00:00
Ivan Lozano
a5a4b37bb9 Merge "Add OWNERS for Rust whitelist." am: 89efe4144a
am: ddc55924b3

Change-Id: I253452fd9e6cb2a533c4119b085d1bc2a4f7c30e
2019-09-19 09:26:34 -07:00
Ivan Lozano
ddc55924b3 Merge "Add OWNERS for Rust whitelist."
am: 89efe4144a

Change-Id: I4c095b61b889016234fc93b2ece01020f6bcb6a9
2019-09-19 09:20:48 -07:00
Ivan Lozano
89efe4144a Merge "Add OWNERS for Rust whitelist." 2019-09-19 16:07:23 +00:00
Roland Levillain
411c584cba Fix documentation of field soong.apex.apexBundleProperties.Apex_name.
Remove the mention to the (APEX) manifest (`apex_manifest.json`) from
this field's documentation, as `Apex_name` is neither read from nor
written to that file.

Test: n/a
Change-Id: Ia0dfac4f35f1ea697f379bcb19dd11af8705a0a0
2019-09-19 16:54:07 +01:00