Skip to content
  1. Nov 16, 2019
  2. Nov 15, 2019
  3. Nov 14, 2019
    • Chih-Hung Hsieh's avatar
      Add TestProperties, gen test config, fix names · 41805bed
      Chih-Hung Hsieh authored
      * Rename testBinaryDecorator to testDecorator
      * Add TestProperties
        * Add install function for testDecorator to install config files
        * Add tradefed.AutoGenRustHostTestConfig
        * Depend on new build/make/core/rust_host_test_config_template.xml
          and new tradefed.testtype.rust.RustBinaryHostTest class
      * Add autogenTemplateWithName in tradefed/autogen.go
        to generate config files with customized(mutated) executable name.
      * Make rust_test module names more robust and easy to use.
        * Use crate name instead of source file name as the Stem
          for single source file modules, to match original user
          specified output file name in Cargo.toml.
        * Do not set up test module SubName when Stem is empty
          or when the module name already contains Stem suffix.
          That happens when TestPerSrcMutator is disabled or when
          there is only one source file with renamed output file name.
        * In TEST_MAPPING, references to mutated rust_test modules should be
          (1) <module_name> for single source file modules without mutation, or
          (2) <module_name>_<crate_name> for single source file modules, or
          (3) <module_name>_<source_file_base_name> for multi-file modules.
      
      Bug: 140938178
      Test: mm in rust projects, check output test file names
      Change-Id: Ifdbfa14d5eed4f10b4fb983f82c93bbb9be3f899
      41805bed
    • Mitch Phillips's avatar
      Add $$ORIGIN/lib to rpath for fuzz targets. · 1f7f54f4
      Mitch Phillips authored
      RPATH needs to be set to traverse the local directory's lib folder for
      fuzz target packages.
      
      Bug: N/A
      Test: m fuzz
      Change-Id: Idea4f04ce4c55315df7e808de5b2b4f06a88d82a
      1f7f54f4
    • Mitch Phillips's avatar
      Prebuilt shared libraries should be collected for fuzz targets. · f50bddb7
      Mitch Phillips authored
      Currently, prebuilt shared libraries fail the linkable.CcLibrary()
      check, as the module returned by NewPrebuiltSharedLibrary uses a
      prebuiltLibraryLinker as the module.linker, rather than a
      libraryDecorator (which is the check by CcLibrary()).
      
      We also need to ensure that we discard LLNDK stubs libraries, so we
      manually categorise and discard them as well. They unfortunately are are
      cc.Modules that aren't CcLibraries, as they use a custom linker object
      as well (stubDecorator).
      
      Fixes: 144415986
      Test: m fuzz
      Change-Id: I3b85ef66d1602cb8c035a0a90bddf30674e2eb71
      f50bddb7
    • Mitch Phillips's avatar
    • Jeffrey Vander Stoep's avatar
      Merge changes from topic "rust-sysroot" · f3a2d5ab
      Jeffrey Vander Stoep authored
      * changes:
        Enable x86_64 device support
        Build Rust Device Sysroots in Soong
      f3a2d5ab
    • Jaewoong Jung's avatar
      Create .gitignore and add /.idea there. · b2da7555
      Jaewoong Jung authored
      Test: git status
      Change-Id: Iba3a128b4d071aac42adb6598eab3afe305aec6c
      b2da7555
    • Paul Duffin's avatar
      Refactor sdk update mechanism · 0e0cf1dc
      Paul Duffin authored
      Creates a SnapshotBuilder and GeneratedSnapshotFile interfaces to allow
      the java library snapshot work to be moved into the java package.
      
      Test: m -j60 checkbuild
      Change-Id: I857167616026149d5e85885621b53876b419ba9b
      0e0cf1dc
    • Mitch Phillips's avatar
      Package fuzz targets into zipfiles, then coalesce. · 2edbe8e6
      Mitch Phillips authored
      Instead of writing all fuzz target files into a huge zipfile (by number
      of entries), we instead write each fuzz target and its files to a
      zipfile, then coalesce them into a big zipfile.
      
      This should simplify the repackager significantly, as no unzipping and
      repackaging should be needed (just renaming).
      
      This also solves b/144418402, where we are very close to hitting the
      POSIX args limit on the soong_zip command for the device fuzz package,
      due to the line length generated by all the entries in the huge zipfile.
      
      Fixes: 144418402
      Test: make fuzz
      Change-Id: I89797e1bea2691ff4a33a227306f2f9083d8af6e
      2edbe8e6
    • Ivan Lozano's avatar
      Add new module types to the rust whitelist. · 8a34287f
      Ivan Lozano authored
      Bug: 144490046
      Test: make rust modules
      Change-Id: Ib7122bcc20aa2cde2f48788431055fe986918dd0
      8a34287f
    • Ivan Lozano's avatar
      Allow cc modules to pull in rust includes. · e0833b1f
      Ivan Lozano authored
      Make sure LinkabeInterfaces can export include dirs to cc modules. This
      fixes the Rust implementation and makes sure these are pulled in for cc
      modules.
      
      Bug: 144052093
      Test: cc module depending on a rust library includes dirs correctly.
      Change-Id: I6b5d5e6ab6afb507178b4f2cbdc45f01031dbfe4
      e0833b1f
    • Ivan Lozano's avatar
      Merge "Soong Rust source clean up." · 263dcb73
      Ivan Lozano authored
      263dcb73
    • Jiyong Park's avatar
      Override apexes with LOCAL_OVERRIDES_MODULES · b0a012cf
      Jiyong Park authored
      APEXes are ETC type, which should be overridden via
      LOCAL_OVERRIDES_MODULES. This change fixes a bug that
      LOCAL_OVERRIDES_PACKAGES was used for APEXes.
      
      Bug: 140792287
      Test: m
      Test: add com.google.android.tzdata to PRODUCT_PACKAGES and build.
      /system/apex/com.google.android.tzdata.apex exists, but
      /system/apex/com.android.tzdata.apex doesn't.
      
      Change-Id: Id65743b36e0b706d6ffd8cae0597cc0a42a83fb7
      b0a012cf
    • Matthew Maurer's avatar
      Enable x86_64 device support · 51feafad
      Matthew Maurer authored
      Now that we have sysroots built in Soong, we can enable these devices
      and they just work.
      
      Bug: 141251907
      Bug: 141381044
      Change-Id: I562256fee372d331db883f7c1b46405945295c24
      51feafad
    • Matthew Maurer's avatar
      Build Rust Device Sysroots in Soong · 99020b04
      Matthew Maurer authored
      In order to ensure we are using current platform Bionic for any platform
      Rust binaries, we need to build the sysroot in Soong. This will also
      enable us too hook the "test" crate if necessary.
      
      While both a dynamic and static sysroot are available, on device only a
      dynamic sysroot will be injected. On host, we continue using the sysroot
      used to build the compiler as before.
      
      Bug: 139486496
      Change-Id: I127377e5b056610ceb5015a34d266250320fbc31
      99020b04
    • Jooyung Han's avatar
      Merge "make ApexProperties defaultable" · c5c4d18d
      Jooyung Han authored
      c5c4d18d
  4. Nov 13, 2019
    • Roland Levillain's avatar
      Merge "Fix some typos in Soong." · c3eb1b29
      Roland Levillain authored
      c3eb1b29
    • Jiyong Park's avatar
      Install AndroidApp only when needed · 8ba50f95
      Jiyong Park authored
      When an android_app is (directly or transitively) included in an APEX,
      multiple variants of the app is created. The problem was that all the
      variants were unconditionally installed to the device, which resulted in
      duplicated targets. Fixing the problem by not installing the app when it
      is included in APEX.
      
      Bug: 144387414
      Bug: 144135069
      Test: m
      Test: OUT_DIR=out DIST_DIR=out/dist build/soong/scripts/build-ndk-prebuilts.sh
      Change-Id: Ibcc1096e30bc55a70ddc592490805f447e185eae
      8ba50f95
    • Jiyong Park's avatar
      Reland: JNI lib is always embedded for APKs in APEX · 52cd06fc
      Jiyong Park authored
      If a JNI lib is depended on by an APK that is included in an APEX, the
      lib is embedded inside the APK.
      
      This change also fixes a bug that APKs are not mutated for APEXes.
      
      Bug: 144135069
      Test: m (apex_test.go amended)
      Change-Id: I21ac24412b30c05afc03385655c6b196130dffe3
      52cd06fc
    • Sam Saccone's avatar
      Merge "Revert submission" · f9e10f94
      Sam Saccone authored
      f9e10f94
    • Sam Saccone's avatar
      Revert submission · e3c22f7a
      Sam Saccone authored
      Reason for revert: b/144387414
      Fixes: b/144387414
      Change-Id: I21e15a4d149a5a8fefd0f84010600cb41b59db95
      e3c22f7a
    • Colin Cross's avatar
      Merge "Forbid -Weverything" · f3898e3b
      Colin Cross authored
      f3898e3b
    • Roland Levillain's avatar
      Fix some typos in Soong. · 8ac05575
      Roland Levillain authored
      Test: m
      Change-Id: I032b6ce2a61491b88416db9943b42e6af4783459
      8ac05575
    • Jooyung Han's avatar
      make ApexProperties defaultable · 18020eab
      Jooyung Han authored
      ApexPropreties are added in InitApexModule() and they are supposed to be
      defaultable. To be defaultable, InitApexModule() should be called before
      InitDefaultableModule().
      
      Bug: 144332048
      Test: m (soong test added)
      Change-Id: I6c90ed3b66a086292a4c0ecb37c61f83769e62bd
      18020eab
    • Jiyong Park's avatar
      Rename # vndk tag to # llndk · 92d6bc18
      Jiyong Park authored
      The APIs that are tagged with # vndk are actually for LLNDK libraries.
      Although LLNDK is part of VNDK, calling those APIs 'vndk' has given
      users a wrong perception that the APIs don't need to be kept stable
      because that's the norm for most of the VNDK libraries that are not
      LLNDK.
      
      In order to eliminate the misunderstanding, rename the tag to 'llndk' so
      that people introducing new such API will realize what they are signing
      themselves up for.
      
      Exempt-From-Owner-Approval: cherry-pick from internal gerrit
      
      Bug: 143765505
      Test: m
      Test: python3 test_gen_stub_libs.py
      Merged-In: I2853df3b6e245056c21d4ab3d62466954cf26d72
      (cherry picked from commit 3d7b69a6)
      Change-Id: I2853df3b6e245056c21d4ab3d62466954cf26d72
      92d6bc18
    • Treehugger Robot's avatar
    • Treehugger Robot's avatar
  5. Nov 12, 2019
    • Colin Cross's avatar
      Forbid -Weverything · 39ef52f1
      Colin Cross authored
      Use of -Weverything blocks build system changes and toolchain updates
      on new warnings.  Forbid it in the build system.  Developers can
      experiment with -Weverything on their module by adding it to their
      Android.bp file and building with
      m ANDROID_TEMPORARILY_ALLOW_WEVERYTHING=true
      
      Fixes: 143713277
      Test: manual
      Change-Id: If154db328c52f687161e7a41e486d56a129850ac
      39ef52f1
    • Treehugger Robot's avatar
Loading