xref: /openbmc/linux/scripts/basic/Makefile (revision 0545810f)
1# SPDX-License-Identifier: GPL-2.0-only
2#
3# fixdep: used to generate dependency information during build process
4
5hostprogs-always-y	+= fixdep
6
7# randstruct: the seed is needed before building the gcc-plugin or
8# before running a Clang kernel build.
9gen-randstruct-seed	:= $(srctree)/scripts/gen-randstruct-seed.sh
10quiet_cmd_create_randstruct_seed = GENSEED $@
11cmd_create_randstruct_seed = \
12	$(CONFIG_SHELL) $(gen-randstruct-seed) \
13		$@ $(objtree)/include/generated/randstruct_hash.h
14$(obj)/randstruct.seed: $(gen-randstruct-seed) FORCE
15	$(call if_changed,create_randstruct_seed)
16always-$(CONFIG_RANDSTRUCT) += randstruct.seed
17