Skip to content
Snippets Groups Projects
  1. Dec 27, 2018
  2. Dec 26, 2018
  3. Dec 21, 2018
    • Gary Bressler's avatar
      [cmx] Code improvements for cmx tool · 2feaa42d
      Gary Bressler authored
      - Functions that return an error return a custom Error instead of
      failure::Error. This will make it possible to have separate error types
      for errors generated within the cmx code.
      - Added `common` module as a place for the error type and constants
      (currently just CMX_SCHEMA)
      - Tests are converted to macros to make them more convenient to write
      and to make it so Rust will report the name of the test that failed.
      
      TESTED=./out/x64/host_x64/cmx_bin_test_rustc
      
      Change-Id: Icc6dc2e30ce8f3f0db9fdcc00c811373cb38649b
      2feaa42d
    • Joshua Seaton's avatar
      [bootserver][images] Give kernel bootserver switch as --boot. · 26ea00a3
      Joshua Seaton authored
      Currently, the kernel corresponds to a positional bootserver argument,
      represented by "" in images.json. This fixes that to pass the kernel
      under --boot.
      
      Test: images.json as expected (no ""'s); pave.sh and netboot.sh as
      expected.
      
      Change-Id: I5a4f786278b75114e234624a65036677d762fab7
      26ea00a3
  4. Dec 20, 2018
    • Taylor Cramer's avatar
      [rust] Fix rustc_macro extension on mac · 00a79bc5
      Taylor Cramer authored
      Change-Id: Id9a1662c80903d6d1aa73ebf261b9d41bd4115a9
      00a79bc5
    • Leo Lung's avatar
      [fuchsia-pkg] Whitelist packages with cmx · b4c8b007
      Leo Lung authored
      Whitelist all packages that have cmx's to be able to launch with bare
      package URLs.
      
      TESTED=
      List generated with:
      print(get_path_info(get_label_info(target_name,"dir"), "dir"))
      in assert_cmx.gni when a cmx is found
      
      fx set x64 --packages=garnet/packages/kitchen_sink,peridot/packages/kitchen_sink,topaz/packages/kitchen_sink
      
      CF-156 #comment
      
      Change-Id: I909a78f1bbdc351a1b5b94b707e70e366164a71b
      b4c8b007
    • Devon H. O'Dell's avatar
      [go] Add skip_vet option for build · abfb7143
      Devon H. O'Dell authored
      The go vet command has a special invokation mode for which it can be
      directed to vet the go source tree itself. This mode allows one to
      specify whitelists for checks to ignore. When running go vet on a random
      package, these whitelists can't be used.
      
      Because we currently build go tests as separate packages to run on
      Fuchsia targets, we cannot make use of this go vet mode for our
      packages.
      
      The CPU pprof test relies on the runtime's pprof package, which has one
      of these go vet exceptions. Since the whitelist can't be used, we can't
      detect this exception. The simplest path forward is to allow skipping go
      vet for GN targets. This flag should not be used for anything outside
      the go source tree.
      
      Test: pprof patch succeeds building
      Change-Id: I7c168ef3b166e1773aa368608485b48a2742a8c3
      abfb7143
    • Taylor Cramer's avatar
      [rust] Update to new rustc which uses lld directly · bacf062f
      Taylor Cramer authored
      Test: compiled
      Change-Id: I28e898dbcbf912e06192538422584ece81d26cc5
      bacf062f
  5. Dec 19, 2018
    • Leo Lung's avatar
      [fuchsia-pkg][cmx_schema] Remove deprecated-bare-pkg-url · 70825dac
      Leo Lung authored
      Now that deprecated-bare-package-url is merged in at build time in GN
      with a build flag, but *after* cmx validation, we can get rid of this.
      This prevents developers from manually adding the flag to their cmx
      files.
      
      Possible concerns:
      - missed cases during flag flip, one less possible hot fix path.
      - google3/outside of GN don't have cmx valildation (check with dgonyeo);
        if they have, then we'd need to keep an eye on that copy of the schema.
      
      TESTED=fx set x64; fx full-build
      
      CF-156 #comment
      
      Change-Id: I68851d46b1af2a7b50d07f1797ca042b66e628a9
      70825dac
    • Derek Gonyeo's avatar
      [cmx] remove duplicate schema file · 07c3814e
      Derek Gonyeo authored
      Schema file for cmx validation is now located at tools/cmx/schema.json.
      This file should have been deleted when that file was added, so delete
      it now.
      
      TEST: can still build fuchsia successfully
      Change-Id: Idf17f206e4a35879cb73fb6e4beb8518716aad39
      07c3814e
    • Taylor Cramer's avatar
      [rust] Add GN template for Rust procedural macros · 6c5d53a7
      Taylor Cramer authored
      Test: switched the fuchsia-async-macro crate over to
      use this template rather than being built as part of
      the third-party build, compiled.
      
      Change-Id: Ic652a80b18fb82b14c838bfff12f10e0d1e3caef
      6c5d53a7
    • Derek Gonyeo's avatar
      [tools/cmx] fix test flake · aa629358
      Derek Gonyeo authored
      Valico isn't consistent in the ordering of error messages, so sort
      errors before assembling the final message such that tests have reliable
      output.
      
      TEST: while [ 0 -eq $? ]; do ./out/x64/host_x64/cmx_bin_test_rustc; done
      Change-Id: I96897ee42344afd9dd2c2e473c1bb6488ada20f5
      aa629358
    • Leo Lung's avatar
      [fuchsia-pkg] Merge deprecated-bare-package-url based on whitelist · d4cd29b1
      Leo Lung authored
      TESTED=
      built with the flag on token_manager.cmx
      booted topaz
      fx shell 'cat /pkgfs/packages/token_manager_factory/0/meta/token_manager_factory.cmx'
      fx shell 'cat /pkgfs/packages/sysmgr/0/meta/sysmgr.cmx'
      also observed that there is a complaint for token manager with bare
      package urls
      
      CF-156 #comment
      
      Change-Id: I491c922255ec4517f4fa43d54efe8525946cf1a1
      d4cd29b1
  6. Dec 18, 2018
    • Roland McGrath's avatar
      [gn] Populate $root_build_dir/.build-id/ hierarchy · 506572ef
      Roland McGrath authored
      C/C++ builds in GN doing stripping now use llvm-objcopy's new features
      to populate the .build-id/ hierarchy with links to the stripped file
      and the debug (i.e. unstripped) file.  Rust and Go links still need to
      be taught to do the same.
      
      To get all of the Zircon binaries into the GN-produced .build-id/
      hierarchy, we use //scripts/build_id_conv.py to populate it based on
      Zircon's ids.txt files.
      
      Bug: TC-303 #comment Fuchsia GN populates .build-id for C/C++ binaries and Zircon
      Test: CQ & manual inspection of .build-id/ contents
      Change-Id: I433e299969dd776d5f0c4be5390350572a966be5
      506572ef
    • Tong Li's avatar
      Reland "[gn] Have the dump_breakpad_symbols produced an archive of breakpad symbols" · 3671c61d
      Tong Li authored
      This reverts commit 850bcb51.
      
      Reason for revert: Now the buildtools/fuchsia.ensure points to the correct revision number of tools/dump_breakpad_symbol, so the '-tar-file' flag is ready to use now
      
      Original change's description:
      > Revert "[gn] Have the dump_breakpad_symbols produced an archive of breakpad symbols"
      > 
      > This reverts commit 43b90d08.
      > 
      > Reason for revert: This is breaking the release builders; Ninja build executes this command and the '-tar-file' flag is not defined
      > 
      > Original change's description:
      > > [gn] Have the dump_breakpad_symbols produced an archive of breakpad symbols
      > > 
      > > IN-851 #comment
      > > 
      > > Change-Id: I123dcc5bdd7bfe712d032ec9ddfc64b794812ba3
      > 
      > TBR=joshuaseaton@google.com,tonglisayhi@google.com
      > 
      > # Not skipping CQ checks because original CL landed > 1 day ago.
      > 
      > Change-Id: Idbadce5b8e4f27842e81f83a40a35ee026b5a197
      
      TBR=kjharland@google.com,joshuaseaton@google.com,tonglisayhi@google.com
      
      Change-Id: Ic61cd30014b3e0feea4d51a0b2c006969cd293ed
      No-Presubmit: true
      No-Tree-Checks: true
      No-Try: true
      3671c61d
    • Kendal Harland's avatar
      Revert "[gn] Have the dump_breakpad_symbols produced an archive of breakpad symbols" · 850bcb51
      Kendal Harland authored
      This reverts commit 43b90d08.
      
      Reason for revert: This is breaking the release builders; Ninja build executes this command and the '-tar-file' flag is not defined
      
      Original change's description:
      > [gn] Have the dump_breakpad_symbols produced an archive of breakpad symbols
      > 
      > IN-851 #comment
      > 
      > Change-Id: I123dcc5bdd7bfe712d032ec9ddfc64b794812ba3
      
      TBR=joshuaseaton@google.com,tonglisayhi@google.com
      
      # Not skipping CQ checks because original CL landed > 1 day ago.
      
      Change-Id: Idbadce5b8e4f27842e81f83a40a35ee026b5a197
      850bcb51
  7. Dec 17, 2018
    • rvargas's avatar
      [zedboot] add unbind · cda48ff3
      rvargas authored
      This tool simplifies storage debugging from Zedboot.
      
      Test: manual
      Change-Id: I7ffe2fa155f032baaa2393b947535d5d982c23c1
      cda48ff3
    • Adam Barth's avatar
      Revert "[fidl][overnet] Allow extra C++ dependencies" · 97777d2c
      Adam Barth authored
      This reverts commit f07f6271.
      
      Reason for revert: Had Code-Review -1 before landing.
      
      Original change's description:
      > [fidl][overnet] Allow extra C++ dependencies
      > 
      > Allows additional C++ dependencies to be listed for FIDL libraries, in
      > turn enabling additional code generation options.
      > 
      > Test: utilized on an upcoming garnet CL
      > 
      > Change-Id: I13a6063411ebfbb76d6ce3d02c1f98f5f5e92007
      
      TBR=abarth@google.com,ctiller@google.com,pascallouis@google.com
      
      Change-Id: Ic62f59620275ac3e2628a5bc1423bf309b574a84
      No-Presubmit: true
      No-Tree-Checks: true
      No-Try: true
      97777d2c
    • Craig Tiller's avatar
      [fidl][overnet] Allow extra C++ dependencies · f07f6271
      Craig Tiller authored
      Allows additional C++ dependencies to be listed for FIDL libraries, in
      turn enabling additional code generation options.
      
      Test: utilized on an upcoming garnet CL
      
      Change-Id: I13a6063411ebfbb76d6ce3d02c1f98f5f5e92007
      f07f6271
    • Alex Legg's avatar
      [guest] Rename integration_tests -> integration. · 974bac05
      Alex Legg authored
      Change-Id: I6fc673a1a9ee35ec6acba45edfef9a4094478dd4
      974bac05
  8. Dec 16, 2018
  9. Dec 14, 2018
  10. Dec 13, 2018
  11. Dec 12, 2018
  12. Dec 11, 2018
    • Gary Bressler's avatar
      [cmx] Remove deprecated-all-services from cmx schema · dd82b39a
      Gary Bressler authored
      Before this is submitted, deprecated-all-services will be removed from
      the two remaining cmx that have it
      
      TESTED=builds
      
      Change-Id: Ida4d5e3807dd50cb0e5892b3c718581ab2563766
      dd82b39a
    • Joshua Seaton's avatar
      [test spec] Tidy up test specs · 46e25c36
      Joshua Seaton authored
      Tidy up the test_spec template and make more idiomatic.
      
      Test: CQ
      Change-Id: I337cb018c852200ef5c6806c3ad8aa2ff29486c8
      46e25c36
    • Joshua Seaton's avatar
      [packages] Add fuchsia_packages directly to monolith. · 1213eb1d
      Joshua Seaton authored
      Currently fuchsia_packages are added to monolith by way of the
      preprocess_products.py script. This layer of indirection isn't necessary
      and we may add them to monolith directly before processing.
      
      Also, tidied contradictory documentation.
      
      Change-Id: Idb48e60f3cc273aac2f04c2cf939318d5153ea8c
      1213eb1d
    • Kevin Wells's avatar
      [build] Support build variants for components · 429e3828
      Kevin Wells authored
      This change mimic's the package templates behavior when the current
      toolchain and the target toolchain are not the same.
      
      Test: build with no variants and "asan" variant
      
      BLD-329 #done
      
      Change-Id: I2b81e6522472b6ec9f102310ada4e856471977a3
      429e3828
    • Derek Gonyeo's avatar
      [cmx] Add cmx, a tool for cmx processing logic · cf3b291b
      Derek Gonyeo authored
      This tool can format, validate, and merge CMX files. Add build rules
      that perform these actions as appropriate. Add //build/rustfmt.toml to
      support rustfmt'ing code in //build.
      
      CP-85 #comment
      CP-86 #done
      CP-119 #done
      
      Change-Id: Ibd9f3f76a6cd4279b583d8205ebceed7fd0722e4
      cf3b291b
    • James Robinson's avatar
      [guess_layer] Remove pre-flower logic and comments · 3f3190bd
      James Robinson authored
      At this point the pre-flower workflows are not supported or functional,
      so we don't need to carry this code around any more.
      
      Test: manual
      Change-Id: Iccf3ea702d57ff60bb7827033ffdefa92b06b534
      3f3190bd
  13. Dec 10, 2018
    • John Bauman's avatar
      [images] Remove data_image_size · 21a44552
      John Bauman authored
      It doesn't do anything anymore. Instead add a comment about changing
      fvm_image_size.
      
      Test: CQ
      Change-Id: I5d5457a1b3048e2d11311c24a2775c2409e83ef1
      21a44552
    • Taylor Cramer's avatar
      [rust] Deny warnings by default · b1623869
      Taylor Cramer authored
      Change-Id: Ib3cf3acc36c99e7f6653adc42ad966141b4aabb3
      b1623869
    • Gary Bressler's avatar
      [resolve] Trampolines end in newline. · 86362613
      Gary Bressler authored
      The process launcher expects #!resolve VMOs to end in a newline.
      
      Previously, this happened to work because the VMO was padded with \0's,
      which meant that the resource name passed to the Resolve call was
      interpreted as the right string (albeit with the wrong length).
      
      However, for other languages that do not use C-strings (such as Rust),
      this causes problems, particularly when the string is checked when
      passed through a C ABI boundary.
      
      TESTED=logged that the resource name had the right length
      
      Change-Id: I6ed94c24bf446958d0546c1d96cb5f7a06aa93fb
      86362613
  14. Dec 08, 2018
  15. Dec 07, 2018
    • Aaron Green's avatar
      [fuzzing] Enable FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION · 509dc50f
      Aaron Green authored
      The fuzzing build macro was elided at some point in the development of
      the fuzz target GN tempate.  This CL adds it back.
      
      SEC-44
      
      Tests: Confirmed flag is set on ninja invocation for fuzz targets
      Change-Id: I22f141f5c7a606fae0f3f11b5b0acc5e95445fc8
      509dc50f
Loading