xref: /openbmc/linux/scripts/basic/Makefile (revision be2b34fa)
1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
2fc01adc4SMasahiro Yamada#
3fc01adc4SMasahiro Yamada# fixdep: used to generate dependency information during build process
41da177e4SLinus Torvalds
5faabed29SMasahiro Yamadahostprogs-always-y	+= fixdep
6*be2b34faSKees Cook
7*be2b34faSKees Cook# randstruct: the seed is needed before building the gcc-plugin or
8*be2b34faSKees Cook# before running a Clang kernel build.
9*be2b34faSKees Cookgen-randstruct-seed	:= $(srctree)/scripts/gen-randstruct-seed.sh
10*be2b34faSKees Cookquiet_cmd_create_randstruct_seed = GENSEED $@
11*be2b34faSKees Cookcmd_create_randstruct_seed = \
12*be2b34faSKees Cook	$(CONFIG_SHELL) $(gen-randstruct-seed) \
13*be2b34faSKees Cook		$@ $(objtree)/include/generated/randstruct_hash.h
14*be2b34faSKees Cook$(obj)/randstruct.seed: $(gen-randstruct-seed) FORCE
15*be2b34faSKees Cook	$(call if_changed,create_randstruct_seed)
16*be2b34faSKees Cookalways-$(CONFIG_RANDSTRUCT) += randstruct.seed
17