Skip to content

Commit

Permalink
Merge pull request #18 from CamberLoid/Camber_docs-patch
Browse files Browse the repository at this point in the history
Add section `multiarch manipulation` in spec_format.rst
  • Loading branch information
liushuyu authored Sep 3, 2023
2 parents 1cebb4e + dfe0047 commit e24797a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/source/spec_format.rst
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,23 @@ To specify multiple options, you can join the options with semicolons (``;``) li
The snippet above will make ``acbs`` rename the source directory to ``lmms-git`` and checkout the commit ``94363be``.

Multiarch Manipulation
-----------

In some certain scenarios, packagers may have needs to specify different sources or dependencies for different architectures. Therefore, ACBS provides architecture-specific variables support. Such variables look like below:

.. code-block:: bash
<VARIABLE>__<ARCH>=<VALUE>
Details about architecture-specific variables:
* ``<VARIABLE>`` supports the following values:
* ``SRCS`` and ``CHKSUM`` in ``specs``. Note that different ``SRCS__<ARCH>`` requires different ``CHKSUM__<ARCH>``, otherwise ACBS may refuse to build.
* ``PKGDEP`` and ``BUILDDEP`` in ``autobuild/defines``.

* ``<ARCH>``: By default, ACBS will automatically determine the current architecture of building environment, and replaces ``<ARCH>`` with it. Users can manually specify ``<ARCH>`` by setting the environment variable ``$CROSS`` or ``$ARCH`` to the desired architecture.

* If no ``<VARIABLE>__<ARCH>`` found, ACBS will fallback to use the default value ``<VARIABLE>``.

.. _Autobuild3: https://wiki.aosc.io/developer/packaging/autobuild3-manual/#the-defines-file
.. [1] Example:
Expand Down

0 comments on commit e24797a

Please sign in to comment.