File constraints.in of Package kernel-source.24574

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

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

  <!-- 8GB for kernel-source -->
  <overwrite>
    <conditions>
      <package>kernel-source</package>
      <package>kernel-source-azure</package>
      <package>kernel-source-rt</package>
    </conditions>
    <hardware>
      <disk>
        <size unit="G">8</size>
      </disk>
    </hardware>
  </overwrite>

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

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

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

  <!-- 8 CPUs for binary packages on x86 -->
  <overwrite>
    <conditions>
      <arch>i586</arch>
      <arch>x86_64</arch>
@BINARY_PACKAGES_XML@
    </conditions>
    <hardware>
      <processors>8</processors>
    </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>
      <processors>4</processors>
    </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>
      <processors>2</processors>
    </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, riscv64 and x86-->
  <overwrite>
    <conditions>
      <arch>aarch64</arch>
      <arch>riscv64</arch>
      <arch>x86_64</arch>
@BINARY_PACKAGES_XML@
    </conditions>
    <hardware>
      <disk>
        <size unit="G">45</size>
      </disk>
    </hardware>
  </overwrite>

  <overwrite>
    <conditions>
      <arch>i586</arch>
      <arch>x86_64</arch>
      <package>kernel-obs-qa</package>
    </conditions>
    <sandbox>kvm</sandbox>
  </overwrite>

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

openSUSE Build Service is sponsored by