Skip to content

Commit

Permalink
Add Dockefile
Browse files Browse the repository at this point in the history
  • Loading branch information
SekaiMoe committed Jul 3, 2024
1 parent 12952c7 commit ab5b652
Show file tree
Hide file tree
Showing 17 changed files with 38 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
git clone https://gitlab.com/asus-linux/asusctl src
- run: |
cd src
cp ../env/asusctl ./debian -Rv
mv ../env/asusctl/debian ./ -Rv
apt update && apt build-dep . -y
- run: |
cd src && export PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig && dpkg-buildpackage -b -us -uc
Expand All @@ -87,7 +87,7 @@ jobs:
git clone https://gitlab.com/asus-linux/supergfxctl src
- run: |
cd src
cp ../env/supergfxctl ./debian -Rv
mv ../env/supergfxctl/debian ./ -Rv
apt update && apt build-dep . -y
- run: |
cd src && export PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig && dpkg-buildpackage -b -us -uc
Expand Down
10 changes: 10 additions & 0 deletions asusctl/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM debian:trixie
COPY ./asusctl/ /asusctl
WORKDIR /asusctl
ENV PKG_CONFIG_PATH /usr/lib/x86_64-linux-gnu/pkgconfig
RUN apt update \
apt install git dpkg-dev build-essential -y \
git clone https://gitlab.com/asus-linux/asusctl src \
mv debian src \
cd src && apt build-dep -y && dpkg-buildpackage -b -us -uc

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions supergfxctl/rules → asusctl/debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.

export DH_VERBOSE = 1
export PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig
export DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
export DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

ifeq ("$(origin VERBOSE)", "command line")
BUILD_VERBOSE = $(VERBOSE)
Expand All @@ -33,3 +36,7 @@ endif

%:
$(Q)export PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig && dh $@

override_dh_auto_configure:
$(Q)dh_auto_configure -- DEFINES+="VERSION=$(DEB_VERSION_UPSTREAM)"

File renamed without changes.
9 changes: 9 additions & 0 deletions linux-g14/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM debian:trixie
COPY ./linux-g14 /linux
WORKDIR /linux
RUN apt update \
apt install aria2 debhelper dpkg-dev build-essential patch bc bison flex libssl-dev libelf-dev git perl python3 -y \
aria2c https://github.com/NekoSekaiMoe/asus_linux_debian_test/releases/download/v1/linux-src.tar.xz \
tar -xf linux-src.tar.xz \
cd src && make asus_defconfig && bash patch.sh && make bindeb-pkg -j8 && rm -rf ../*dbg*.deb ../linux-src.tar.xz

10 changes: 10 additions & 0 deletions supergfxctl/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM debian:trixie
COPY ./supergfxctl/ /supergfxctl
WORKDIR /supergfxctl
ENV PKG_CONFIG_PATH /usr/lib/x86_64-linux-gnu/pkgconfig
RUN apt update \
apt install git dpkg-dev build-essential -y \
git clone https://gitlab.com/asus-linux/supergfxctl src \
mv debian src \
cd src && apt build-dep -y && dpkg-buildpackage -b -us -uc

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit ab5b652

Please sign in to comment.