xilsecure: Don't consider directory components in toolchain check

The makefile tries to detect gnu vs ARM toolchain by string-comparing
the COMPILER with some hardcoded values. This fails when the toolchain
is specified with directory components. Hence, remove directory
components from the tests.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
This commit is contained in:
Soren Brinkmann 2015-04-24 23:07:13 -07:00 committed by Nava kishore Manne
parent 97f9e315c6
commit 9383db5c21

View file

@ -35,13 +35,13 @@ ARCHIVER=
CP=cp
COMPILER_FLAGS=
ifeq ($(COMPILER) , arm-xilinx-eabi-gcc)
ifeq ($(notdir $(COMPILER)) , arm-xilinx-eabi-gcc)
EXTRA_ARCHIVE_FLAGS=rc
else
ifeq ($(COMPILER) , aarch64-none-elf-gcc)
ifeq ($(notdir $(COMPILER)) , aarch64-none-elf-gcc)
EXTRA_ARCHIVE_FLAGS=rc
else
ifeq ($(COMPILER) , arm-none-eabi-gcc)
ifeq ($(notdir $(COMPILER)) , arm-none-eabi-gcc)
EXTRA_ARCHIVE_FLAGS=rc
else
EXTRA_ARCHIVE_FLAGS=--create