DOCS: Add information about the cross-build

Signed-off-by: Michal Biesek <michalbiesek@gmail.com>
This commit is contained in:
Michal Biesek 2023-08-15 23:13:52 +02:00
parent c19118d46f
commit 449ac9bbfb
No known key found for this signature in database
GPG Key ID: FFF2B9B1C73BB3CA
2 changed files with 11 additions and 0 deletions

View File

@ -117,6 +117,7 @@ help:
@echo " * 'install' - Install binaries and documents to system locations" @echo " * 'install' - Install binaries and documents to system locations"
@echo " * 'binary' - Build skopeo with a container" @echo " * 'binary' - Build skopeo with a container"
@echo " * 'bin/skopeo' - Build skopeo locally" @echo " * 'bin/skopeo' - Build skopeo locally"
@echo " * 'bin/skopeo.OS.ARCH' - Build skopeo for specific OS and ARCH"
@echo " * 'test-unit' - Execute unit tests" @echo " * 'test-unit' - Execute unit tests"
@echo " * 'test-integration' - Execute integration tests" @echo " * 'test-integration' - Execute integration tests"
@echo " * 'validate' - Verify whether there is no conflict and all Go source files have been formatted, linted and vetted" @echo " * 'validate' - Verify whether there is no conflict and all Go source files have been formatted, linted and vetted"

View File

@ -174,6 +174,16 @@ document generation can be skipped by passing `DISABLE_DOCS=1`:
DISABLE_DOCS=1 make DISABLE_DOCS=1 make
``` ```
### Cross-compilation
For cross-building skopeo, use the command `make bin/skopeo.OS.ARCH`, where OS represents
the target operating system and ARCH stands for the desired architecture. For instance,
to build skopeo for RISC-V 64-bit Linux, execute:
```bash
make bin/skopeo.linux.riscv64
```
### Building documentation ### Building documentation
To build the manual you will need go-md2man. To build the manual you will need go-md2man.