Commit Graph

2428 Commits

Author SHA1 Message Date
Colin Cross
2bc8871dac Add device_uses_hwc2 product variable
am: 0e409a2810

Change-Id: I04e73b2c13ad18e0cd9e538a738873d387666f7a
2017-05-02 20:07:22 +00:00
Colin Cross
0e409a2810 Add device_uses_hwc2 product variable
TARGET_USES_HWC2 is going away, but propagate it to soong for now
to unblock converting dependency chains that end in libhwui.

Test: soong tests
Change-Id: I20f1269caea1b5f5fc39239daa6b2e610bd36eb9
2017-05-02 11:17:45 -07:00
Colin Cross
a11708d242 Merge "Add msa mips features"
am: f34d9d11d4

Change-Id: I975282316b9dac7f167e49204d55d6f56bf58a3b
2017-05-02 18:05:37 +00:00
Colin Cross
f34d9d11d4 Merge "Add msa mips features" 2017-05-02 17:49:21 +00:00
Colin Cross
432c2860a0 Add msa mips features
References to an MSA architecture feature were added in
I3cadc29434dbd5fdb3aa780198414e90f9572ec5, but never added
to the build system.

Test: builds
Change-Id: I178813824a21475e013f7e8209d9473466ab821c
2017-05-01 16:43:41 -07:00
Dan Albert
d7dc93079c Merge changes Ic32cfb3e,I282be134
am: f5464ba31a

Change-Id: I358ea393d18d8c6acd279030a28adc73e2a582d4
2017-04-30 21:35:41 +00:00
Treehugger Robot
f5464ba31a Merge changes Ic32cfb3e,I282be134
* changes:
  Add support for named versions in NDK map files.
  Generate stub libraries for unreleased API levels.
2017-04-30 21:31:24 +00:00
Dan Albert
3f6fb2db5f Add support for named versions in NDK map files.
Test: nose2
Test: make checkbuild
Bug: None
Change-Id: Ic32cfb3e0db767f695b617c787733a6ef75030aa
2017-04-28 16:11:13 -07:00
Dan Albert
49927d29d5 Generate stub libraries for unreleased API levels.
Generating released API levels and android-current is not sufficient
in a trunk-stable world. One branch will have the stable APIs and
possibly multiple unreleased API levels. We need to generate stubs
for each unreleased API level up to our current target.

I still need to add support for things like `# introduced=O` before
this is really done.

Whether or not we still need something like "current" that would map
to the absolute latest even it hasn't been assigned a code name yet
is uncertain.

Test: make ndk
Bug: None
Change-Id: I282be1347ab39c56fa887d4d71c03bb12c300dc5
2017-04-28 16:11:13 -07:00
Colin Cross
fca27e357b Merge changes from topic 'reverse-arch-includes'
am: 22eab50d45

Change-Id: I0793b207925c3ee497ca89dc8998adb26df05431
2017-04-27 23:33:09 +00:00
Colin Cross
22eab50d45 Merge changes from topic 'reverse-arch-includes'
* changes:
  Enable mips32r2dsp[r2]-fp in mega device build
  Turn installation on in mega device build
  Prepend arch variant include directories
  Make generated_sources act like generated_headers
  Pass -I to yasm
  Add arm neon and mips dspr2 arch features
2017-04-27 23:30:43 +00:00
Dan Willemsen
18a03c9657 Support ASAN for ckati and ninja
am: f173d595c2

Change-Id: I5d0b878fe9272667102e90e52abbd71372c56984
2017-04-27 23:27:35 +00:00
Dan Willemsen
f173d595c2 Support ASAN for ckati and ninja
I missed this when converting to soong_ui.

Test: m -j blueprint_tools (check soong.log)
Test: SANITIZE_HOST=address m -j blueprint_tools
Change-Id: I01eb567db6848dc36dd679557291a4e600a63bba
2017-04-27 14:33:24 -07:00
Colin Cross
1837b802e1 Enable mips32r2dsp[r2]-fp in mega device build
These seem to build now.

Test: mega device build
Change-Id: If2514258b0c57d6db484aed4c17a3e1f62109429
2017-04-27 12:21:24 -07:00
Colin Cross
893d816a6d Turn installation on in mega device build
Turn on installation in the mega device build, it is necessary for the ndk
sysroot installation.  Partially fixes mega device builds, they also need
to run without -w dupbuild=err on the ninja command line because multiple
variants of the same architecture try to install to the same ndk sysroot.

Test: mega device build
Change-Id: I982d77f9ff19f5bc29fc9fe54a0df8db3579c3e3
2017-04-27 12:21:24 -07:00
Colin Cross
ccf01e755e Prepend arch variant include directories
Arch variant include directories should override existing include
directories, add prepend_variant to the struct tags.

Test: m -j checkbuild
Change-Id: I4a758b42c19481f9496880d29dffea7836f613c5
2017-04-27 12:21:24 -07:00
Colin Cross
e90bfd157b Make generated_sources act like generated_headers
Make generated_sources dependencies honor the exported include
directories.

Test: m -j checkbuild
Change-Id: I6955cf5d985053071c2118f43fa1accdb4cc27ab
2017-04-27 12:21:24 -07:00
Colin Cross
dad8c954b2 Pass -I to yasm
external/libvpx needs -I flags to be propagated to yasm, but can't
handle all the other global flags (like -no-exceptions).  Add -I
arguments to YasmFlags as well as GlobalFlags.

Test: mega-device build of external/libvpx
Change-Id: I1607211c34b031fae8ffc1bd558b26019965a696
2017-04-27 12:21:24 -07:00
Colin Cross
0906f17f7e Add arm neon and mips dspr2 arch features
Current modules must use armv7_a_neon to specify source files that
compile only with neon.  If a future arch variant also supports neon,
all these modules will fall back to non-neon.  Support a neon arch
feature that modules can use instead.  Similarly, support dspr2 for
mips.

arm_device.go was also mixing armv7-a-neon with armv7_a_neon.  Use
armv7-a-neon consistently, and fix the - to _ when creating the
property structs.

Test: m -j checkbuild
Change-Id: I24d3764280ab3bcbb9a73c0934edc9b99fc7f6a0
2017-04-27 12:21:24 -07:00
Yi Kong
cdb2de8893 Merge "Fixups after llvm rebase"
am: 96247cef21

Change-Id: Icd460b9f05400798795e4a6a73a09925cf875528
2017-04-27 17:13:12 +00:00
Yi Kong
96247cef21 Merge "Fixups after llvm rebase" 2017-04-27 17:06:14 +00:00
Yi Kong
5cf3948310 Fixups after llvm rebase
Clang now generates a SHF_MERGE section that is rejected by GNU as on
Mips64. Change to use integrated assembler for Mips and Mips64.

Bug: 37423073
Test: external/clang/build.py
Change-Id: I8eae5cf370b930119eb6892db960f5f70777312f
2017-04-26 20:23:55 +00:00
Colin Cross
e94d74c642 Merge "Make soong mm/ targets recursive"
am: 6d7afb8637

Change-Id: I3cf34b10451f426a969d9526e2c34c01f3e5a386
2017-04-26 17:28:35 +00:00
Colin Cross
6d7afb8637 Merge "Make soong mm/ targets recursive" 2017-04-26 17:18:10 +00:00
Logan Chien
e23ef76e0e Merge "Add frameworks/opt/net/wifi to root.bp"
am: d68b8939cd

Change-Id: Ia5b926cd21976de3c2d24905562b548cd0da8a1e
2017-04-26 05:06:15 +00:00
Treehugger Robot
d68b8939cd Merge "Add frameworks/opt/net/wifi to root.bp" 2017-04-26 04:58:20 +00:00
Colin Cross
87d8b56eda Make soong mm/ targets recursive
Put mm/* targets into their parent directory's mm/ target.

Test: examine out/soong/build.ninja
Change-Id: Iacad3db8c904bb4d90b36e125bb359a7fb90368b
2017-04-25 13:26:40 -07:00
Colin Cross
d60a800788 Support test_suites in cc_benchmark modules
am: e28f4e2acf

Change-Id: Id8e491fbac1f338ee613825e8f1eb0e621c2d123
2017-04-25 20:12:07 +00:00
Logan Chien
cd304310a2 Add frameworks/opt/net/wifi to root.bp
This commit add frameworks/opt/net/wifi to root.bp so that
libwifi-system.so can become vendor_available.

Test: mmm frameworks/opt/net/wifi
Bug: 37429084
Change-Id: I98c695ec6b6c3e6788681b5dc243adab4d29d094
2017-04-25 16:16:59 +08:00
Colin Cross
e28f4e2acf Support test_suites in cc_benchmark modules
Bug: 35394669
Test: m -j checkbuild
Change-Id: I0b521d866edb1706669b8058dc128d389b5582da
2017-04-24 18:10:29 -07:00
Dan Willemsen
9fda7c79a3 Merge "Don't write output during tests"
am: dd29407e74

Change-Id: I204e1b79e29bb39486801e76e1c7e6f9bc8cf923
2017-04-20 22:52:56 +00:00
Treehugger Robot
dd29407e74 Merge "Don't write output during tests" 2017-04-20 22:46:55 +00:00
Vishwath Mohan
f376acb450 Disable CFI for ASAN targets. (Soong)
am: 8f4fdd8f76

Change-Id: Ia74f97333c0ad46d7e591c6aa4277943a9d29937
2017-04-20 21:34:16 +00:00
Dan Willemsen
57a523863d Don't write output during tests
Removes the "\nPASS\n" print (since we only strip "PASS\n")

Test: m -j blueprint_tools
Change-Id: I31abd8474d92af29e1fa4c1ae5a940f6a588336d
2017-04-20 11:24:07 -07:00
Vishwath Mohan
8f4fdd8f76 Disable CFI for ASAN targets. (Soong)
This CL disables CFI if both CFI and ASAN flags are enabled. This
allows ASAN to take precedence where needed, preventing build errors
that would otherwise arise.

Bug: 30227045
Test: SANITIZE_TARGET="address" m -j40
Change-Id: Id336bf2bf5498d4c3ea6492e36b366c76c06376e
2017-04-20 08:06:09 -07:00
Vishwath Mohan
848558ec1f Merge "Change the global CFI flag to default to enabled."
am: 9ce4529614

Change-Id: I671aff3c64d333668215d5cdfd830fe1d8f08331
2017-04-20 01:45:02 +00:00
Vishwath Mohan
9ce4529614 Merge "Change the global CFI flag to default to enabled." 2017-04-20 01:39:56 +00:00
Colin Cross
e0abd1c0ab Merge changes Ibf4d57ce,I65b49c96
am: f7d5dd7b35

Change-Id: Ice33fe6f9b69919c2f6cba72509852d568f64cf3
2017-04-20 00:20:46 +00:00
Treehugger Robot
f7d5dd7b35 Merge changes Ibf4d57ce,I65b49c96
* changes:
  Exit early on genrule command parsing failure
  Add frameworks/* to root Android.bp
2017-04-20 00:15:53 +00:00
Colin Cross
54c5dd5238 Exit early on genrule command parsing failure
cmd may be empty if android.Expand fails, and continuing results
in a panic.  Return immediately.

Test: m -j checkbuild
Change-Id: Ibf4d57ce048db9f7f16ce118ed9e9ecea5a6551c
2017-04-19 14:27:53 -07:00
Colin Cross
d87708ed4b Add frameworks/* to root Android.bp
frameworks/minikin is being converted, but enough of frameworks/*
is converted to switch to a glob.

Test: m -j checkbuild
Change-Id: I65b49c9661f4507aac9eacd108c9d8a71d272527
2017-04-19 14:27:53 -07:00
Nan Zhang
637fc7e4f7 Merge "Added duplicates checking when extracting source deps."
am: 8596bab0b0

Change-Id: I78f7bcd8b435f6075e089eb2c997031cc6095347
2017-04-19 19:55:56 +00:00
Treehugger Robot
8596bab0b0 Merge "Added duplicates checking when extracting source deps." 2017-04-19 19:50:11 +00:00
Colin Cross
73d3aec367 Merge "Convert soong_javac_filter to a wrapper"
am: 5721284104

Change-Id: I7c5d4e60f0be6e5ff70a694d3a4d7f687ab5e8f6
2017-04-18 23:03:40 +00:00
Dan Willemsen
bb2e490605 Merge "Blacklist DISPLAY / GREP_OPTIONS"
am: c957f90b10

Change-Id: I08c295a51ac181cbc89cb058fab0013715091dc9
2017-04-18 23:03:29 +00:00
Treehugger Robot
5721284104 Merge "Convert soong_javac_filter to a wrapper" 2017-04-18 22:53:46 +00:00
Treehugger Robot
c957f90b10 Merge "Blacklist DISPLAY / GREP_OPTIONS" 2017-04-18 22:51:35 +00:00
Dan Willemsen
68a09854a4 Blacklist DISPLAY / GREP_OPTIONS
We keep having makefiles reading $DISPLAY, and GREP_OPTIONS with
--color=always has caused problems with shell commands in the past.

Bug: 37333696
Test: GREP_OPTIONS="--color=always" m -j
Test: DISPLAY=test m -j (modify an Android.mk to check DISPLAY)
Change-Id: Iafab37d61ecde5c6fdb35a05f18709abc17e8554
2017-04-18 14:02:38 -07:00
Jayant Chowdhary
d256053ff9 Fix lots of warnings from abi dumping.
am: 918b1d9105

Change-Id: I368e7f80990c5ad3b37cfad51afc5855561e5551
2017-04-18 19:52:39 +00:00
Jayant Chowdhary
918b1d9105 Fix lots of warnings from abi dumping.
Also fix ndk libraries are always re-building. Fix this by having the
build system know the report's file path. This will need to be changed
once we go off "advisory mode" to keep the report if builds fail on abi
breakages.

Bug: 37451651

Bug: 37450828

Test: mm -j64 in bionic/libc produces abi-dumps without warning:
argument unused during compilation: '-Wa,--noexecstack'

Test: cd system/core/init; mma -j;  NINJA_ARGS="-d explain" mma -j; The
second mma does not show a dirty libc.so.

Change-Id: I824723fd9e76586831ee2278db0b61329b1475c0
2017-04-18 10:50:31 -07:00