From 6c5f0dd9e38231b7bc89f459cf2a526fcb6a5185 Mon Sep 17 00:00:00 2001 From: Scott Little Date: Thu, 26 Sep 2024 10:16:36 -0400 Subject: [PATCH] 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 --- .../debian/deb_patches/0013-build-size.patch | 39 +++++++++++++++++++ kernel-rt/debian/deb_patches/series | 1 + .../debian/deb_patches/0012-build-size.patch | 39 +++++++++++++++++++ kernel-std/debian/deb_patches/series | 1 + 4 files changed, 80 insertions(+) create mode 100644 kernel-rt/debian/deb_patches/0013-build-size.patch create mode 100644 kernel-std/debian/deb_patches/0012-build-size.patch diff --git a/kernel-rt/debian/deb_patches/0013-build-size.patch b/kernel-rt/debian/deb_patches/0013-build-size.patch new file mode 100644 index 00000000..5003e95b --- /dev/null +++ b/kernel-rt/debian/deb_patches/0013-build-size.patch @@ -0,0 +1,39 @@ +From 5dc6ea46e5d2ccb4511a95ece6a0f3fb82ef8fe3 Mon Sep 17 00:00:00 2001 +From: Scott Little +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 +--- + 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 + diff --git a/kernel-rt/debian/deb_patches/series b/kernel-rt/debian/deb_patches/series index e915cf5e..e210c1ba 100644 --- a/kernel-rt/debian/deb_patches/series +++ b/kernel-rt/debian/deb_patches/series @@ -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 diff --git a/kernel-std/debian/deb_patches/0012-build-size.patch b/kernel-std/debian/deb_patches/0012-build-size.patch new file mode 100644 index 00000000..05de6622 --- /dev/null +++ b/kernel-std/debian/deb_patches/0012-build-size.patch @@ -0,0 +1,39 @@ +From e75debdde4f93ac2aaa82e5690fe762a14cbc513 Mon Sep 17 00:00:00 2001 +From: Scott Little +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 +--- + 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 + diff --git a/kernel-std/debian/deb_patches/series b/kernel-std/debian/deb_patches/series index e645bacd..e204d52d 100644 --- a/kernel-std/debian/deb_patches/series +++ b/kernel-std/debian/deb_patches/series @@ -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