aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2020-07-23 22:25:44 +0200
committerThomas Deutschmann <whissi@gentoo.org>2020-07-24 00:56:47 +0200
commitc792697d0ec5e54ee9fcf1536f04f2267dff699d (patch)
tree9ed359203e242165493b4ce9b7c85d16befd4fa7 /gkbuilds/eudev.gkbuild
parentgenkernel: bump to v4.1.0_beta1 (diff)
downloadgenkernel-c792697d0ec5e54ee9fcf1536f04f2267dff699d.tar.gz
genkernel-c792697d0ec5e54ee9fcf1536f04f2267dff699d.tar.bz2
genkernel-c792697d0ec5e54ee9fcf1536f04f2267dff699d.zip
Switch from MDEV to UDEV
We need to switch from using MDEV to UDEV to avoid boot problems due to timeouts caused by some UDEV rules from real system when real system is using systemd. Bug: https://bugs.gentoo.org/706434 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'gkbuilds/eudev.gkbuild')
-rw-r--r--gkbuilds/eudev.gkbuild40
1 files changed, 40 insertions, 0 deletions
diff --git a/gkbuilds/eudev.gkbuild b/gkbuilds/eudev.gkbuild
new file mode 100644
index 00000000..54f2c0df
--- /dev/null
+++ b/gkbuilds/eudev.gkbuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+src_configure() {
+ local myconf=(
+ --enable-static
+ --enable-blkid
+ --disable-introspection
+ --disable-manpages
+ --disable-selinux
+ --disable-rule-generator
+ --disable-hwdb
+ )
+
+ # Cannot link against static kmod, https://lists.freedesktop.org/archives/systemd-devel/2013-June/011173.html
+ myconf+=( --disable-kmod )
+
+ gkconf "${myconf[@]}"
+}
+
+src_install() {
+ default
+
+ local files_to_strip=()
+ files_to_strip+=( /usr/bin/udevadm )
+ files_to_strip+=( /usr/lib/udev/ata_id )
+ files_to_strip+=( /usr/lib/udev/cdrom_id )
+ files_to_strip+=( /usr/lib/udev/collect )
+ files_to_strip+=( /usr/lib/udev/mtd_probe )
+ files_to_strip+=( /usr/lib/udev/scsi_id )
+ files_to_strip+=( /usr/lib/udev/v4l_id )
+ files_to_strip+=( /usr/sbin/udevd )
+
+ local file_to_strip=
+ for file_to_strip in "${files_to_strip[@]}"
+ do
+ "${STRIP}" --strip-all "${D}"${file_to_strip} \
+ || die "Failed to strip '${D}${file_to_strip}'!"
+ done
+}