Set a build size advisory

The StarlingX package builder is moving to support tmpfs
build environments.  In preparation for this, we need to
add build size advisories to the control files of some packages
that need abnormally large ammounts of space in which to build.
If the package is too big to build in a tmpfs environment, a
disk based environment will be used instead.

Partial-Bug: 2081843
Change-Id: I4246f8303cae03891319922bc63804d5fa38c401
Signed-off-by: Scott Little <scott.little@windriver.com>
This commit is contained in:
Scott Little 2024-09-26 10:16:36 -04:00
parent 1d12303b8a
commit 6c5f0dd9e3
4 changed files with 80 additions and 0 deletions

View File

@ -0,0 +1,39 @@
From 5dc6ea46e5d2ccb4511a95ece6a0f3fb82ef8fe3 Mon Sep 17 00:00:00 2001
From: Scott Little <scott.little@windriver.com>
Date: Wed, 25 Sep 2024 12:05:07 -0400
Subject: [PATCH] add Build-Size advisory
Add 'XS-Build-Size: 18GB' to the debian control file.
This will advise 'stx build-pkgs' of the minimum required
size of the build environment.
Signed-off-by: Scott Little <scott.little@windriver.com>
---
debian/control | 1 +
debian/templates/source.control.in | 1 +
2 files changed, 2 insertions(+)
diff --git a/debian/control b/debian/control
index aaa9f8d..4e8fadc 100644
--- a/debian/control
+++ b/debian/control
@@ -11,6 +11,7 @@ Rules-Requires-Root: no
Homepage: https://www.kernel.org/
Vcs-Browser: https://salsa.debian.org/kernel-team/linux
Vcs-Git: https://salsa.debian.org/kernel-team/linux.git
+XS-Build-Size: 18GB
Package: linux-rt-support-6.6.0-1-rt
Architecture: all
diff --git a/debian/templates/source.control.in b/debian/templates/source.control.in
index fd3d879..265c156 100644
--- a/debian/templates/source.control.in
+++ b/debian/templates/source.control.in
@@ -42,3 +42,4 @@ Rules-Requires-Root: no
Vcs-Git: https://salsa.debian.org/kernel-team/linux.git
Vcs-Browser: https://salsa.debian.org/kernel-team/linux
Homepage: https://www.kernel.org/
+XS-Build-Size: 18GB
--
2.25.1

View File

@ -10,3 +10,4 @@
0010-rtla-fix-error-for-undefined-reference.patch
0011-Update-the-patch-for-kernel-6.6.40.patch
0012-mod-fix-the-undefined-errors.patch
0013-build-size.patch

View File

@ -0,0 +1,39 @@
From e75debdde4f93ac2aaa82e5690fe762a14cbc513 Mon Sep 17 00:00:00 2001
From: Scott Little <scott.little@windriver.com>
Date: Wed, 25 Sep 2024 12:13:36 -0400
Subject: [PATCH] add Build-Size advisory
Add 'XS-Build-Size: 18GB' to the debian control file.
This will advise 'stx build-pkgs' of the minimum required
size of the build environment.
Signed-off-by: Scott Little <scott.little@windriver.com>
---
debian/control | 1 +
debian/templates/source.control.in | 1 +
2 files changed, 2 insertions(+)
diff --git a/debian/control b/debian/control
index 42881ff..e21aba7 100644
--- a/debian/control
+++ b/debian/control
@@ -11,6 +11,7 @@ Rules-Requires-Root: no
Homepage: https://www.kernel.org/
Vcs-Browser: https://salsa.debian.org/kernel-team/linux
Vcs-Git: https://salsa.debian.org/kernel-team/linux.git
+XS-Build-Size: 18GB
Package: linux-support-6.6.0-1
Architecture: all
diff --git a/debian/templates/source.control.in b/debian/templates/source.control.in
index 9a4f141..2bdb1fa 100644
--- a/debian/templates/source.control.in
+++ b/debian/templates/source.control.in
@@ -42,3 +42,4 @@ Rules-Requires-Root: no
Vcs-Git: https://salsa.debian.org/kernel-team/linux.git
Vcs-Browser: https://salsa.debian.org/kernel-team/linux
Homepage: https://www.kernel.org/
+XS-Build-Size: 18GB
--
2.25.1

View File

@ -9,3 +9,4 @@
0009-rtla-fix-error-for-undefined-reference.patch
0010-Update-the-patch-for-kernel-6.6.40.patch
0011-mod-fix-the-undefined-errors.patch
0012-build-size.patch