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>] [day] [month] [year] [list]
Date:	Mon, 26 Mar 2012 16:54:04 -0400
From:	Chris Metcalf <cmetcalf@...era.com>
To:	Michal Marek <mmarek@...e.cz>, linux-kbuild@...r.kernel.org,
	linux-kernel@...r.kernel.org
Subject: [PATCH] mkmakefile: add export of $ARCH if specified on command-line

If you create a new build tree and set "ARCH=foo" on the command
line, it makes sense for that build tree to remember the architecture
that it's meant to be built for.

Signed-off-by: Chris Metcalf <cmetcalf@...era.com>
---
 scripts/mkmakefile |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/scripts/mkmakefile b/scripts/mkmakefile
index 0cc0442..67682a8 100644
--- a/scripts/mkmakefile
+++ b/scripts/mkmakefile
@@ -57,3 +57,7 @@ Makefile:;
 %/: all
 	@:
 EOF
+
+if [ -n "$ARCH" ]; then
+	echo "export ARCH = $ARCH" >> $2/Makefile
+fi
-- 
1.6.5.2

--
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