xref: /openbmc/u-boot/board/samsung/origen/Makefile (revision e8f80a5a)
11a459660SWolfgang Denk# SPDX-License-Identifier: GPL-2.0+
2b9a1ef21SChander Kashyap#
3*83d290c5STom Rini# Copyright (C) 2011 Samsung Electronics
4b9a1ef21SChander Kashyap
5e183a174SMasahiro Yamadaifdef CONFIG_SPL_BUILD
67c8278a8SMasahiro Yamada# necessary to create built-in.o
77c8278a8SMasahiro Yamadaobj- := __dummy__.o
87c8278a8SMasahiro Yamada
9e183a174SMasahiro Yamadahostprogs-y := tools/mkorigenspl
10e183a174SMasahiro Yamadaalways := $(hostprogs-y)
11e183a174SMasahiro Yamada
12e183a174SMasahiro Yamada# omit -O2 option to suppress
13e183a174SMasahiro Yamada#   warning: dereferencing type-punned pointer will break strict-aliasing rules
14e183a174SMasahiro Yamada#
15e183a174SMasahiro Yamada# TODO:
16e183a174SMasahiro Yamada# Fix the root cause in tools/mkorigenspl.c and delete the following work-around
179e414032SMasahiro Yamada$(obj)/tools/mkorigenspl: HOSTCFLAGS:=$(filter-out -O2,$(HOSTCFLAGS))
18e183a174SMasahiro Yamadaelse
19a79854a9SMasahiro Yamadaobj-y	+= origen.o
2098a48c5dSChander Kashyapendif
21