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