Skip to content

Commit

Permalink
Disable building the source package (sonic-net#244)
Browse files Browse the repository at this point in the history
* Disable building the source package

SONiC doesn't need the source package, and this takes 5-10 minutes to
build. Disable this to save some time.

Signed-off-by: Saikrishna Arcot <[email protected]>
  • Loading branch information
saiarcot895 authored Nov 5, 2021
1 parent 0d96503 commit 56b08d0
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
26 changes: 26 additions & 0 deletions patch/preconfig/disable-building-linux-source-deb-package.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Don't build the linux source package. We don't use it.

diff --git a/debian/config/defines b/debian/config/defines
index fea89d3b2..7c1d06ad2 100644
--- a/debian/config/defines
+++ b/debian/config/defines
@@ -171,3 +171,6 @@ gcc-10: gcc-10 <!stage1 !cross !pkg.linux.nokernel>, gcc-10-@gnu-type-package@ <
# initramfs-generators
initramfs-fallback: linux-initramfs-tool
initramfs-tools: initramfs-tools (>= 0.120+deb8u2)
+
+[packages]
+source: false
diff --git a/debian/control.md5sum b/debian/control.md5sum
index b6dae911b..50787e0e6 100644
--- a/debian/control.md5sum
+++ b/debian/control.md5sum
@@ -38,7 +38,7 @@ afb508873a44a1f196c2a525fec4b415 debian/templates/image.prerm.in
381bc892fd36ef7ea5327f649b99cb98 debian/templates/sourcebin.meta.maintscript.in
814dda166c7e3ef02e6e259e805ac66a debian/templates/tests-control.image.in
33d71bfd398d2f9b3bc5c0193b67d17e debian/templates/tests-control.main.in
-ebc5cb55572d7d75228061d087c26627 debian/config/defines
+319a9dc6ff6d76fd4a1dad600e903741 debian/config/defines
59a811890d2e7129bec940075850f11f debian/config/alpha/defines
026ce5cdad7814c28f4fd87589786719 debian/config/amd64/defines
44bff3917069a99eeb20ceff24609dda debian/config/arm64/defines
1 change: 1 addition & 0 deletions patch/preconfig/series
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
packaging-update-abiname.patch
disable-building-linux-source-deb-package.patch

0 comments on commit 56b08d0

Please sign in to comment.