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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 4 May 2011 22:48:07 +0200
From:	Michal Marek <mmarek@...e.cz>
To:	Nuno Subtil <subtil@...il.com>
Cc:	linux-kbuild@...r.kernel.org, linux-kernel@...r.kernel.org,
	maximilian attems <max@...o.at>
Subject: Re: [PATCH 1/1] deb-pkg: fix cross-compile build

Adding Maks to CC.

On Tue, May 03, 2011 at 10:59:10PM -0700, Nuno Subtil wrote:
> When generating the header package, scripts/package/builddeb was inferring the
> target architecture by looking at the output of dpkg --print-architecture. This
> allows KBUILD_DEBARCH to override that.
> 
> Signed-off-by: Nuno Subtil <subtil@...il.com>
> ---
>  scripts/package/builddeb |    7 ++++++-
>  1 files changed, 6 insertions(+), 1 deletions(-)
> 
> diff --git a/scripts/package/builddeb b/scripts/package/builddeb
> index f6cbc3d..9372145 100644
> --- a/scripts/package/builddeb
> +++ b/scripts/package/builddeb
> @@ -246,7 +246,12 @@ mkdir -p "$destdir"
>  (cd $srctree; tar -c -f - -T /tmp/files$$) | (cd $destdir; tar -xf -)
>  (cd $objtree; tar -c -f - -T /tmp/objfiles$$) | (cd $destdir; tar -xf -)
>  rm -f /tmp/files$$ /tmp/objfiles$$
> -arch=$(dpkg --print-architecture)
> +
> +if [ -n "$KBUILD_DEBARCH" ] ; then
> +	arch="$KBUILD_DEBARCH"
> +else
> +	arch=$(dpkg --print-architecture)
> +fi
>  
>  cat <<EOF >> debian/control
>  
> -- 
> 1.7.4.4
> 
> Please Cc me on any replies related to this patch.
> 
> Thanks,
> Nuno
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
> the body of a message to majordomo@...r.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
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