Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge tag 'linux-cpupower-6.12-rc1-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux

Pull cpupower updates from Shuah Khan
"The 'raw_pylibcpupower.i' file was being removed by "make mrproper".

That was because '*.i', '.s' and '*.o' files are generated during
kernel compile and removed when the repo is cleaned by mrproper.

Rename it to use .swg extension instead to avoid the problem.

A second patch removes references to it from .gitignore"

* tag 'linux-cpupower-6.12-rc1-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux:
pm: cpupower: Clean up bindings gitignore
pm: cpupower: rename raw_pylibcpupower.i

+3 -4
+1 -2
tools/power/cpupower/bindings/python/.gitignore
··· 1 + # SPDX-License-Identifier: GPL-2.0-only 1 2 __pycache__/ 2 3 raw_pylibcpupower_wrap.c 3 4 *.o 4 5 *.so 5 6 *.py 6 7 !test_raw_pylibcpupower.py 7 - # git keeps ignoring this file, use git add -f raw_libcpupower.i 8 - !raw_pylibcpupower.i
+2 -2
tools/power/cpupower/bindings/python/Makefile
··· 20 20 raw_pylibcpupower_wrap.o: raw_pylibcpupower_wrap.c 21 21 $(CC) -fPIC -c raw_pylibcpupower_wrap.c $(PY_INCLUDE) 22 22 23 - raw_pylibcpupower_wrap.c: raw_pylibcpupower.i 23 + raw_pylibcpupower_wrap.c: raw_pylibcpupower.swg 24 24 ifeq ($(HAVE_SWIG),0) 25 25 $(error "swig was not found. Make sure you have it installed and in the PATH to generate the bindings.") 26 26 else ifeq ($(HAVE_PYCONFIG),0) 27 27 $(error "python-config was not found. Make sure you have it installed and in the PATH to generate the bindings.") 28 28 endif 29 - swig -python raw_pylibcpupower.i 29 + swig -python raw_pylibcpupower.swg 30 30 31 31 # Will only clean the bindings folder; will not clean the actual cpupower folder 32 32 clean:
tools/power/cpupower/bindings/python/raw_pylibcpupower.i tools/power/cpupower/bindings/python/raw_pylibcpupower.swg