File: README.md

package info (click to toggle)
picotool 2.2.0-a4%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,084 kB
  • sloc: cpp: 61,059; ansic: 2,999; asm: 2,048; perl: 219; sh: 212; python: 97; makefile: 41; xml: 18
file content (49 lines) | stat: -rw-r--r-- 1,024 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
## Prerequisites

You'll need Bazel (v7.0.0 or higher) or Bazelisk (a self-updating Bazel
launcher) to build the Pico SDK.

We strongly recommend you set up
[Bazelisk](https://bazel.build/install/bazelisk).

### Linux

Use your favorite package tool to install dependencies. For example, on Ubuntu:

```console
sudo apt install build-essential libudev-dev
```

On Linux you can add udev rules in order to run picotool without sudo:

```console
sudo cp udev/60-picotool.rules /etc/udev/rules.d/
```

### macOS

To build on macOS, you'll need to ensure Xcode is installed.

```console
xcode-select --install
```

### Windows

To build on Windows, you must install [Visual Studio for Desktop Development With C++](https://visualstudio.microsoft.com/vs/features/cplusplus/).

## Building picotool

From the root of the picotool repository, run Bazel with the following command:

```console
bazelisk build //:picotool
```

## Running picotool

To run picotool, run the binary built by Bazel:

```console
./bazel-bin/picotool
```