improved crosscompile
add README.md
This commit is contained in:
30
README.md
Normal file
30
README.md
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
# platforms file
|
||||||
|
|
||||||
|
## Crosscompiling
|
||||||
|
```
|
||||||
|
{
|
||||||
|
"Platforms": {
|
||||||
|
"Some crosscompile image": {
|
||||||
|
"enabled": true,
|
||||||
|
"codename": "<codename>",
|
||||||
|
"docker_dir": "<directory with Dockerfile>",
|
||||||
|
"docker_image": "<result docker image name>",
|
||||||
|
"docker_build_options": {
|
||||||
|
"image_from": "<source docker image name>",
|
||||||
|
"image_prepare_script": "<exec this script while building image>",
|
||||||
|
"arch": "<arch name>",
|
||||||
|
"toolchain": "<toolchain package name>",
|
||||||
|
"triplet": "<multiarch name>"
|
||||||
|
},
|
||||||
|
"cmake_toolchain": "<path to CMake toolchain file>",
|
||||||
|
"ppa_filters": ["<package name part to use in wildcard copy>"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
[Debian codenames](https://wiki.debian.org/DebianReleases)
|
||||||
|
[Debian arch names](https://wiki.debian.org/SupportedArchitectures)
|
||||||
|
[Debian multiarch names](https://wiki.debian.org/Multiarch/Tuples)
|
||||||
|
|
||||||
|
You can add any values in `docker_build_options` object, all these values passed to docker on building
|
||||||
@@ -115,8 +115,9 @@
|
|||||||
"docker_build_options": {
|
"docker_build_options": {
|
||||||
"image_from": "debian:bullseye-slim",
|
"image_from": "debian:bullseye-slim",
|
||||||
"image_prepare_script": "install_apt.sh",
|
"image_prepare_script": "install_apt.sh",
|
||||||
"machine": "aarch64",
|
"arch": "arm64",
|
||||||
"arch": "arm64"
|
"toolchain": "g++-aarch64-linux-gnu",
|
||||||
|
"triplet": "aarch64-linux-gnu"
|
||||||
},
|
},
|
||||||
"cmake_toolchain": "/soft/toolchain.cmake",
|
"cmake_toolchain": "/soft/toolchain.cmake",
|
||||||
"ppa_filters": ["debian11"]
|
"ppa_filters": ["debian11"]
|
||||||
|
|||||||
Reference in New Issue
Block a user