Loading...
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
1###
2# Makefile.basic lists the most basic programs used during the build process.
3# The programs listed herein are what are needed to do the basic stuff,
4# such as fix file dependencies.
5# This initial step is needed to avoid files to be recompiled
6# when kernel configuration changes (which is what happens when
7# .config is included by main Makefile.
8# ---------------------------------------------------------------------------
9# fixdep: Used to generate dependency information during build process
10
11hostprogs-y := fixdep
12always := $(hostprogs-y)
13
14# fixdep is needed to compile other host programs
15$(addprefix $(obj)/,$(filter-out fixdep,$(always))): $(obj)/fixdep