Sergei Poselenov | 3190dbe | 2007-07-05 08:17:37 +0200 | [diff] [blame] | 1 | # |
| 2 | # (C) Copyright 2007 |
| 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | # SPDX-License-Identifier: GPL-2.0+ |
Sergei Poselenov | 3190dbe | 2007-07-05 08:17:37 +0200 | [diff] [blame] | 6 | # |
Sergei Poselenov | 3190dbe | 2007-07-05 08:17:37 +0200 | [diff] [blame] | 7 | |
Masahiro Yamada | 0d68fb1 | 2014-02-04 17:24:28 +0900 | [diff] [blame] | 8 | objs-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 |
| 10 | targets += $(objs-before-objcopy) |
Sergei Poselenov | 3190dbe | 2007-07-05 08:17:37 +0200 | [diff] [blame] | 11 | |
Masahiro Yamada | 0d68fb1 | 2014-02-04 17:24:28 +0900 | [diff] [blame] | 12 | # remove -msoft-float flag |
| 13 | $(foreach m, $(objs-before-objcopy), $(eval CFLAGS_REMOVE_$m := -msoft-float)) |
| 14 | ccflags-y := -mhard-float -fkeep-inline-functions |
| 15 | |
| 16 | # Do not delete intermidiate files (*.o) |
| 17 | .SECONDARY: $(call objectify, $(objs-before-objcopy)) |
| 18 | |
| 19 | obj-y := $(objs-before-objcopy:.o=_.o) |
Wolfgang Denk | 6244905 | 2011-12-22 04:29:41 +0000 | [diff] [blame] | 20 | |
Masahiro Yamada | 0d68fb1 | 2014-02-04 17:24:28 +0900 | [diff] [blame] | 21 | OBJCOPYFLAGS := -R .gnu.attributes |
Masahiro Yamada | ce8c93e | 2014-02-26 11:26:08 +0900 | [diff] [blame] | 22 | $(obj)/%_.o: $(obj)/%.o FORCE |
Masahiro Yamada | 0d68fb1 | 2014-02-04 17:24:28 +0900 | [diff] [blame] | 23 | $(call if_changed,objcopy) |