xref: /openbmc/u-boot/board/samsung/origen/Makefile (revision 9038cd53)
1#
2# Copyright (C) 2011 Samsung Electronics
3#
4# SPDX-License-Identifier:	GPL-2.0+
5#
6
7ifdef CONFIG_SPL_BUILD
8# necessary to create built-in.o
9obj- := __dummy__.o
10
11hostprogs-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
19$(obj)/tools/mkorigenspl: HOSTCFLAGS:=$(filter-out -O2,$(HOSTCFLAGS))
20else
21obj-y	+= origen.o
22endif
23