-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: ZHANG Yuntian <[email protected]>
- Loading branch information
0 parents
commit 6a9af75
Showing
20 changed files
with
287 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* @RadxaYuntian |
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,7 @@ | ||
version: 2 | ||
updates: | ||
# Maintain dependencies for GitHub Actions | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" |
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,33 @@ | ||
name: Create release | ||
on: | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
fetch-depth: 0 | ||
token: ${{secrets.GIT_PUSH_TOKEN}} | ||
- name: Create release commit | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install --no-install-recommends -y git-buildpackage | ||
export DEBEMAIL="[email protected]" | ||
export DEBFULLNAME='"Radxa Computer Co., Ltd"' | ||
git config user.name "github-actions[bot]" | ||
git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | ||
make dch | ||
- name: Test | ||
run: | | ||
sudo apt-get build-dep --no-install-recommends -y . | ||
make all test deb | ||
- name: Push | ||
run: | | ||
git push |
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,98 @@ | ||
name: Build & Release | ||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
push: | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
fetch-depth: 0 | ||
- name: Test | ||
run: | | ||
make test | ||
- name: Build | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get build-dep --no-install-recommends -y . | ||
make all deb | ||
- name: Workaround actions/upload-artifact#176 | ||
run: | | ||
echo "artifacts_path=$(realpath ..)" >> $GITHUB_ENV | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ github.event.repository.name }} | ||
path: | | ||
${{ env.artifacts_path }}/*.deb | ||
release: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
if: ${{ github.event_name != 'pull_request' && github.ref_name == 'main' }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
fetch-depth: 0 | ||
fetch-tags: true | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: ${{ github.event.repository.name }} | ||
- name: Check if the latest version is releasable | ||
run: | | ||
version="$(dpkg-parsechangelog -S Version)" | ||
echo "version=$version" >> $GITHUB_ENV | ||
echo "changes<<EOF" >> $GITHUB_ENV | ||
echo '```' >> $GITHUB_ENV | ||
echo "$(dpkg-parsechangelog -S Changes)" >> $GITHUB_ENV | ||
echo '```' >> $GITHUB_ENV | ||
echo "EOF" >> $GITHUB_ENV | ||
if [[ -n "$(git tag -l "$version")" ]] | ||
then | ||
echo "distro=UNRELEASED" >> $GITHUB_ENV | ||
else | ||
echo "distro=$(dpkg-parsechangelog -S Distribution)" >> $GITHUB_ENV | ||
fi | ||
echo "$version" > VERSION | ||
if [[ -f pkg.conf.template ]] | ||
then | ||
sed "s/VERSION/$(dpkg-parsechangelog -S Version)/g" pkg.conf.template > pkg.conf | ||
fi | ||
- name: Release | ||
if: env.distro != 'UNRELEASED' | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
tag_name: ${{ env.version }} | ||
body_path: README.md | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
target_commitish: main | ||
draft: false | ||
fail_on_unmatched_files: false | ||
files: | | ||
*.deb | ||
pkg.conf | ||
VERSION | ||
- name: Append changelog | ||
if: env.distro != 'UNRELEASED' | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
tag_name: ${{ env.version }} | ||
body: | | ||
## Changelog for ${{ env.version }} | ||
${{ env.changes }} | ||
append_body: true | ||
- name: Update Test repos | ||
if: env.distro != 'UNRELEASED' | ||
uses: radxa-repo/update-repo-action@main | ||
with: | ||
test-repo: true | ||
token: ${{ secrets.RADXA_APT_TEST_REPO_TOKEN }} |
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 @@ | ||
/.vscode* |
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,3 @@ | ||
[submodule "src"] | ||
path = src | ||
url = https://github.com/openwrt/rtl8126.git |
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,48 @@ | ||
PROJECT ?= r8126 | ||
PREFIX ?= /usr | ||
BINDIR ?= $(PREFIX)/bin | ||
LIBDIR ?= $(PREFIX)/lib | ||
MANDIR ?= $(PREFIX)/share/man | ||
|
||
.PHONY: all | ||
all: build | ||
|
||
# | ||
# Test | ||
# | ||
.PHONY: test | ||
test: | ||
|
||
# | ||
# Build | ||
# | ||
.PHONY: build | ||
build: | ||
|
||
# | ||
# Clean | ||
# | ||
.PHONY: distclean | ||
distclean: clean | ||
|
||
.PHONY: clean | ||
clean: clean-deb | ||
|
||
.PHONY: clean-deb | ||
clean-deb: | ||
rm -rf debian/.debhelper debian/r8126-dkms debian/debhelper-build-stamp debian/files debian/*.debhelper.log debian/*.*.debhelper debian/*.substvars | ||
|
||
# | ||
# Release | ||
# | ||
.PHONY: dch | ||
dch: debian/changelog | ||
EDITOR=true gbp dch --ignore-branch --multimaint-merge --commit --release --dch-opt=--upstream | ||
|
||
.PHONY: deb | ||
deb: debian | ||
debuild --no-lintian --lintian-hook "lintian --fail-on error,warning --suppress-tags bad-distribution-in-changes-file -- %p_%v_*.changes" --no-sign -b | ||
|
||
.PHONY: release | ||
release: | ||
gh workflow run .github/workflows/new_version.yml --ref $(shell git branch --show-current) |
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 @@ | ||
# r8126-dkms | ||
|
||
[](https://github.com/radxa-pkg/r8126-dkms/actions/workflows/release.yml) | ||
|
||
Realtek RTL8126 Wi-Fi driver |
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,8 @@ | ||
/.debhelper | ||
/debhelper-build-stamp | ||
/files | ||
/r8126-dkms | ||
/*.debhelper.log | ||
/*.debhelper | ||
/*.substvars | ||
/tmp |
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 @@ | ||
r8126 (10.014.01-1) stable; urgency=medium | ||
|
||
* Initial release | ||
|
||
-- "Radxa Computer Co., Ltd" <[email protected]> Thu, 09 Jan 2025 15:10:41 +0800 |
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 @@ | ||
12 |
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,19 @@ | ||
Source: r8126 | ||
Maintainer: "Radxa Computer Co., Ltd" <[email protected]> | ||
Section: misc | ||
Priority: optional | ||
Standards-Version: 4.6.0 | ||
Build-Depends: debhelper (>=12~), | ||
devscripts, | ||
dh-sequence-dkms, | ||
lintian, | ||
dh-exec, | ||
|
||
Package: r8126-dkms | ||
Architecture: all | ||
Section: misc | ||
Priority: optional | ||
Depends: ${misc:Depends}, | ||
Description: dkms sources for Realtek RTL8126 Wi-Fi driver | ||
This package provides the dkms source code for Realtek | ||
RTL8126 Wi-Fi driver. |
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,26 @@ | ||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ | ||
Upstream-Name: r8126 | ||
Source: https://github.com/radxa-pkg/r8126 | ||
|
||
Files: * | ||
Copyright: © 2025 Radxa Computer Co., Ltd | ||
License: GPL-3+ | ||
|
||
License: GPL-3+ | ||
This program is free software; you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation; either version 3, or (at your option) | ||
any later version. | ||
. | ||
This program is distributed in the hope that it will be useful, but | ||
WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
General Public License for more details. | ||
. | ||
You should have received a copy of the GNU General Public License | ||
along with this program; if not, write to the Free Software | ||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA | ||
02110-1301, USA. | ||
. | ||
On Debian systems, the complete text of the GNU General Public License | ||
can be found in /usr/share/common-licenses/GPL-3. |
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 @@ | ||
PACKAGE_NAME="r8126" | ||
PACKAGE_VERSION="#MODULE_VERSION#" | ||
BUILT_MODULE_NAME[0]="$PACKAGE_NAME" | ||
DEST_MODULE_LOCATION[0]="/kernel/drivers/net/wireless/" | ||
AUTOINSTALL="YES" |
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,3 @@ | ||
#!/usr/bin/dh-exec | ||
|
||
src/* usr/src/r8126-${DEB_VERSION}/ |
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,2 @@ | ||
# We do not track this on GitHub | ||
r8126-dkms: initial-upload-closes-no-bugs |
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 @@ | ||
#!/usr/bin/make -f | ||
|
||
include /usr/share/dpkg/pkg-info.mk | ||
include /usr/share/dpkg/architecture.mk | ||
|
||
%: | ||
dh $@ | ||
|
||
override_dh_install: | ||
DEB_VERSION=$(DEB_VERSION) dh_install | ||
|
||
override_dh_dkms: | ||
dh_dkms -V $(DEB_VERSION) | ||
|
||
override_dh_builddeb: | ||
dh_builddeb -- -Zxz |
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 @@ | ||
3.0 (quilt) |
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,4 @@ | ||
# Our package is built on GitHub-hosted runner, | ||
# which uses Ubuntu, and will default to zstd compression. | ||
# This is currently not supported in Debian. | ||
r8126 source: custom-compression-in-debian-rules |