main/mkinitfs: backport rpirtc support

Backport rpirtc fix
This commit is contained in:
Henrik Riomar 2019-12-22 10:46:24 +01:00 committed by Leo
parent 516221f426
commit 226995c84d
2 changed files with 48 additions and 2 deletions

View File

@ -2,7 +2,7 @@
pkgname=mkinitfs
pkgver=3.4.3
_ver=${pkgver%_git*}
pkgrel=0
pkgrel=1
pkgdesc="Tool to generate initramfs images for Alpine"
url="https://git.alpinelinux.org/cgit/mkinitfs"
arch="all"
@ -16,6 +16,7 @@ subpackages="$pkgname-doc"
install="$pkgname.pre-upgrade $pkgname.post-install $pkgname.post-upgrade"
triggers="$pkgname.trigger=/usr/share/kernel/*"
source="https://dev.alpinelinux.org/archive/$pkgname/$pkgname-$_ver.tar.xz
add-feature-rpirtc.patch
"
build() {
@ -28,4 +29,5 @@ package() {
make install DESTDIR="$pkgdir"
}
sha512sums="d335a6f58ca38a3cc6dcc560baaabd3ea9522ce25de008eb637f0761db7f783c3b03767ba046c3d34550d1d0741bcc54ad09903b41e79fe408264eadbbc0a457 mkinitfs-3.4.3.tar.xz"
sha512sums="d335a6f58ca38a3cc6dcc560baaabd3ea9522ce25de008eb637f0761db7f783c3b03767ba046c3d34550d1d0741bcc54ad09903b41e79fe408264eadbbc0a457 mkinitfs-3.4.3.tar.xz
964481c742c1c7ac6b77c075f2c75f8d8f6277e8b781ea88e0fa6cb652fe892de8530cf120801ad73794bed19556af2c56ec2c1d1a7fcf6a802df93341d650bc add-feature-rpirtc.patch"

View File

@ -0,0 +1,44 @@
From f87f786cb9f066288d6482aafb32b7e88dc5f4b8 Mon Sep 17 00:00:00 2001
From: Henrik Riomar <henrik.riomar@gmail.com>
Date: Tue, 15 Oct 2019 12:59:43 +0200
Subject: [PATCH] add feature rpirtc
Add new feature rpi rtc allowing a hw rtc to be used.
The init script in Alpine Linux since v3.9 looks for /dev/rtc, if
not found it will switch to swclock.
To make this check work on a Rasberry PI with a mounted rtc and
the following in usercfg.txt
dtoverlay=i2c-rtc,ds3231
we must have rtc drivers available already initramfs.
(cherry picked from commit 89f9c4fb0dd3a69dea4cb7ecead55692c9732e06)
---
Makefile | 1 +
features.d/rpirtc.modules | 1 +
2 files changed, 2 insertions(+)
create mode 100644 features.d/rpirtc.modules
diff --git a/Makefile b/Makefile
index 3c076a1..b4524a5 100644
--- a/Makefile
+++ b/Makefile
@@ -43,6 +43,7 @@ CONF_FILES := mkinitfs.conf \
features.d/raid.files \
features.d/raid.modules \
features.d/reiserfs.modules \
+ features.d/rpirtc.modules \
features.d/scsi.modules \
features.d/squashfs.modules \
features.d/ubifs.modules \
diff --git a/features.d/rpirtc.modules b/features.d/rpirtc.modules
new file mode 100644
index 0000000..91c8ad3
--- /dev/null
+++ b/features.d/rpirtc.modules
@@ -0,0 +1 @@
+kernel/drivers/rtc/rtc-ds1307.ko
--
2.24.1