]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - board/samsung/origen/Makefile
31e88f4424600e80e411c720e448cfcb10b49d90
[karo-tx-uboot.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