Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
laurivosandi committed Nov 13, 2024
0 parents commit 936cb15
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
name: ci

on:
push:
branches:
- "main"

jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ github.repository_owner }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push wildduck-operator
uses: docker/build-push-action@v4
with:
context: .
platforms: linux/arm64
push: true
tags: codemowers/tegra-k3s-modules:latest
21 changes: 21 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM ubuntu AS build
WORKDIR /sdk
RUN apt-get update
RUN apt-get install -y wget build-essential flex bison libssl-dev bc xxd
RUN wget https://developer.download.nvidia.com/embedded/L4T/bootlin/aarch64--glibc--stable-final.tar.gz
RUN tar xvf aarch64--glibc--stable-final.tar.gz
WORKDIR /src
RUN wget https://developer.download.nvidia.com/embedded/L4T/r35_Release_v3.1/sources/public_sources.tbz2
RUN tar xf public_sources.tbz2
WORKDIR /src/Linux_for_Tegra/source/public
RUN tar xf kernel_src.tbz2
ENV CROSS_COMPILE_AARCH64_PATH=/sdk/aarch64-buildroot-linux-gnu
ENV CROSS_COMPILE_AARCH64=/sdk/bin/aarch64-buildroot-linux-gnu-
COPY tegra_defconfig_extra ./
RUN cat tegra_defconfig_extra >> ./kernel/kernel-5.10/arch/arm64/configs/tegra_defconfig
RUN ./nvbuild.sh
FROM scratch AS final
COPY --from=build /src/Linux_for_Tegra/source/public/kernel/kernel-5.10/net/netfilter/ipset/*.ko /lib/modules/5.10.104-tegra/kernel/net/netfilter/ipset/
COPY --from=build /src/Linux_for_Tegra/source/public/kernel/kernel-5.10/net/netfilter/xt_nfacct.ko /lib/modules/5.10.104-tegra/kernel/net/netfilter/
COPY --from=build /src/Linux_for_Tegra/source/public/kernel/kernel-5.10/net/sched/em_ipset.ko /lib/modules/5.10.104-tegra/kernel/net/sched/
COPY --from=build /src/Linux_for_Tegra/source/public/kernel/kernel-5.10/fs/xfs/xfs.ko /lib/modules/5.10.104-tegra/kernel/fs/xfs/
27 changes: 27 additions & 0 deletions tegra_defconfig_extra
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
CONFIG_NET_EMATCH_IPSET=m
CONFIG_IP_SET=m
CONFIG_IP_SET_MAX=256
CONFIG_IP_SET_BITMAP_IP=m
CONFIG_IP_SET_BITMAP_IPMAC=m
CONFIG_IP_SET_BITMAP_PORT=m
CONFIG_IP_SET_HASH_IP=m
CONFIG_IP_SET_HASH_IPMARK=m
CONFIG_IP_SET_HASH_IPPORT=m
CONFIG_IP_SET_HASH_IPPORTIP=m
CONFIG_IP_SET_HASH_IPPORTNET=m
CONFIG_IP_SET_HASH_IPMAC=m
CONFIG_IP_SET_HASH_MAC=m
CONFIG_IP_SET_HASH_NETPORTNET=m
CONFIG_IP_SET_HASH_NET=m
CONFIG_IP_SET_HASH_NETNET=m
CONFIG_IP_SET_HASH_NETPORT=m
CONFIG_IP_SET_HASH_NETIFACE=m
CONFIG_IP_SET_LIST_SET=m
CONFIG_XFS_FS=m
CONFIG_XFS_SUPPORT_V4=y
CONFIG_XFS_QUOTA=y
CONFIG_XFS_POSIX_ACL=y
CONFIG_XFS_RT=y
CONFIG_XFS_ONLINE_SCRUB=y
CONFIG_XFS_ONLINE_REPAIR=y
CONFIG_NETFILTER_XT_MATCH_NFACCT=m

0 comments on commit 936cb15

Please sign in to comment.