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
This commit is contained in:
@@ -1,8 +1,7 @@
|
|||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
__pycache__/
|
__pycache__/
|
||||||
raw_pylibcpupower_wrap.c
|
raw_pylibcpupower_wrap.c
|
||||||
*.o
|
*.o
|
||||||
*.so
|
*.so
|
||||||
*.py
|
*.py
|
||||||
!test_raw_pylibcpupower.py
|
!test_raw_pylibcpupower.py
|
||||||
# git keeps ignoring this file, use git add -f raw_libcpupower.i
|
|
||||||
!raw_pylibcpupower.i
|
|
||||||
|
|||||||
@@ -20,13 +20,13 @@ _raw_pylibcpupower.so: raw_pylibcpupower_wrap.o
|
|||||||
raw_pylibcpupower_wrap.o: raw_pylibcpupower_wrap.c
|
raw_pylibcpupower_wrap.o: raw_pylibcpupower_wrap.c
|
||||||
$(CC) -fPIC -c raw_pylibcpupower_wrap.c $(PY_INCLUDE)
|
$(CC) -fPIC -c raw_pylibcpupower_wrap.c $(PY_INCLUDE)
|
||||||
|
|
||||||
raw_pylibcpupower_wrap.c: raw_pylibcpupower.i
|
raw_pylibcpupower_wrap.c: raw_pylibcpupower.swg
|
||||||
ifeq ($(HAVE_SWIG),0)
|
ifeq ($(HAVE_SWIG),0)
|
||||||
$(error "swig was not found. Make sure you have it installed and in the PATH to generate the bindings.")
|
$(error "swig was not found. Make sure you have it installed and in the PATH to generate the bindings.")
|
||||||
else ifeq ($(HAVE_PYCONFIG),0)
|
else ifeq ($(HAVE_PYCONFIG),0)
|
||||||
$(error "python-config was not found. Make sure you have it installed and in the PATH to generate the bindings.")
|
$(error "python-config was not found. Make sure you have it installed and in the PATH to generate the bindings.")
|
||||||
endif
|
endif
|
||||||
swig -python raw_pylibcpupower.i
|
swig -python raw_pylibcpupower.swg
|
||||||
|
|
||||||
# Will only clean the bindings folder; will not clean the actual cpupower folder
|
# Will only clean the bindings folder; will not clean the actual cpupower folder
|
||||||
clean:
|
clean:
|
||||||
|
|||||||
Reference in New Issue
Block a user