Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0+ |
Sergei Poselenov | b448962 | 2007-07-05 08:17:37 +0200 | [diff] [blame] | 2 | # |
| 3 | # (C) Copyright 2007 |
| 4 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
Sergei Poselenov | b448962 | 2007-07-05 08:17:37 +0200 | [diff] [blame] | 5 | |
Masahiro Yamada | 6825a95 | 2014-02-04 17:24:28 +0900 | [diff] [blame] | 6 | objs-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 |
| 8 | targets += $(objs-before-objcopy) |
Sergei Poselenov | b448962 | 2007-07-05 08:17:37 +0200 | [diff] [blame] | 9 | |
Masahiro Yamada | 6825a95 | 2014-02-04 17:24:28 +0900 | [diff] [blame] | 10 | # remove -msoft-float flag |
| 11 | $(foreach m, $(objs-before-objcopy), $(eval CFLAGS_REMOVE_$m := -msoft-float)) |
| 12 | ccflags-y := -mhard-float -fkeep-inline-functions |
Wolfgang Denk | 139e187 | 2011-12-22 04:29:41 +0000 | [diff] [blame] | 13 | |
Masahiro Yamada | 6825a95 | 2014-02-04 17:24:28 +0900 | [diff] [blame] | 14 | obj-y := $(objs-before-objcopy:.o=_.o) |
| 15 | |
| 16 | OBJCOPYFLAGS := -R .gnu.attributes |
Masahiro Yamada | 19233d8 | 2014-02-26 11:26:08 +0900 | [diff] [blame] | 17 | $(obj)/%_.o: $(obj)/%.o FORCE |
Masahiro Yamada | 6825a95 | 2014-02-04 17:24:28 +0900 | [diff] [blame] | 18 | $(call if_changed,objcopy) |