From 04c3e62d05816e1a3b2bf5c04e040bd18eb4f2fe Mon Sep 17 00:00:00 2001 From: peri4 Date: Fri, 8 Sep 2023 21:49:29 +0300 Subject: [PATCH] improved crosscompile add README.md --- README.md | 30 ++++++++++++++++++++++++++++++ platforms.json | 5 +++-- 2 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..4fd3cc3 --- /dev/null +++ b/README.md @@ -0,0 +1,30 @@ +# platforms file + +## Crosscompiling +``` +{ + "Platforms": { + "Some crosscompile image": { + "enabled": true, + "codename": "", + "docker_dir": "", + "docker_image": "", + "docker_build_options": { + "image_from": "", + "image_prepare_script": "", + "arch": "", + "toolchain": "", + "triplet": "" + }, + "cmake_toolchain": "", + "ppa_filters": [""] + } + } +} +``` + +[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 \ No newline at end of file diff --git a/platforms.json b/platforms.json index 1e1e7fa..4f4a5cc 100644 --- a/platforms.json +++ b/platforms.json @@ -115,8 +115,9 @@ "docker_build_options": { "image_from": "debian:bullseye-slim", "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", "ppa_filters": ["debian11"]