blob: 9b2c1fadb654efa2519f17c2bd0b6c862dfc3100 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001# SPDX-License-Identifier: GPL-2.0+
Sergei Poselenovb4489622007-07-05 08:17:37 +02002#
3# (C) Copyright 2007
4# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
Sergei Poselenovb4489622007-07-05 08:17:37 +02005
Masahiro Yamada6825a952014-02-04 17:24:28 +09006objs-before-objcopy := 20001122-1.o 20010114-2.o 20010226-1.o 980619-1.o \
7 acc1.o compare-fp-1.o fpu.o mul-subnormal-single-1.o darwin-ldouble.o
8targets += $(objs-before-objcopy)
Sergei Poselenovb4489622007-07-05 08:17:37 +02009
Masahiro Yamada6825a952014-02-04 17:24:28 +090010# remove -msoft-float flag
11$(foreach m, $(objs-before-objcopy), $(eval CFLAGS_REMOVE_$m := -msoft-float))
12ccflags-y := -mhard-float -fkeep-inline-functions
Wolfgang Denk139e1872011-12-22 04:29:41 +000013
Masahiro Yamada6825a952014-02-04 17:24:28 +090014obj-y := $(objs-before-objcopy:.o=_.o)
15
16OBJCOPYFLAGS := -R .gnu.attributes
Masahiro Yamada19233d82014-02-26 11:26:08 +090017$(obj)/%_.o: $(obj)/%.o FORCE
Masahiro Yamada6825a952014-02-04 17:24:28 +090018 $(call if_changed,objcopy)