File constraints.in of Package kernel-source.20241029084406

<constraints>
  <!-- Default 35GB for binary packages -->
  <overwrite>
    <conditions>
@BINARY_PACKAGES_XML@
    </conditions>
    <hardware>
      <disk>
        <size unit="G">35</size>
      </disk>
      <memory>
        <size unit="G">4</size>
      </memory>
    </hardware>
  </overwrite>

  <!-- 8GB RAM for kernel-syzkaller -->
  <overwrite>
    <conditions>
      <package>kernel-syzkaller</package>
      <package>kernel-source@VARIANT@:kernel-syzkaller</package>
    </conditions>
    <hardware>
      <physicalmemory>
        <size unit="G">8</size>
      </physicalmemory>
    </hardware>
  </overwrite>

  <!-- 8GB for kernel-source@VARIANT@ -->
  <overwrite>
    <conditions>
      <package>kernel-source@VARIANT@</package>
    </conditions>
    <hardware>
      <disk>
        <size unit="G">8</size>
      </disk>
    </hardware>
    <hostlabel exclude="true">SLOW_DISK</hostlabel>
  </overwrite>

  <!-- 4GB for kernel-docs@VARIANT@ -->
  <overwrite>
    <conditions>
      <package>kernel-docs@VARIANT@</package>
      <package>kernel-source@VARIANT@:kernel-docs@VARIANT@</package>
    </conditions>
    <hardware>
      <physicalmemory>
        <size unit="G">4</size>
      </physicalmemory>
    </hardware>
  </overwrite>

  <!-- 24GB for binary packages on armv6/7 -->
  <overwrite>
    <conditions>
      <arch>armv7l</arch>
      <arch>armv6l</arch>
@BINARY_PACKAGES_XML@
    </conditions>
    <hardware>
      <disk>
        <size unit="G">24</size>
      </disk>
    </hardware>
  </overwrite>

  <!-- 16GB of disk and 2GB of memory for binary package on s390x -->
  <overwrite>
    <conditions>
      <arch>s390x</arch>
@BINARY_PACKAGES_XML@
    </conditions>
    <hardware>
      <disk>
        <size unit="G">16</size>
      </disk>
      <memory>
        <size unit="G">2</size>
      </memory>
    </hardware>
  </overwrite>

  <!-- 8 CPUs for binary packages on x86 -->
  <overwrite>
    <conditions>
      <arch>i586</arch>
      <arch>x86_64</arch>
      <arch>riscv64</arch>
@BINARY_PACKAGES_XML@
    </conditions>
    <hardware>
      <jobs>8</jobs>
    </hardware>
  </overwrite>

  <!-- 4 CPUs for binary packages on POWER -->
  <overwrite>
    <conditions>
      <arch>ppc</arch>
      <arch>ppc64</arch>
      <arch>ppc64le</arch>
@BINARY_PACKAGES_XML@
    </conditions>
    <hardware>
      <jobs>4</jobs>
    </hardware>
  </overwrite>

  <!-- 2 CPUs for binary packages on ARM -->
  <overwrite>
    <conditions>
      <arch>aarch64</arch>
      <arch>armv6l</arch>
      <arch>armv7l</arch>
@BINARY_PACKAGES_XML@
    </conditions>
    <hardware>
      <jobs>2</jobs>
    </hardware>
  </overwrite>

  <!-- Build on recent ARMv8.1 to avoid slow builders -->
  <overwrite>
    <conditions>
      <arch>aarch64</arch>
    </conditions>
    <hardware>
      <cpu>
        <flag>asimdrdm</flag>
      </cpu>
    </hardware>
  </overwrite>

  <!-- 45GB for binary packages on aarch64 and x86-->
  <overwrite>
    <conditions>
      <arch>aarch64</arch>
      <arch>x86_64</arch>
@BINARY_PACKAGES_XML@
    </conditions>
    <hardware>
      <disk>
        <size unit="G">45</size>
      </disk>
    </hardware>
  </overwrite>

  <!-- 52GB for binary packages on riscv64-->
  <overwrite>
    <conditions>
      <arch>riscv64</arch>
@BINARY_PACKAGES_XML@
    </conditions>
    <hardware>
      <disk>
        <size unit="G">52</size>
      </disk>
    </hardware>
  </overwrite>

  <overwrite>
    <conditions>
      <arch>i586</arch>
      <arch>x86_64</arch>
      <package>kernel-obs-qa</package>
      <package>kernel-source@VARIANT@:kernel-obs-qa</package>
    </conditions>
    <sandbox>kvm</sandbox>
  </overwrite>

  <overwrite>
    <conditions>
      <arch>i586</arch>
      <arch>x86_64</arch>
      <package>kernel-obs-qa-xen</package>
      <package>kernel-source@VARIANT@:kernel-obs-qa-xen</package>
    </conditions>
    <sandbox>xen</sandbox>
  </overwrite>
</constraints>

openSUSE Build Service is sponsored by