blob: 44691af09f471234a029fd3baf7cb3b920a82b0e [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001# SPDX-License-Identifier: GPL-2.0+
Chander Kashyapb9a1ef22011-08-18 22:37:19 +00002#
3# Copyright (C) 2011 Samsung Electronics
Chander Kashyapb9a1ef22011-08-18 22:37:19 +00004
Masahiro Yamadae183a172014-02-04 17:24:11 +09005ifdef CONFIG_SPL_BUILD
Masahiro Yamada7c8278a2014-02-04 17:24:25 +09006# necessary to create built-in.o
7obj- := __dummy__.o
8
Masahiro Yamadae183a172014-02-04 17:24:11 +09009hostprogs-y := tools/mkorigenspl
10always := $(hostprogs-y)
11
12# omit -O2 option to suppress
13# warning: dereferencing type-punned pointer will break strict-aliasing rules
14#
15# TODO:
16# Fix the root cause in tools/mkorigenspl.c and delete the following work-around
Masahiro Yamada9e414032014-02-04 17:24:24 +090017$(obj)/tools/mkorigenspl: HOSTCFLAGS:=$(filter-out -O2,$(HOSTCFLAGS))
Masahiro Yamadae183a172014-02-04 17:24:11 +090018else
Masahiro Yamadaa79854a2013-10-21 11:53:37 +090019obj-y += origen.o
Chander Kashyap98a48c52011-08-18 22:37:20 +000020endif