2018-05-06 21:58:06 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2004-04-18 21:13:41 +00:00
|
|
|
#
|
2008-03-28 10:58:45 +00:00
|
|
|
# (C) Copyright 2007-2008 Michal Simek
|
|
|
|
# Michal SIMEK <monstr@monstr.eu>
|
2004-04-18 21:13:41 +00:00
|
|
|
#
|
2008-03-28 10:58:45 +00:00
|
|
|
# (C) Copyright 2004 Atmark Techno, Inc.
|
2004-04-18 21:13:41 +00:00
|
|
|
# Yasushi SHOJI <yashi@atmark-techno.com>
|
|
|
|
|
2007-03-11 12:48:24 +00:00
|
|
|
PLATFORM_CPPFLAGS += -ffixed-r31 -D__microblaze__
|
2020-11-04 13:01:45 +00:00
|
|
|
PLATFORM_CPPFLAGS += -fdata-sections -ffunction-sections
|
|
|
|
|
|
|
|
LDFLAGS_FINAL += --gc-sections
|
2014-05-08 14:08:44 +00:00
|
|
|
|
|
|
|
ifeq ($(CONFIG_SPL_BUILD),)
|
|
|
|
PLATFORM_CPPFLAGS += -fPIC
|
2022-06-24 12:15:01 +00:00
|
|
|
LDFLAGS_u-boot += -pic
|
|
|
|
endif
|
|
|
|
|
2022-06-24 12:14:59 +00:00
|
|
|
ifeq ($(CONFIG_SYS_LITTLE_ENDIAN),y)
|
|
|
|
PLATFORM_ELFFLAGS += -B microblaze $(OBJCOPYFLAGS) -O elf32-microblazeel
|
|
|
|
else
|
|
|
|
PLATFORM_ELFFLAGS += -B microblaze $(OBJCOPYFLAGS) -O elf32-microblaze
|
|
|
|
endif
|