arch/riscv: Fix makefile to only set flags for riscv
commit202e7d4f3c50bfac53d06eaf0b0b1247f4c95be8
authorMartin Roth <martin@coreboot.org>
Wed, 18 Jul 2018 18:03:48 +0000 (18 12:03 -0600)
committerMartin Roth <martinroth@google.com>
Wed, 18 Jul 2018 21:59:52 +0000 (18 21:59 +0000)
tree62baac251ea2eafa9ec86fa226dabae3fcb78d91
parenteeb83b6b53fc72fda60dea31fc7e0cf155ccdecf
arch/riscv: Fix makefile to only set flags for riscv

This was updating flags for ALL architectures, not just riscv.
That was bad, and gave us errors, although they weren't fatal for
some reason:
i386-elf-gcc: error: missing argument to '-mcmodel='
i386-elf-gcc: error: missing argument to '-march='
i386-elf-gcc: error: missing argument to '-mabi='

This issue started from commit 5fed693a (riscv: add support for
modifying compiler options)

Add comments to the other 'endif' statements since they're now
surrounded by a global ifeq

Change-Id: Ifa12ad98b04a5ac36148609ccdf46ca427fc5a27
Signed-off-by: Martin Roth <martin@coreboot.org>
Reviewed-on: https://review.coreboot.org/27535
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
src/arch/riscv/Makefile.inc