2018-05-06 21:58:06 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2011-08-18 22:37:19 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2011 Samsung Electronics
|
|
|
|
|
2011-08-18 22:37:20 +00:00
|
|
|
ifdef CONFIG_SPL_BUILD
|
2014-02-04 08:24:25 +00:00
|
|
|
# necessary to create built-in.o
|
|
|
|
obj- := __dummy__.o
|
|
|
|
|
2014-02-04 08:24:11 +00:00
|
|
|
hostprogs-y := tools/mkorigenspl
|
|
|
|
always := $(hostprogs-y)
|
2011-08-18 22:37:20 +00:00
|
|
|
|
2014-02-04 08:24:11 +00:00
|
|
|
# omit -O2 option to suppress
|
|
|
|
# warning: dereferencing type-punned pointer will break strict-aliasing rules
|
|
|
|
#
|
|
|
|
# TODO:
|
|
|
|
# Fix the root cause in tools/mkorigenspl.c and delete the following work-around
|
2014-02-04 08:24:24 +00:00
|
|
|
$(obj)/tools/mkorigenspl: HOSTCFLAGS:=$(filter-out -O2,$(HOSTCFLAGS))
|
2014-02-04 08:24:11 +00:00
|
|
|
else
|
|
|
|
obj-y += origen.o
|
2011-08-18 22:37:20 +00:00
|
|
|
endif
|