blob: 1add9fe626fd17f67f7c209db5eddc63eb6b357f [file] [log] [blame]
Chander Kashyap0e7ab682011-08-18 22:37:19 +00001#
2# Copyright (C) 2011 Samsung Electronics
3#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02004# SPDX-License-Identifier: GPL-2.0+
Chander Kashyap0e7ab682011-08-18 22:37:19 +00005#
6
Chander Kashyap488ef1a2011-08-18 22:37:20 +00007ifdef CONFIG_SPL_BUILD
Masahiro Yamada350735c2014-02-04 17:24:25 +09008# necessary to create built-in.o
9obj- := __dummy__.o
10
Masahiro Yamadae2aadb92014-02-04 17:24:11 +090011hostprogs-y := tools/mkorigenspl
12always := $(hostprogs-y)
Chander Kashyap488ef1a2011-08-18 22:37:20 +000013
Masahiro Yamadae2aadb92014-02-04 17:24:11 +090014# 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 Yamada59f15f22014-02-04 17:24:24 +090019$(obj)/tools/mkorigenspl: HOSTCFLAGS:=$(filter-out -O2,$(HOSTCFLAGS))
Masahiro Yamadae2aadb92014-02-04 17:24:11 +090020else
21obj-y += origen.o
Chander Kashyap488ef1a2011-08-18 22:37:20 +000022endif