Commit Graph

3 Commits

Author SHA1 Message Date
Wyatt Hepler
8f425499e1 pw_build: Require "tests" and "docs" targets in all modules
- Allow empty pw_test_group targets.
- Create empty pw_test_group targets for modules that need them.
- Create stub docs pages for modules that are missing them.
- Require odules to provide "tests" and "docs" targets by assuming
  they're present in the module list generation code.
- Update the generated modules list.

Change-Id: I5a67741afa0a8a5d2e2ba508435027f750a471c4
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/103487
Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
Pigweed-Auto-Submit: Wyatt Hepler <hepler@google.com>
Reviewed-by: Armando Montanez <amontanez@google.com>
2022-07-26 22:43:15 +00:00
Wyatt Hepler
6c5df358e6 pw_span: Switch from std::span to pw::span
This changes uses of std::span to pw::span. No changes are made to build
dependencies in this commit.

This change was made with the following shell script:

  #!/bin/bash

  readonly FILES="$(git ls-files '*.rst' '*.md' '*.h' '*.cc' '*.py')"
  readonly PW_NS_FILES="$(git grep -l 'namespace pw\>' | grep -v generate_decoding_test_data.cc)"

  echo "Updating #includes"
  sed -i --follow-symlinks \
      's/#include <span>/#include "pw_span\/span.h"/g' ${FILES}

  for name in span as_bytes as_writable_bytes dynamic_extent; do
    echo Renaming std::$name to pw::$name
    sed -i --follow-symlinks "s/std::$name/pw::$name/g" ${FILES}
    sed -i --follow-symlinks "s/pw::$name/$name/g" ${PW_NS_FILES}
    sed -i --follow-symlinks "s/using $name;//" ${PW_NS_FILES}
  done

  git checkout pw_span

  pw format -b origin/main --fix

Bug: b/235237667
Change-Id: I32edfbcb7cadf3ab39009596fdb7275fcc5ea3f5
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/98264
Commit-Queue: Wyatt Hepler <hepler@google.com>
Reviewed-by: Ted Pudlik <tpudlik@google.com>
Pigweed-Auto-Submit: Wyatt Hepler <hepler@google.com>
2022-06-29 00:15:46 +00:00
skeys
e520091eeb pw_sys_io_emcraft_sf2: Add basic UART I/O support
Introduces a GN-based build for the Emcraft Smartfusion 2 SOM.

   * Adds 'emcraft_sf2_som' as a pw_system target.
   * Smartfusion MSS HAL added to 'third_party'.

Change-Id: Ibdb4affdd11e5ba57659b90f8182ef0bc24ab9e7
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/86940
Reviewed-by: Keir Mierle <keir@google.com>
Reviewed-by: Armando Montanez <amontanez@google.com>
Commit-Queue: Sean Keys <skeys@google.com>
2022-04-04 21:13:39 +00:00