blob: 404eefcfd0f4bd2e9c23214d29b877ddd5b64a2b [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001# SPDX-License-Identifier: GPL-2.0+
Sergei Poselenov3190dbe2007-07-05 08:17:37 +02002#
3# (C) Copyright 2007
4# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
Sergei Poselenov3190dbe2007-07-05 08:17:37 +02005
Masahiro Yamada0d68fb12014-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 Poselenov3190dbe2007-07-05 08:17:37 +02009
Masahiro Yamada0d68fb12014-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
13
14# Do not delete intermidiate files (*.o)
15.SECONDARY: $(call objectify, $(objs-before-objcopy))
16
17obj-y := $(objs-before-objcopy:.o=_.o)
Wolfgang Denk62449052011-12-22 04:29:41 +000018
Masahiro Yamada0d68fb12014-02-04 17:24:28 +090019OBJCOPYFLAGS := -R .gnu.attributes
Masahiro Yamadace8c93e2014-02-26 11:26:08 +090020$(obj)/%_.o: $(obj)/%.o FORCE
Masahiro Yamada0d68fb12014-02-04 17:24:28 +090021 $(call if_changed,objcopy)