184ad6884SPeter Tyser# 284ad6884SPeter Tyser# (C) Copyright 2002 384ad6884SPeter Tyser# Sysgo Real-Time Solutions, GmbH <www.elinos.com> 484ad6884SPeter Tyser# Marius Groeger <mgroeger@sysgo.de> 584ad6884SPeter Tyser# 61a459660SWolfgang Denk# SPDX-License-Identifier: GPL-2.0+ 784ad6884SPeter Tyser# 884ad6884SPeter Tyser 984c617beSMike DunnPLATFORM_CPPFLAGS += -mcpu=xscale 1084ad6884SPeter Tyser# ========================================================================= 1184ad6884SPeter Tyser# 1284ad6884SPeter Tyser# Supply options according to compiler version 1384ad6884SPeter Tyser# 1484ad6884SPeter Tyser# ======================================================================== 15cca4e4aeSWolfgang DenkPF_RELFLAGS_SLB_AT := $(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,)) 16cca4e4aeSWolfgang DenkPLATFORM_RELFLAGS += $(PF_RELFLAGS_SLB_AT) 17*67decc71SMarek Vasut 18*67decc71SMarek Vasut# 19*67decc71SMarek Vasut# !WARNING! 20*67decc71SMarek Vasut# The PXA's OneNAND SPL uses .text.0 and .text.1 segments to allow booting from 21*67decc71SMarek Vasut# really small OneNAND memories where the mmap'd window is only 1KiB big. The 22*67decc71SMarek Vasut# .text.0 contains only the bare minimum needed to load the real SPL into SRAM. 23*67decc71SMarek Vasut# Add .text.0 and .text.1 into OBJFLAGS, so when the SPL is being objcopy'd, 24*67decc71SMarek Vasut# they are not discarded. 25*67decc71SMarek Vasut# 26*67decc71SMarek Vasut 27*67decc71SMarek Vasut#ifdef CONFIG_SPL_BUILD 28*67decc71SMarek VasutOBJCFLAGS += -j .text.0 -j .text.1 29*67decc71SMarek Vasut#endif 30