summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO19
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD32
-rw-r--r--dkms.conf26
4 files changed, 81 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..1f240ffbfc9
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = pivccu-modules-dkms
+ pkgdesc = Kernel modules needed for Homematic
+ pkgver = 1.0.27
+ pkgrel = 1
+ url = https://github.com/alexreinert/piVCCU/
+ arch = arm
+ arch = armv6h
+ arch = armv7h
+ license = GPL
+ makedepends = dtc
+ depends = dkms
+ conflicts = pivccu-modules
+ source = pivccu::git+https://github.com/alexreinert/piVCCU#commit=d4a972d79228af2f755ba9684ee3dd8cc38f3706
+ source = dkms.conf
+ sha256sums = SKIP
+ sha256sums = 0440113135ab4b9a2d46859abd2854f831e99da06f9e410c56bef199b7d0a6df
+
+pkgname = pivccu-modules-dkms
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..14b2efa17d8
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+src/
+pkg/
+*.tar.xz
+pivccu/
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d5f59aae334
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: Alexander Sulfrian <asulfrian@zedat.fu-berlin.de>
+
+_pkgbase=pivccu-modules
+pkgname=${_pkgbase}-dkms
+pkgver=1.0.27
+pkgrel=1
+pkgdesc="Kernel modules needed for Homematic"
+arch=('arm' 'armv6h' 'armv7h')
+url="https://github.com/alexreinert/piVCCU/"
+license=('GPL')
+depends=('dkms')
+makedepends=('dtc')
+conflicts=("${_pkgbase}")
+source=("pivccu::git+https://github.com/alexreinert/piVCCU#commit=d4a972d79228af2f755ba9684ee3dd8cc38f3706"
+ "dkms.conf")
+sha256sums=("SKIP"
+ "0440113135ab4b9a2d46859abd2854f831e99da06f9e410c56bef199b7d0a6df")
+
+package() {
+ install -Dm644 -t "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/ \
+ pivccu/kernel/* dkms.conf
+
+ # This is in the eq3_char_loop-dkms package
+ sed -i '/eq3_char_loop/d' "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/Makefile
+
+ # Set name and version in dkms.conf
+ sed -e "s/@_PKGBASE@/${_pkgbase}/" \
+ -e "s/@PKGVER@/${pkgver}/" \
+ -i "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/dkms.conf
+}
+
+# vim:set sw=4 sts=4 et:
diff --git a/dkms.conf b/dkms.conf
new file mode 100644
index 00000000000..30b047f7ec7
--- /dev/null
+++ b/dkms.conf
@@ -0,0 +1,26 @@
+PACKAGE_NAME="@_PKGBASE@"
+PACKAGE_VERSION="@PKGVER@"
+MAKE[0]="make -C ${kernel_source_dir} M=${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build"
+CLEAN="make -C ${kernel_source_dir} M=${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build clean"
+AUTOINSTALL="yes"
+
+BUILT_MODULE_NAME[0]="plat_eq3ccu2"
+DEST_MODULE_LOCATION[0]="/extra/pivccu3"
+BUILT_MODULE_NAME[1]="generic_raw_uart"
+DEST_MODULE_LOCATION[1]="/extra/pivccu3"
+BUILT_MODULE_NAME[2]="pl011_raw_uart"
+DEST_MODULE_LOCATION[2]="/extra/pivccu3"
+BUILT_MODULE_NAME[3]="dw_apb_raw_uart"
+DEST_MODULE_LOCATION[3]="/extra/pivccu3"
+BUILT_MODULE_NAME[4]="meson_raw_uart"
+DEST_MODULE_LOCATION[4]="/extra/pivccu3"
+BUILT_MODULE_NAME[5]="fake_hmrf"
+DEST_MODULE_LOCATION[5]="/extra/pivccu3"
+BUILT_MODULE_NAME[6]="rpi_rf_mod_led"
+DEST_MODULE_LOCATION[6]="/extra/pivccu3"
+BUILT_MODULE_NAME[7]="dummy_rx8130"
+DEST_MODULE_LOCATION[7]="/extra/pivccu3"
+BUILT_MODULE_NAME[8]="led_trigger_timer"
+DEST_MODULE_LOCATION[8]="/extra/pivccu3"
+BUILT_MODULE_NAME[9]="hb_rf_usb"
+DEST_MODULE_LOCATION[9]="/extra/pivccu3"