|
| 1 | +{/* DO NOT EDIT! */} |
| 2 | +{/* Automatically generated from xbb-helper/templates/docusaurus/common. */} |
| 3 | + |
| 4 | +import CodeBlock from '@theme/CodeBlock'; |
| 5 | + |
| 6 | +import customField from '@site/src/libs/customField'; |
| 7 | +import {developmentDurations} from '../../maintainer/_development-durations.mdx' |
| 8 | + |
| 9 | +{/* ------------------------------------------------------------------------ */} |
| 10 | + |
| 11 | +{/* Arguments: props.platform */} |
| 12 | + |
| 13 | +{props.platform == "win32-x64" ? ( <p>The Windows builds run on GNU/Linux, using <a href="https://mingw-w64.org">mingw-w64</a>.</p> ) : ''} |
| 14 | + |
| 15 | +To prepare the docker build: |
| 16 | + |
| 17 | +<CodeBlock language="sh"> { |
| 18 | +`xpm run install -C ~/Work/xpack-dev-tools/qemu-riscv-xpack.git/build-assets && \\ |
| 19 | +xpm run docker-prepare --config ${props.platform} -C ~/Work/xpack-dev-tools/qemu-riscv-xpack.git/build-assets |
| 20 | +`} </CodeBlock> |
| 21 | + |
| 22 | +<details> |
| 23 | +<summary>... or, with the writable helper ...</summary> |
| 24 | + |
| 25 | +<CodeBlock language="sh"> { |
| 26 | +`xpm run install -C ~/Work/xpack-dev-tools/qemu-riscv-xpack.git/build-assets && \\ |
| 27 | +xpm run link-deps -C ~/Work/xpack-dev-tools/qemu-riscv-xpack.git/build-assets && \\ |
| 28 | +xpm run docker-prepare --config ${props.platform} -C ~/Work/xpack-dev-tools/qemu-riscv-xpack.git/build-assets && \\ |
| 29 | +xpm run docker-link-deps --config ${props.platform} -C ~/Work/xpack-dev-tools/qemu-riscv-xpack.git/build-assets |
| 30 | +`} </CodeBlock> |
| 31 | + |
| 32 | +</details> |
| 33 | + |
| 34 | +To run the docker build: |
| 35 | + |
| 36 | +<CodeBlock language="sh"> { |
| 37 | +`xpm run docker-build --config ${props.platform} -C ~/Work/xpack-dev-tools/qemu-riscv-xpack.git/build-assets |
| 38 | +`} </CodeBlock> |
| 39 | + |
| 40 | +or, for more verbosity, run the similar development build: |
| 41 | + |
| 42 | +<CodeBlock language="sh"> { |
| 43 | +`xpm run docker-build-development --config ${props.platform} -C ~/Work/xpack-dev-tools/qemu-riscv-xpack.git/build-assets |
| 44 | +`} </CodeBlock> |
| 45 | + |
| 46 | +{developmentDurations[ props.platform ]}, the output of the build script is a compressed |
| 47 | +archive and its SHA signature, created in |
| 48 | +the <code>buils-assets/build/{props.platform}/deploy</code> folder: |
| 49 | + |
| 50 | +* <code>xpack-qemu-riscv-{customField('upstreamVersion')}-{customField('xpackSubversion')}-{props.platform}.tar.gz</code> |
| 51 | +* <code>xpack-qemu-riscv-{customField('upstreamVersion')}-{customField('xpackSubversion')}-{props.platform}.tar.gz.sha</code> |
| 52 | + |
| 53 | +To rerun the build, invoke the **deep-clean** action and repeat from install: |
| 54 | + |
| 55 | +<CodeBlock language="sh"> { |
| 56 | +`xpm run deep-clean --config ${props.platform} -C ~/Work/xpack-dev-tools/qemu-riscv-xpack.git/build-assets |
| 57 | +`} </CodeBlock> |
0 commit comments