kbuild: change out-of-tree build
[platform/kernel/u-boot.git] / board / samsung / origen / Makefile
1 #
2 # Copyright (C) 2011 Samsung Electronics
3 #
4 # SPDX-License-Identifier:      GPL-2.0+
5 #
6
7 ifdef CONFIG_SPL_BUILD
8 hostprogs-y := tools/mkorigenspl
9 always := $(hostprogs-y)
10
11 # omit -O2 option to suppress
12 #   warning: dereferencing type-punned pointer will break strict-aliasing rules
13 #
14 # TODO:
15 # Fix the root cause in tools/mkorigenspl.c and delete the following work-around
16 $(obj)/tools/mkorigenspl: HOSTCFLAGS:=$(filter-out -O2,$(HOSTCFLAGS))
17 else
18 obj-y   += origen.o
19 endif