Makefile (5238c2cd5a2e0dc846d1b900553211e832952b8d) Makefile (8bbb58a3c6b9f12b2217b8ae08e70a6d2f556f73)
1# SPDX-License-Identifier: GPL-2.0
2# Copyright (C) 2020 ARM Limited
3
4# preserve CC value from top level Makefile
5ifeq ($(CC),cc)
6CC := $(CROSS_COMPILE)gcc
7endif
8

--- 9 unchanged lines hidden (view full) ---

18mte_cc_support := $(shell if ($(CC) $(CFLAGS) -E -x c /dev/null -o /dev/null 2>&1) then echo "1"; fi)
19
20ifeq ($(mte_cc_support),1)
21# Generated binaries to be installed by top KSFT script
22TEST_GEN_PROGS := $(PROGS)
23
24# Get Kernel headers installed and use them.
25KSFT_KHDR_INSTALL := 1
1# SPDX-License-Identifier: GPL-2.0
2# Copyright (C) 2020 ARM Limited
3
4# preserve CC value from top level Makefile
5ifeq ($(CC),cc)
6CC := $(CROSS_COMPILE)gcc
7endif
8

--- 9 unchanged lines hidden (view full) ---

18mte_cc_support := $(shell if ($(CC) $(CFLAGS) -E -x c /dev/null -o /dev/null 2>&1) then echo "1"; fi)
19
20ifeq ($(mte_cc_support),1)
21# Generated binaries to be installed by top KSFT script
22TEST_GEN_PROGS := $(PROGS)
23
24# Get Kernel headers installed and use them.
25KSFT_KHDR_INSTALL := 1
26else
27 $(warning compiler "$(CC)" does not support the ARMv8.5 MTE extension.)
28 $(warning test program "mte" will not be created.)
26endif
27
28# Include KSFT lib.mk.
29include ../../lib.mk
30
31ifeq ($(mte_cc_support),1)
32$(TEST_GEN_PROGS): mte_common_util.c mte_common_util.h mte_helper.S
33endif
29endif
30
31# Include KSFT lib.mk.
32include ../../lib.mk
33
34ifeq ($(mte_cc_support),1)
35$(TEST_GEN_PROGS): mte_common_util.c mte_common_util.h mte_helper.S
36endif