diff options
author | Patrick Rudolph <siro@das-labor.org> | 2018-11-28 07:40:45 +0100 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2018-12-20 22:13:48 +0000 |
commit | 146fe6da096fbc083827ff171fe9cd70d304135e (patch) | |
tree | 099061557ed2f5ee64d246d93afb991a0ee17178 /util | |
parent | a2faaa9a27ada1ddb47163e01f450982830f9955 (diff) |
util/xcompile/xcompile: Enable x86_64 support
Similar to i686 on x86_32, compile for nocona on x86_64.
Nocona is the first Pentium 4 CPU that has long mode support.
Required for 64bit support.
Change-Id: Ied28f98f89610a748be8d66cf35814e9112a4407
Signed-off-by: Patrick Rudolph <siro@das-labor.org>
Reviewed-on: https://review.coreboot.org/c/29877
Reviewed-by: Philipp Deppenwiese <zaolin.daisuki@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'util')
-rwxr-xr-x | util/xcompile/xcompile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile index d416e5d387..58f60f0026 100755 --- a/util/xcompile/xcompile +++ b/util/xcompile/xcompile @@ -236,7 +236,13 @@ EOF # The Quark processor doesn't support the instructions # introduced with the Pentium 6 architecture, so allow it # to use i586 instead. -if [ "${TARCH}" = "x86_64" ] || [ "${TARCH}" = "x86_32" ]; then +if [ "${TARCH}" = "x86_64" ]; then +cat <<EOF + GCC_CFLAGS_${TARCH} += -march=nocona +EOF +fi + +if [ "${TARCH}" = "x86_32" ]; then cat <<EOF ifneq (\$(CONFIG_USE_MARCH_586)\$(CONFIG_LP_USE_MARCH_586),) |