-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #268 from johnfanv2/migrate-to-pwm-v2
Convert kernel hwmon interface to use PWM (0-255) intsead of RPM v2
- Loading branch information
Showing
15 changed files
with
354 additions
and
155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
FROM ubuntu:24.04 | ||
ARG DEBIAN_FRONTEND=noninteractive | ||
|
||
# Install sudo (used in scripts that are tested) | ||
RUN apt-get update && \ | ||
apt-get -y install sudo | ||
|
||
# Set timezone (used by pylint) and locale | ||
ENV LANG=en_US.UTF-8 | ||
ENV LANGUAGE=en_US:en | ||
ENV LC_ALL=en_US.UTF-8 | ||
RUN ln -snf /usr/share/zoneinfo/US/Central /etc/localtime && echo US/Central > /etc/timezone && \ | ||
apt-get -y install locales tzdata && \ | ||
sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && \ | ||
locale-gen | ||
|
||
|
||
RUN apt-get install -y gcc-12 | ||
|
||
RUN mkdir /opt/LinuxLegionLaptop | ||
WORKDIR /opt/LinuxLegionLaptop | ||
|
||
COPY ./deploy/dependencies/install_dependencies_ubuntu_24_04.sh ./deploy/dependencies/install_dependencies_ubuntu_24_04.sh | ||
RUN ./deploy/dependencies/install_dependencies_ubuntu_24_04.sh | ||
|
||
COPY ./deploy/dependencies ./deploy/dependencies | ||
RUN ./deploy/dependencies/install_development_dependencies_ubuntu_24_04.sh | ||
|
||
COPY . /opt/LinuxLegionLaptop | ||
|
||
RUN tests/test_kernel_build.sh \ | ||
&& tests/test_kernel_install.sh | ||
RUN tests/test_python_cli.sh | ||
# && tests/test_python_gui.sh | ||
RUN deploy/python_install_pip_pkg.sh \ | ||
&& tests/test_python_cli_installed.sh | ||
# && tests/test_python_gui_installed.sh | ||
#RUN tests/test_python_run_gui_root.sh |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
set -ex | ||
sudo apt-get update | ||
sudo apt-get install -y make gcc clang linux-headers-$(uname -r) build-essential git lm-sensors wget python3-pyqt6 python3-yaml python3-venv python3-pip python3-wheel python3-argcomplete policykit-1 | ||
sudo apt-get install -y dkms openssl mokutil |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
deploy/dependencies/install_development_dependencies_ubuntu_24_04.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
set -ex | ||
DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) | ||
|
||
# Needed in CI | ||
sudo apt-get update | ||
|
||
# Linter | ||
# Tools for running GUI tests headless | ||
sudo apt-get -y -qq install \ | ||
wget \ | ||
pylint python3-venv python3-pip python3-build \ | ||
python3-installer xvfb libxcb-xinerama0 pyqt6-dev-tools | ||
|
||
${DIR}/install_dependencies_ubuntu_24_04.sh | ||
${DIR}/linux_kernel/install_checkpath.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.