deb-pkg: Fix cross-building linux-headers package
authorBen Hutchings <ben@decadent.org.uk>
Thu, 5 Dec 2013 14:37:35 +0000 (14:37 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 31 Mar 2014 04:40:30 +0000 (21:40 -0700)
commitc502e92f7cd92bd80ac0e754842d68fe3c2601f6
treeefde5725cacbad032751f9192fb463f89e054622
parent5f0a3f764bd1905f8579d781aff4c757d5d0978b
deb-pkg: Fix cross-building linux-headers package

commit f8ce239dfc7ba9add41d9ecdc5e7810738f839fa upstream.

builddeb generates a control file that says the linux-headers package
can only be built for the build system primary architecture.  This
breaks cross-building configurations.  We should use $debarch for this
instead.

Since $debarch is not yet set when generating the control file, set
Architecture: any and use control file variables to fill in the
description.

Fixes: cd8d60a20a45 ('kbuild: create linux-headers package in deb-pkg')
Reported-and-tested-by: "Niew, Sh." <shniew@gmail.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Michal Marek <mmarek@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
scripts/package/builddeb