improved crosscompile

add README.md
This commit is contained in:
2023-09-08 21:49:29 +03:00
parent a3db20a3d1
commit 04c3e62d05
2 changed files with 33 additions and 2 deletions

30
README.md Normal file
View 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

View File

@@ -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"]