2 # Copyright (C) 2011 Samsung Electronics
4 # SPDX-License-Identifier: GPL-2.0+
8 # necessary to create built-in.o
11 hostprogs-y := tools/mkorigenspl
12 always := $(hostprogs-y)
14 # omit -O2 option to suppress
15 # warning: dereferencing type-punned pointer will break strict-aliasing rules
18 # Fix the root cause in tools/mkorigenspl.c and delete the following work-around
19 $(obj)/tools/mkorigenspl: HOSTCFLAGS:=$(filter-out -O2,$(HOSTCFLAGS))