2019-05-19 20:07:45 +08:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
2019-08-22 01:32:47 +08:00
|
|
|
#
|
|
|
|
# fixdep: used to generate dependency information during build process
|
2005-04-17 06:20:36 +08:00
|
|
|
|
2020-08-01 20:27:18 +08:00
|
|
|
hostprogs-always-y += fixdep
|
2022-05-04 04:55:02 +08:00
|
|
|
|
|
|
|
# randstruct: the seed is needed before building the gcc-plugin or
|
|
|
|
# before running a Clang kernel build.
|
|
|
|
gen-randstruct-seed := $(srctree)/scripts/gen-randstruct-seed.sh
|
|
|
|
quiet_cmd_create_randstruct_seed = GENSEED $@
|
|
|
|
cmd_create_randstruct_seed = \
|
|
|
|
$(CONFIG_SHELL) $(gen-randstruct-seed) \
|
|
|
|
$@ $(objtree)/include/generated/randstruct_hash.h
|
|
|
|
$(obj)/randstruct.seed: $(gen-randstruct-seed) FORCE
|
|
|
|
$(call if_changed,create_randstruct_seed)
|
|
|
|
always-$(CONFIG_RANDSTRUCT) += randstruct.seed
|