From 0d901068290c9960c64072bdd2b00936c375a20c Mon Sep 17 00:00:00 2001 From: aliriza Date: Thu, 29 Aug 2024 01:11:26 +0300 Subject: [PATCH] add buildtype doc --- doc/ympbuild.rst | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/doc/ympbuild.rst b/doc/ympbuild.rst index 3a4bf21..3c43bf6 100755 --- a/doc/ympbuild.rst +++ b/doc/ympbuild.rst @@ -121,6 +121,32 @@ Note: If you define **xxx** into use flag list, **xxx_depends** array items are Note: Use flags is not usable for binary packages. +Build types +=========== +Ymp can compile a package multiple time in same package. You can define multiple build type with **buildtypes** array + +.. code-block:: shell + + ... + buildtypes=(64bit 32bit) + ... + +You can check buildtype like this in ympbuild file + +.. code-block:: shell + + ... + if buildtype 32bit ; then + export CFLAGS="$CFLAGS -m32" + fi + # or check BUILDTYPE environment + if [[ "$BUILDTYPE" == "32bit" ]] ; then + export CFLAGS="$CFLAGS -m32" + fi + ... + +**Note:** If you didn't define buildtypes default build type name is **main** + Creating git based package ========================== You can create git based package. First use **ymp template** command then create git repository.