summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin M. Forbes <jforbes@fedoraproject.org>2022-04-02 11:15:10 -0500
committerJustin M. Forbes <jforbes@fedoraproject.org>2022-04-02 11:15:10 -0500
commitcb60281c88b0fff70f4c7d895d4ee68a7299444f (patch)
tree004d777f6a07e4fb0fd2254cea45382a7c542a25
parent11a9e693e1bced122b7efe8d9824859a6dc80f89 (diff)
downloadkernel-cb60281c88b0fff70f4c7d895d4ee68a7299444f.tar.gz
kernel-cb60281c88b0fff70f4c7d895d4ee68a7299444f.tar.xz
kernel-cb60281c88b0fff70f4c7d895d4ee68a7299444f.zip
Add patch to make intel-speed-select build
Signed-off-by: Justin M. Forbes <jforbes@fedoraproject.org>
-rw-r--r--patch-5.18-redhat.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/patch-5.18-redhat.patch b/patch-5.18-redhat.patch
index b6f93ce99..b9fa16e5d 100644
--- a/patch-5.18-redhat.patch
+++ b/patch-5.18-redhat.patch
@@ -3419,3 +3419,32 @@ index b7cf5cbfdc67..3cde9062fcf6 100644
#ifdef CONFIG_PERF_EVENTS
int security_perf_event_open(struct perf_event_attr *attr, int type)
{
+From 5834cadfb4eb3051a4fddae48579706f3e050c16 Mon Sep 17 00:00:00 2001
+From: "Justin M. Forbes" <jforbes@fedoraproject.org>
+Date: Fri, 1 Apr 2022 17:14:48 -0500
+Subject: [PATCH] Fix build flag passing for intel-speed-select
+
+Signed-off-by: Justin M. Forbes <jforbes@fedoraproject.org>
+---
+ tools/power/x86/intel-speed-select/Makefile | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/tools/power/x86/intel-speed-select/Makefile b/tools/power/x86/intel-speed-select/Makefile
+index 846f785e278d..b1ae862cec9d 100644
+--- a/tools/power/x86/intel-speed-select/Makefile
++++ b/tools/power/x86/intel-speed-select/Makefile
+@@ -40,9 +40,9 @@ prepare: $(OUTPUT)include/linux/isst_if.h $(OUTPUT)include/linux/thermal.h
+ ISST_IN := $(OUTPUT)intel-speed-select-in.o
+
+ $(ISST_IN): prepare FORCE
+- $(Q)$(MAKE) $(build)=intel-speed-select
++ $(Q)$(MAKE) CFLAGS="$(CFLAGS)" $(build)=intel-speed-select
+ $(OUTPUT)intel-speed-select: $(ISST_IN)
+- $(QUIET_LINK)$(CC) $(CFLAGS) $(LDFLAGS) $< -o $@
++ $(QUIET_LINK)$(CC) $(CFLAGS) $< -o $@ $(LDFLAGS)
+
+ clean:
+ rm -f $(ALL_PROGRAMS)
+--
+2.35.1
+