[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <31cb94fa0909172010v1af9b528vcad5fefbf75341e9@mail.gmail.com>
Date: Fri, 18 Sep 2009 11:10:05 +0800
From: Wei Chong Tan <weichong78@...il.com>
To: Frans Pop <elendil@...net.nl>
Cc: sam@...nborg.org, max@...o.at, linux-kernel@...r.kernel.org
Subject: Re: PATCH: ARCH in builddeb
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@...il.com>
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@...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