From bfa9075c40df6f88d5805aed5f7c1f2abbb78c6d Mon Sep 17 00:00:00 2001 From: Piraty Date: Sun, 28 Feb 2021 19:56:40 +0100 Subject: [PATCH] rpi-base: add rpi4 Closes: #29139 --- srcpkgs/rpi-base/template | 13 +++++++++++-- srcpkgs/rpi4-base | 1 + srcpkgs/rpi4-kernel/template | 2 +- 3 files changed, 13 insertions(+), 3 deletions(-) create mode 120000 srcpkgs/rpi4-base diff --git a/srcpkgs/rpi-base/template b/srcpkgs/rpi-base/template index cbe8e79526f..8940033c83a 100644 --- a/srcpkgs/rpi-base/template +++ b/srcpkgs/rpi-base/template @@ -1,7 +1,7 @@ # Template file for 'rpi-base' pkgname=rpi-base version=3.0 -revision=1 +revision=2 archs="armv6l* armv7l* aarch64*" _base_depends="virtual?ntp-daemon rpi-firmware" depends="${_base_depends} rpi-kernel" @@ -22,7 +22,7 @@ case "$XBPS_TARGET_MACHINE" in subpackages="rpi2-base" ;; aarch64*) - subpackages="rpi3-base" + subpackages="rpi3-base rpi4-base" ;; esac @@ -59,3 +59,12 @@ rpi3-base_package() { vinstall "${FILESDIR}/71-raspberrypi.rules" 644 usr/lib/udev/rules.d } } + +rpi4-base_package() { + depends="${_base_depends} rpi4-kernel" + short_desc="Void Linux Raspberry Pi 4 base files" + conflicts="rpi3-base" + pkg_install() { + vinstall "${FILESDIR}/71-raspberrypi.rules" 644 usr/lib/udev/rules.d + } +} diff --git a/srcpkgs/rpi4-base b/srcpkgs/rpi4-base new file mode 120000 index 00000000000..c004915dfa8 --- /dev/null +++ b/srcpkgs/rpi4-base @@ -0,0 +1 @@ +rpi-base \ No newline at end of file diff --git a/srcpkgs/rpi4-kernel/template b/srcpkgs/rpi4-kernel/template index b69cd945758..04fbb7d64bb 100644 --- a/srcpkgs/rpi4-kernel/template +++ b/srcpkgs/rpi4-kernel/template @@ -21,7 +21,7 @@ license="GPL-2.0-only" short_desc="Linux kernel for Raspberry Pi 4 (${version%.*} series [git ${_gitshort}])" distfiles="https://github.com/raspberrypi/linux/archive/${_githash}.tar.gz" checksum=4a98ea0d68c6e74d479789c12fc97619c872cb2607ae87a881a9491c1c3fbc35 -python_version=2 +python_version=3 conflicts=rpi3-kernel _kernver="${version}_${revision}"