debian/unipi-kernel-modules.changelog
debian/neuron-kernel.install
debian/unipi-kernel-modules-dkms.install
+debian/unipi-kernel-modules.substvars
+debian/unipi-kernel-modules.postinst.debhelper
+debian/unipi-kernel-modules.prerm.debhelper
+debian/unipi-kernel-modules.postrm.debhelper
debian/neuron-kernel.substvars
debian/neuron-kernel.postinst.debhelper
debian/neuron-kernel.postrm.debhelper
debian/neuron-kernel/
+debian/unipi-kernel-modules/
\ No newline at end of file
Homepage: https://www.unipi.technology/
Vcs-Git: https://git.unipi.technology/UniPi/unipi-kernel.git
-Package: neuron-kernel
-Architecture: armhf
-Depends: ${misc:Depends}, unipi-common, raspberrypi-kernel(=${PKG-KERNEL-VER})
-Description: UniPi Neuron kernel modules
- Binary kernel modules for UniPi Neuron controller. Compiled with
- raspberrypi-kernel from Raspbian distribution.
-
Package: unipi-kernel-modules-dkms
Architecture: all
Pre-Depends: raspberrypi-kernel-headers | axon-kernel-headers | linux-headers(>=4.0)
Depends: ${misc:Depends}, unipi-common, dkms
Replaces: neuron-kernel, unipi-kernel-modules
Conflicts: neuron-kernel, unipi-kernel-modules
-Description: UniPi Neuron kernel modules - DKMS source
+Description: UniPi Neuron/Axon kernel modules - DKMS source
This package contains source code of kernel module for spi protocol
used by internal boards in the UniPi Neuron/Axon controllers.
Can be used with DKMS so that local kernel images are automatically
built and installed every time relevant kernel packages are upgraded.
-Package: unipi-kernel-modules
-Architecture: arm64
-Depends: ${misc:Depends}, unipi-common, axon-kernel-image(=${PKG-KERNEL-VER})
-Description: UniPi Axon kernel modules
- Binary kernel modules for UniPi Axon controller. Compiled for axon-kernel-image
- version.
-
--- /dev/null
+Source: unipi-kernel-modules
+Section: kernel
+Priority: optional
+Maintainer: Miroslav Ondra <info@unipi.technology>
+Build-Depends: debhelper (>= 9)
+Standards-Version: 3.9.8
+Homepage: https://www.unipi.technology/
+Vcs-Git: https://git.unipi.technology/UniPi/unipi-kernel.git
+
+Package: unipi-kernel-modules-dkms
+Architecture: all
+Pre-Depends: raspberrypi-kernel-headers | axon-kernel-headers | linux-headers(>=4.0)
+Depends: ${misc:Depends}, unipi-common, dkms
+Replaces: neuron-kernel, unipi-kernel-modules
+Conflicts: neuron-kernel, unipi-kernel-modules
+Description: UniPi Neuron/Axon kernel modules - DKMS source
+ This package contains source code of kernel module for spi protocol
+ used by internal boards in the UniPi Neuron/Axon controllers.
+ Can be used with DKMS so that local kernel images are automatically
+ built and installed every time relevant kernel packages are upgraded.
+
--- /dev/null
+
+Package: unipi-kernel-modules
+Architecture: arm64 armhf
+Depends: ${misc:Depends}, unipi-common, axon-kernel-image(=${PKG-KERNEL-VER}) | raspberrypi-kernel(=${PKG-KERNEL-VER})
+Replaces: neuron-kernel
+Breaks: neuron-kernel
+Description: UniPi Neuron/Axon kernel modules
+ Binary kernel modules for UniPi Neuron/Axon controller. Compiled for axon-kernel-image
+ version.
+
--- /dev/null
+Package: neuron-kernel
+Architecture: armhf
+Depends: ${misc:Depends}, unipi-common, raspberrypi-kernel(=${PKG-KERNEL-VER})
+Description: UniPi Neuron kernel modules
+ Binary kernel modules for UniPi Neuron controller. Compiled with
+ raspberrypi-kernel from Raspbian distribution.
+
+Package: unipi-kernel-modules
+Architecture: arm64
+Depends: ${misc:Depends}, unipi-common, axon-kernel-image(=${PKG-KERNEL-VER}) | raspberrypi-kernel(=${PKG-KERNEL-VER})
+Description: UniPi Neuron/Axon kernel modules
+ Binary kernel modules for UniPi Neuron/Axon controller. Compiled for axon-kernel-image
+ version.
+
MOD_VERSION=$(shell dpkg-parsechangelog |grep ^Version:|cut -d ' ' -f 2)
+DEBIAN_VERSION=$(shell . /ci-scripts/include.sh ; echo $${DEBIAN_VERSION})
+
+ifeq ($(DEBIAN_VERSION),stretch)
+ BINARY_PKG_NAME=neuron-kernel
+ CONTROL_INC=stretch
+else
+ BINARY_PKG_NAME=unipi-kernel-modules
+ CONTROL_INC=buster
+endif
+
ifeq ($(shell dpkg-architecture -q DEB_HOST_ARCH),armhf)
ifeq ($(shell dpkg-architecture -q DEB_BUILD_ARCH),armhf)
RPI_FIRMWARE_VER = $(shell dpkg-query -f='$${Version}' -W raspberrypi-kernel-headers)
KERNEL_VERSION = $(subst /lib/modules/,,$(subst /build,,$(LINUX_DIR_PATH)))
endif
+clean:
+ cat debian/control.in debian/control.in$(CONTROL_INC) >debian/control
+ dh clean --with dkms
%:
dh $@ --with dkms
ifeq ($(shell dpkg-architecture -q DEB_HOST_ARCH),armhf)
override_dh_prep:
- @dh_prep --exclude=neuron-kernel.substvars
- @echo PKG-KERNEL-VER=${RPI_FIRMWARE_VER} >> debian/neuron-kernel.substvars
+ @dh_prep --exclude=$(BINARY_PKG_NAME).substvars
+ @echo PKG-KERNEL-VER=${RPI_FIRMWARE_VER} >> debian/$(BINARY_PKG_NAME).substvars
( sed 's/)/.${RPI_FIRMWARE_VER})/;q' debian/changelog; \
printf "\n * Compiled for raspberrypi-kernel\n";\
printf "\n -- auto-generator <info@unipi.technology> %s\n\n" "`date -R`"; \
cat debian/changelog;\
- ) >debian/neuron-kernel.changelog
+ ) >debian/$(BINARY_PKG_NAME).changelog
endif
ifeq ($(shell dpkg-architecture -q DEB_HOST_ARCH),arm64)
override_dh_prep:
endif
ifeq ($(shell dpkg-architecture -q DEB_HOST_ARCH),armhf)
override_dh_auto_install:
- dh_auto_install --destdir=debian/neuron-kernel -- CCPREFIX=${DEB_TARGET_GNU_TYPE}- \
+ dh_auto_install --destdir=debian/$(BINARY_PKG_NAME) -- CCPREFIX=${DEB_TARGET_GNU_TYPE}- \
LINUX_DIR_PATH=$(LINUX_DIR_PATH) ARCH=${DEB_TARGET_ARCH_CPU}
endif
ifeq ($(shell dpkg-architecture -q DEB_HOST_ARCH),amd64)