Skip to content
README.md 1.05 KiB
Newer Older
Marcelo Salazar's avatar
Marcelo Salazar committed
# MCU-Driver-HAL for Arm platforms
Hugues Kamba-Mpiana's avatar
Hugues Kamba-Mpiana committed

Marcelo Salazar's avatar
Marcelo Salazar committed
This repository contains the driver implementation for Arm hardware platforms.
Wilfried Chauveau's avatar
Wilfried Chauveau committed

## Building

```sh
# Configure
cmake -S . -B build
# Build
cmake --build build -j
```

You may want to add argument to those lines to customize your build. For example the configure
stage accepts:

- `-DCMAKE_BUILD_TYPE=Release` will build you applications optimised for size. See
  [here](./MCU-Driver-HAL/tools/cmake/profiles) for more details.
- `-DCMAKE_VERBOSE_MAKEFILE=ON` will make your build tool more verbose, typically printing the
  command lines invoking the compiler.
- `-DCMAKE_EXPORT_COMPILE_COMMANDS=1` generates a build database that can be used by IDE to provide
  better completion.
- `-DMBED_TOOLCHAIN=ARM` can be defined to use the ARM toolchain instead of the default `GCC_ARM`.

The build stage can be passed a specific target name after a `--` to build only that target or `clean` to remove
the build products (objects and executables). E.g.

```sh
cmake --build build -j -- clean
cmake --build build -j -- foo-bar-hal-example-serial
```