Re: PATCH: ARCH in builddeb

From: Wei Chong Tan
Date: Thu Sep 17 2009 - 23:10:34 EST


Hi Frans,

How about this? Hopefully this would work for all arch supported.

Regards,
Tan, Wei Chong.

Subject: [PATCH] update builddeb script to allow ARCH customization
Signed-off-by: Tan, Wei Chong <weichong78@xxxxxxxxx>
diff --git a/scripts/package/builddeb b/scripts/package/builddeb
index 8b357b0..96c3ae9 100644
--- a/scripts/package/builddeb
+++ b/scripts/package/builddeb
@@ -24,7 +24,12 @@ create_package() {
chmod -R go-w "$pdir"

# Create the package
- dpkg-gencontrol -isp -p$pname -P"$pdir"
+ if [ -n $ARCH ]
+ then
+ dpkg-architecture -a$ARCH -c "dpkg-gencontrol -isp -p$pname -P\"$pdir\""
+ else
+ dpkg-gencontrol -isp -p$pname -P"$pdir"
+ fi
dpkg --build "$pdir" ..
}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/