diff options
author | CoprDistGit <infra@openeuler.org> | 2024-07-14 02:28:18 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-07-14 02:28:18 +0000 |
commit | 1df7426ab5786c466491e3e297da90a5dbfd2b4d (patch) | |
tree | d3cb7211bb1561271072e478058215e77820711e /0002-cpupower-clang-compile-support.patch | |
parent | d5ed7f712cbda15b914c6dfb5f72f714eb8b7835 (diff) |
automatic import of haoc-kernelopeneuler24.03_LTSopeneuler22.03_LTS_SP4openeuler22.03_LTS_SP3
Diffstat (limited to '0002-cpupower-clang-compile-support.patch')
-rw-r--r-- | 0002-cpupower-clang-compile-support.patch | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/0002-cpupower-clang-compile-support.patch b/0002-cpupower-clang-compile-support.patch new file mode 100644 index 0000000..1363e9b --- /dev/null +++ b/0002-cpupower-clang-compile-support.patch @@ -0,0 +1,49 @@ +From 6289f9462859513b4fa3137faf0332b84e46558a Mon Sep 17 00:00:00 2001 +From: liyunfei <liyunfei33@huawei.com> +Date: Mon, 28 Aug 2023 10:55:20 +0800 +Subject: [PATCH] cpupower clang compile support + +Modified Makefile with tools/scripts/Makefile.include for clang compile and clang cross compile support. +--- + tools/power/cpupower/Makefile | 17 ++--------------- + 1 file changed, 2 insertions(+), 15 deletions(-) + +diff --git a/tools/power/cpupower/Makefile b/tools/power/cpupower/Makefile +index 59bfa05..1e606a4 100644 +--- a/tools/power/cpupower/Makefile ++++ b/tools/power/cpupower/Makefile +@@ -8,16 +8,7 @@ + # Copyright (C) 2003,2004 Greg Kroah-Hartman <greg@kroah.com> + # + OUTPUT=./ +-ifeq ("$(origin O)", "command line") +- OUTPUT := $(O)/ +-endif +- +-ifneq ($(OUTPUT),) +-# check that the output directory actually exists +-OUTDIR := $(shell cd $(OUTPUT) && pwd) +-$(if $(OUTDIR),, $(error output directory "$(OUTPUT)" does not exist)) +-endif +- ++include ../../scripts/Makefile.include + + # --- CONFIGURATION BEGIN --- + +@@ -86,12 +77,8 @@ INSTALL_SCRIPT = ${INSTALL} -m 644 + # to something more interesting, like "arm-linux-". If you want + # to compile vs uClibc, that can be done here as well. + CROSS = #/usr/i386-linux-uclibc/usr/bin/i386-uclibc- +-CC = $(CROSS)gcc +-LD = $(CROSS)gcc +-AR = $(CROSS)ar +-STRIP = $(CROSS)strip ++CROSS_COMPILE ?= $(CROSS) + RANLIB = $(CROSS)ranlib +-HOSTCC = gcc + MKDIR = mkdir + + # 64bit library detection +-- +2.28.0.windows.1 + |