diff --git a/extra/libudev-zero/README b/extra/libudev-zero/README index a885adb9..ea6b6991 100644 --- a/extra/libudev-zero/README +++ b/extra/libudev-zero/README @@ -14,8 +14,10 @@ ________________________________________________________________________________ * Installation ........................................................... [001] * Setup .................................................................. [002] -* Usage .................................................................. [003] -* References ............................................................. [004] + * Configure mdev For Hotplugging ....................................... [003] + * Configure mdevd For Hotplugging ...................................... [004] +* Usage .................................................................. [005] +* References ............................................................. [006] [001] Installation @@ -32,17 +34,37 @@ ________________________________________________________________________________ ________________________________________________________________________________ If using mdev or mdevd (with the default configuration files), libudev-zero will -automatically be used once installed. +automatically be used once installed. If not, the following configuration must +be done for hotplugging to work. -[003] Usage +--[003] Configure mdev For Hotplugging ----------------------------------------- + + Add the folllowing to your /etc/mdev.conf. + + +----------------------------------------------------------------------------+ + | | + | SUBSYSTEM=drm;.* root:video 660 *libudev-zero-helper | + | SUBSYSTEM=input;.* root:input 660 *libudev-zero-helper | + | | + +----------------------------------------------------------------------------+ + + +--[004] Configure mdevd For Hotplugging ---------------------------------------- + + Ensure that mdevd is started with the flags '-O 4'. This will make the daemon + rebroadcast kernel uevents to libudev-zero. The distribution's default service + runs mdevd with these flags. + + +[005] Usage ________________________________________________________________________________ Refer to the FreeDesktop libudev documentation for library information. Refer to the project's upstream for more information. -[004] References +[006] References ________________________________________________________________________________ [0] https://github.com/illiliti/libudev-zero diff --git a/extra/libudev-zero/build b/extra/libudev-zero/build index 21cd2e73..6e849ad0 100755 --- a/extra/libudev-zero/build +++ b/extra/libudev-zero/build @@ -1,4 +1,12 @@ -#!/bin/sh -e +#!/bin/sh -ef make PREFIX=/usr make PREFIX=/usr install + +mkdir -p "$1/usr/bin" + +# Intentional, globbing disabled. +# shellcheck disable=2086 +"$CC" -static $LDFLAGS $CFLAGS $CPPFLAGS \ + -o "$1/usr/bin/libudev-zero-helper" contrib/helper.c + diff --git a/extra/libudev-zero/checksums b/extra/libudev-zero/checksums index d75c293a..879b6455 100644 --- a/extra/libudev-zero/checksums +++ b/extra/libudev-zero/checksums @@ -1 +1 @@ -23f1046f13403ec217665193e78dad6cdb0af54e105a9aaf8440a846e66a1d62 +68c20aefd7aa89abe446cf5ec76f5846315ded719f0665eabed9261cc3c7f47a diff --git a/extra/libudev-zero/version b/extra/libudev-zero/version index b6c71939..44489962 100644 --- a/extra/libudev-zero/version +++ b/extra/libudev-zero/version @@ -1 +1 @@ -0.5.2 1 +1.0.0 1