lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <31cb94fa0909132225l6cb98739o59d105ef480d1cd2@mail.gmail.com>
Date:	Mon, 14 Sep 2009 13:25:29 +0800
From:	Wei Chong Tan <weichong78@...il.com>
To:	sam@...nborg.org, max@...o.at, elendil@...net.nl,
	linux-kernel@...r.kernel.org
Subject: PATCH: ARCH in builddeb

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@...il.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@...il.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ