All of lore.kernel.org
 help / color / mirror / Atom feed
* PATCH: ARCH in builddeb
@ 2009-09-14  5:25 Wei Chong Tan
  2009-09-14 21:01 ` Frans Pop
  0 siblings, 1 reply; 11+ messages in thread
From: Wei Chong Tan @ 2009-09-14  5:25 UTC (permalink / raw)
  To: sam, max, elendil, linux-kernel

Hello,

I was using "make ARCH=i386 deb-pkg" in the kernel on a 64bit machine
and found out that the .deb package created was _amd64.deb.
Consequently, I modify the builddeb script to take into account the
ARCH environment variable.

Thanks,
Tan Wei Chong.

>From 477c02443f0fb5a8e39d607197720fec21cecc8b Mon Sep 17 00:00:00 2001
From: Tan, Wei Chong <weichong78@gmail.com>
Date: Mon, 14 Sep 2009 12:56:55 +0800
Subject: [PATCH] update builddeb script to allow ARCH customization
Signed-off-by: Tan, Wei Chong <weichong78@gmail.com>

---
 scripts/package/builddeb |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/scripts/package/builddeb b/scripts/package/builddeb
index 8b357b0..cdb017f 100644
--- a/scripts/package/builddeb
+++ b/scripts/package/builddeb
@@ -24,7 +24,11 @@ create_package() {
 	chmod -R go-w "$pdir"

 	# Create the package
-	dpkg-gencontrol -isp -p$pname -P"$pdir"
+	if [ "$ARCH" = "" ] ; then
+		dpkg-gencontrol -isp -p$pname -P"$pdir"
+	else
+		dpkg-gencontrol -DArchitecture=$ARCH -isp -p$pname -P"$pdir"
+	fi
 	dpkg --build "$pdir" ..
 }

-- 
1.6.0.4

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2009-09-22 23:07 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-14  5:25 PATCH: ARCH in builddeb Wei Chong Tan
2009-09-14 21:01 ` Frans Pop
2009-09-16 14:19   ` Frans Pop
2009-09-17  0:12     ` Wei Chong Tan
2009-09-18  3:10       ` Wei Chong Tan
2009-09-20 13:09         ` Frans Pop
2009-09-22  0:38           ` Frans Pop
2009-09-22 14:38             ` Frans Pop
2009-09-22 14:43           ` Wei Chong Tan
2009-09-22 16:53             ` Frans Pop
2009-09-22 23:07               ` Wei Chong Tan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.