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