Chander Kashyap | b9a1ef2 | 2011-08-18 22:37:19 +0000 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2011 Samsung Electronics |
| 3 | # |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 4 | # SPDX-License-Identifier: GPL-2.0+ |
Chander Kashyap | b9a1ef2 | 2011-08-18 22:37:19 +0000 | [diff] [blame] | 5 | # |
| 6 | |
Masahiro Yamada | e183a17 | 2014-02-04 17:24:11 +0900 | [diff] [blame] | 7 | ifdef CONFIG_SPL_BUILD |
Masahiro Yamada | 7c8278a | 2014-02-04 17:24:25 +0900 | [diff] [blame] | 8 | # necessary to create built-in.o |
| 9 | obj- := __dummy__.o |
| 10 | |
Masahiro Yamada | e183a17 | 2014-02-04 17:24:11 +0900 | [diff] [blame] | 11 | hostprogs-y := tools/mkorigenspl |
| 12 | always := $(hostprogs-y) |
| 13 | |
| 14 | # omit -O2 option to suppress |
| 15 | # warning: dereferencing type-punned pointer will break strict-aliasing rules |
| 16 | # |
| 17 | # TODO: |
| 18 | # Fix the root cause in tools/mkorigenspl.c and delete the following work-around |
Masahiro Yamada | 9e41403 | 2014-02-04 17:24:24 +0900 | [diff] [blame] | 19 | $(obj)/tools/mkorigenspl: HOSTCFLAGS:=$(filter-out -O2,$(HOSTCFLAGS)) |
Masahiro Yamada | e183a17 | 2014-02-04 17:24:11 +0900 | [diff] [blame] | 20 | else |
Masahiro Yamada | a79854a | 2013-10-21 11:53:37 +0900 | [diff] [blame] | 21 | obj-y += origen.o |
Chander Kashyap | 98a48c5 | 2011-08-18 22:37:20 +0000 | [diff] [blame] | 22 | endif |