]> www.infradead.org Git - users/jedix/linux-maple.git/commit
pm:cpupower: Add SWIG bindings files for libcpupower
authorJohn B. Wyatt IV <jwyatt@redhat.com>
Thu, 5 Sep 2024 02:19:09 +0000 (22:19 -0400)
committerShuah Khan <skhan@linuxfoundation.org>
Fri, 6 Sep 2024 00:50:07 +0000 (18:50 -0600)
commit338f490e07bc9e83c6fe60125ed9dea3e5d6a45d
treecb7ba0eb3fc356124f32a21b9db3b9320426a875
parent4b80294fb53845dc5c98cca0c989da09150f2ca9
pm:cpupower: Add SWIG bindings files for libcpupower

SWIG is a tool packaged in Fedora and other distros that can generate
bindings from C and C++ code for several languages including Python,
Perl, and Go.

These bindings allows users to easily write scripts that use and extend
libcpupower's functionality. Currently, only Python is provided in the
makefile, but additional languages may be added if there is demand.

Added suggestions from Shuah Khan for the README and license discussion.

Note that while SWIG itself is GPL v3+ licensed; the resulting output,
the bindings code, is permissively licensed + the license of the .o
files. Please see
https://swig.org/legal.html and [1] for more details.

[1]
https://lore.kernel.org/linux-pm/Zqv9BOjxLAgyNP5B@hatbackup/

Suggested-by: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: John B. Wyatt IV <jwyatt@redhat.com>
Signed-off-by: John B. Wyatt IV <sageofredondo@gmail.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/power/cpupower/bindings/python/.gitignore [new file with mode: 0644]
tools/power/cpupower/bindings/python/Makefile [new file with mode: 0644]
tools/power/cpupower/bindings/python/README [new file with mode: 0644]
tools/power/cpupower/bindings/python/raw_pylibcpupower.i [new file with mode: 0644]