summaryrefslogtreecommitdiff
path: root/scripts/basic
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2022-06-15 08:47:44 +0300
committerTakashi Iwai <tiwai@suse.de>2022-06-15 08:47:44 +0300
commitf777316e52e14059a6a1df45cbf39a93ac49a593 (patch)
treef9bd76323abdea96d89bf573affd587006a0475f /scripts/basic
parent56ec3e755bd1041d35bdec020a99b327697ee470 (diff)
parentf5e829f92a494a0b66d309497bab4e9d10d4ce3e (diff)
downloadlinux-f777316e52e14059a6a1df45cbf39a93ac49a593.tar.xz
Merge branch 'topic/ctl-enhancements' into for-next
Pull ALSA control enhancement patches. One is the faster lookup of control elements, and another is to introduce the input data validation. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'scripts/basic')
-rw-r--r--scripts/basic/.gitignore1
-rw-r--r--scripts/basic/Makefile11
2 files changed, 12 insertions, 0 deletions
diff --git a/scripts/basic/.gitignore b/scripts/basic/.gitignore
index 961c91c8a884..07c195f605a1 100644
--- a/scripts/basic/.gitignore
+++ b/scripts/basic/.gitignore
@@ -1,2 +1,3 @@
# SPDX-License-Identifier: GPL-2.0-only
/fixdep
+/randstruct.seed
diff --git a/scripts/basic/Makefile b/scripts/basic/Makefile
index eeb6a38c5551..dd289a6725ac 100644
--- a/scripts/basic/Makefile
+++ b/scripts/basic/Makefile
@@ -3,3 +3,14 @@
# fixdep: used to generate dependency information during build process
hostprogs-always-y += fixdep
+
+# 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