From cb60281c88b0fff70f4c7d895d4ee68a7299444f Mon Sep 17 00:00:00 2001 From: "Justin M. Forbes" Date: Sat, 2 Apr 2022 11:15:10 -0500 Subject: Add patch to make intel-speed-select build Signed-off-by: Justin M. Forbes --- patch-5.18-redhat.patch | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) 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" +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 +--- + 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 + -- cgit