blob: 5c2e804d90b39cc54ab7d12c6e952412fcc2abda [file] [log] [blame]
Sergei Poselenov3190dbe2007-07-05 08:17:37 +02001#
2# (C) Copyright 2007
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Sergei Poselenov3190dbe2007-07-05 08:17:37 +02006#
Sergei Poselenov3190dbe2007-07-05 08:17:37 +02007
Masahiro Yamada0d68fb12014-02-04 17:24:28 +09008objs-before-objcopy := 20001122-1.o 20010114-2.o 20010226-1.o 980619-1.o \
9 acc1.o compare-fp-1.o fpu.o mul-subnormal-single-1.o darwin-ldouble.o
10targets += $(objs-before-objcopy)
Sergei Poselenov3190dbe2007-07-05 08:17:37 +020011
Masahiro Yamada0d68fb12014-02-04 17:24:28 +090012# remove -msoft-float flag
13$(foreach m, $(objs-before-objcopy), $(eval CFLAGS_REMOVE_$m := -msoft-float))
14ccflags-y := -mhard-float -fkeep-inline-functions
15
16# Do not delete intermidiate files (*.o)
17.SECONDARY: $(call objectify, $(objs-before-objcopy))
18
19obj-y := $(objs-before-objcopy:.o=_.o)
Wolfgang Denk62449052011-12-22 04:29:41 +000020
Masahiro Yamada0d68fb12014-02-04 17:24:28 +090021OBJCOPYFLAGS := -R .gnu.attributes
Masahiro Yamadace8c93e2014-02-26 11:26:08 +090022$(obj)/%_.o: $(obj)/%.o FORCE
Masahiro Yamada0d68fb12014-02-04 17:24:28 +090023 $(call if_changed,objcopy)