Skip to content
  1. Jun 27, 2019
  2. Jun 26, 2019
  3. Jun 25, 2019
    • Dan Willemsen's avatar
      Use prebuilt m4 for bison too · c4a6aa83
      Dan Willemsen authored
      Bison is currently looking for m4 directly in `/usr/bin/m4`, instead of
      through $PATH, so it hadn't been tracked via the $PATH interposer
      checks. But if you don't install m4 at all, it starts failing.
      
      Bug: 117561006
      Bug: 130111713
      Test: Run on a machine without m4, build passes
      Change-Id: I3fbad64127c183de79c17511e979fd5df946eb80
      c4a6aa83
    • Mathieu Chartier's avatar
      Remove option to create boot image based on preloaded classes · 4a047317
      Mathieu Chartier authored
      From now on, the only supported approach is to use a boot image profile.
      
      Test: make
      
      Change-Id: Ibd8fbd1dd81db0a7b3f3b3e626a70dcc26510224
      4a047317
    • Colin Cross's avatar
      Uncompress dex in unbundled privileged apps · 53a87f52
      Colin Cross authored
      Mainline builds privileged apps unbundled and then uses them as
      prebuilts, so they need to respect the privileged flag when
      deciding whether or not to uncompress the dex.
      
      Bug: 135772877
      Test: TestUncompressDex
      Change-Id: I91da7116b779ae35c0617ef77dbcb9788902370c
      53a87f52
    • Jaewoong Jung's avatar
      Create test build dir only once for apex_test. · c1001ec0
      Jaewoong Jung authored
      Test: apex_test.go
      Change-Id: Ib96ea4ec5d5ff0d8e8cf4a9eb479099cf2b1977c
      c1001ec0
    • Jaewoong Jung's avatar
      Merge changes from topic "apex_notice" · 50c744e9
      Jaewoong Jung authored
      * changes:
        Embed NOTICE output as an APEX asset.
        Optionally embed NOTICE files in apks.
      50c744e9
    • Hsin-Yi Chen's avatar
      Generate ABI dumps for libraries without source · f6a95467
      Hsin-Yi Chen authored
      This commit enables ABI diff for libraries without source.
      Stub libraries are excluded.
      
      Test: ./create_reference_dumps.py -products aosp_arm64
      Test: make
      Bug: 135728451
      Change-Id: Idbe276db6f5e057175fc098f0226cb38996faa17
      f6a95467
    • Treehugger Robot's avatar
      Merge "Revert "Switch to toybox tar."" · ba9a5197
      Treehugger Robot authored
      ba9a5197
    • Jaewoong Jung's avatar
      Embed NOTICE output as an APEX asset. · 14f5ff62
      Jaewoong Jung authored
      Instead of outputting an aggregated NOTICE file as an intermediate build
      resource to allow Make to include it in the final system-wide NOTICE,
      process and embed it as an asset in the final APEX. This allows us to
      update the NOTICE contents automatically when an APEX is updated.
      
      Fixes: 135218846
      Test: Built mainline modules, apex_test.go
      Change-Id: Ic851b330fe93be1f602907d44ecc7886c3b0171b
      14f5ff62
    • Jaewoong Jung's avatar
      Optionally embed NOTICE files in apks. · 5b425e2e
      Jaewoong Jung authored
      If embed_notices or ALWAYS_EMBED_NOTICES is set, collect NOTICE files
      from all dependencies of the android_app, merge them with the app's own
      one (if exists), transform it to HTML, gzip it, and put it as an asset
      in the final APK output.
      
      Bug: 135460391
      Test: app_test.go
      Change-Id: I52d92e2fd19b3f5f396100424665c5cc344190d8
      5b425e2e
    • Elliott Hughes's avatar
      Revert "Switch to toybox tar." · afeb6cb8
      Elliott Hughes authored
      This reverts commit 3b584b78.
      
      Reason for revert: missing --mode.
      
      Change-Id: I0cde94c38905e26c79c31a03fd0177d7d57daa32
      afeb6cb8
  4. Jun 24, 2019
  5. Jun 22, 2019
    • Colin Cross's avatar
      Don't pass --legacy by default to aapt2 compile · 4215cfd8
      Colin Cross authored
      Don't pass --legacy by default, it is rarely necessary and converts
      some errors into warnings that crash at runtime.  The modules that
      need it have had --legacy added to aaptflags.
      
      Bug: 135597368
      Test: m java
      Change-Id: Ib05a07ead4084dd32ba28df26708d81bb53f2f2a
      4215cfd8
    • Colin Cross's avatar
      Allow passing --legacy in aaptflags · a0ba2f58
      Colin Cross authored
      --legacy will soon no longer be passed by default to all aapt2
      compiles.  Allow it to be specified in aaptflags by passing it to
      aapt2 compile when it is present and filtering it out from the
      flags passed to aapt2 link.
      
      Bug: 135597368
      Test: m java
      Change-Id: Ib65d1a9b7c32ae4ff5ab6f58e66aedfb5f296712
      a0ba2f58
  6. Jun 21, 2019
  7. Jun 20, 2019
    • Patrice Arruda's avatar
      Soong: Add BUILD_MODULES build action in soong_ui. · 3928206e
      Patrice Arruda authored
      There was one case that did not work:
        1) Create dir in root source tree
        2) Run "m libc"
      
      The build would fail as it was using the mma logic. A separate
      one named BUILD_MODULES was added to allow building specific
      modules in any directories using the "m" command.
      
      Bug: b/130049705
      Test: unit test cases, ran "m libc" in a tmp directory inside
            of the source tree.
      
      Change-Id: I8d23e685a673a311001ee8edd89bd73b662392dd
      3928206e
    • Colin Cross's avatar
      Fix data races in finder_test.go · 2f5a484e
      Colin Cross authored
      Fix data races by incrementing clock before starting the finder.
      Fixes:
      ==================
      WARNING: DATA RACE
      Read at 0x00c0003be1c0 by goroutine 99:
        android/soong/finder/fs.(*MockFs).WriteFile()
            build/soong/finder/fs/fs.go:159 +0x869
        android/soong/finder.(*Finder).dumpDb()
            build/soong/finder/finder.go:1163 +0x296
        android/soong/finder.(*Finder).goDumpDb.func1()
            build/soong/finder/finder.go:337 +0x3c
      
      Previous write at 0x00c0003be1c0 by goroutine 43:
        android/soong/finder.TestDirectoryNotPermitted()
            build/soong/finder/fs/fs.go:155 +0x49a
        testing.tRunner()
            prebuilts/go/linux-x86/src/testing/testing.go:865 +0x163
      
      Goroutine 99 (running) created at:
        android/soong/finder.(*Finder).goDumpDb()
            build/soong/finder/finder.go:336 +0x8d
        android/soong/finder.(*Finder).loadFromFilesystem()
            build/soong/finder/finder.go:380 +0x12b
        android/soong/finder.newImpl()
            build/soong/finder/finder.go:197 +0x38d
        android/soong/finder.newFinderAndErr()
            build/soong/finder/finder_test.go:58 +0x245
        android/soong/finder.newFinderWithNumThreads()
            build/soong/finder/finder_test.go:42 +0xb3
        android/soong/finder.TestDirectoryNotPermitted()
            build/soong/finder/finder_test.go:38 +0x386
        testing.tRunner()
            prebuilts/go/linux-x86/src/testing/testing.go:865 +0x163
      
      Goroutine 43 (running) created at:
        testing.(*T).Run()
            prebuilts/go/linux-x86/src/testing/testing.go:916 +0x65a
        testing.runTests.func1()
            prebuilts/go/linux-x86/src/testing/testing.go:1157 +0xa8
        testing.tRunner()
            prebuilts/go/linux-x86/src/testing/testing.go:865 +0x163
        testing.runTests()
            prebuilts/go/linux-x86/src/testing/testing.go:1155 +0x523
        testing.(*M).Run()
            prebuilts/go/linux-x86/src/testing/testing.go:1072 +0x2eb
        main.main()
            out/soong/.bootstrap/soong-finder/test/test.go:157 +0x1dc
      ==================
      
      Test: run finder_test.go with race detector enabled
      Change-Id: Ia77090dabaf8b14a80ac9ce938fef75f1d382574
      2f5a484e
    • Colin Cross's avatar
      Optimize sanitizerRuntimeDepsMutator · 0b90833e
      Colin Cross authored
      sanitizerRuntimeDepsMutator only modifies the currently visited
      module, it can visit modules in parallel.
      
      Also, stop recursing into modules that are not static dependencies,
      and stop recursing if the module already has all modifications that
      the mutator could make.
      
      Test: m checkbuild
      Change-Id: I95a57f763a91940f1854ba3c587a2f70e8baba97
      0b90833e
Loading