Makefile (5acac83bf2e42f51ab9fd315d657798754bf0bb8) Makefile (c425c546c0f149560c778595c1a20a88a444711f)
1#
2# This file is subject to the terms and conditions of the GNU General Public
3# License. See the file "COPYING" in the main directory of this archive
4# for more details.
5#
6# Copyright (C) 2001 - 2005 Tensilica Inc.
7# Copyright (C) 2014 Cadence Design Systems Inc.
8#

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

47KBUILD_CFLAGS += $(call cc-option,-mno-serialize-volatile,)
48
49KBUILD_AFLAGS += -mlongcalls -mtext-section-literals
50
51ifneq ($(CONFIG_LD_NO_RELAX),)
52KBUILD_LDFLAGS := --no-relax
53endif
54
1#
2# This file is subject to the terms and conditions of the GNU General Public
3# License. See the file "COPYING" in the main directory of this archive
4# for more details.
5#
6# Copyright (C) 2001 - 2005 Tensilica Inc.
7# Copyright (C) 2014 Cadence Design Systems Inc.
8#

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

47KBUILD_CFLAGS += $(call cc-option,-mno-serialize-volatile,)
48
49KBUILD_AFLAGS += -mlongcalls -mtext-section-literals
50
51ifneq ($(CONFIG_LD_NO_RELAX),)
52KBUILD_LDFLAGS := --no-relax
53endif
54
55ifeq ($(shell echo __XTENSA_EB__ | $(CC) -E - | grep -v "\#"),1)
56CHECKFLAGS += -D__XTENSA_EB__
57KBUILD_CPPFLAGS += -DCONFIG_CPU_BIG_ENDIAN
58endif
59ifeq ($(shell echo __XTENSA_EL__ | $(CC) -E - | grep -v "\#"),1)
60CHECKFLAGS += -D__XTENSA_EL__
61KBUILD_CPPFLAGS += -DCONFIG_CPU_LITTLE_ENDIAN
62endif
55CHECKFLAGS += -D$(if $(CONFIG_CPU_BIG_ENDIAN),__XTENSA_EB__,__XTENSA_EL__)
63
64vardirs := $(patsubst %,arch/xtensa/variants/%/,$(variant-y))
65plfdirs := $(patsubst %,arch/xtensa/platforms/%/,$(platform-y))
66
67KBUILD_CPPFLAGS += $(patsubst %,-I$(srctree)/%include,$(vardirs) $(plfdirs))
68
69KBUILD_DEFCONFIG := iss_defconfig
70

--- 30 unchanged lines hidden ---
56
57vardirs := $(patsubst %,arch/xtensa/variants/%/,$(variant-y))
58plfdirs := $(patsubst %,arch/xtensa/platforms/%/,$(platform-y))
59
60KBUILD_CPPFLAGS += $(patsubst %,-I$(srctree)/%include,$(vardirs) $(plfdirs))
61
62KBUILD_DEFCONFIG := iss_defconfig
63

--- 30 unchanged lines hidden ---