mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH v4] libdrm: version bump 2.7.74 -> 2.7.75
@ 2017-03-16 14:47 Markus Niebel
  2017-03-17  9:29 ` Michael Olbrich
  0 siblings, 1 reply; 3+ messages in thread
From: Markus Niebel @ 2017-03-16 14:47 UTC (permalink / raw)
  To: ptxdist; +Cc: m.olbrich, Markus Niebel

From: Markus Niebel <Markus.Niebel@tq-group.com>

- drop not longer nneded libudev dependency
- make udev support optional (udev is not needed to build but
  if compiled with udev support udev is expected to handle device
  nodes)

Signed-off-by: Markus Niebel <Markus.Niebel@tq-group.com>
---
changes since v3:

- cleanup leftovers from git merge conflicts (again)

changes since v2:
- handle as single patch, part of original series was applied
- fix udev dependency
- fix commit message for new version

changes since v1:

- cleanup leftovers from git merge conflicts


 rules/libdrm.in   | 10 ++++++++--
 rules/libdrm.make |  6 +++---
 2 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/rules/libdrm.in b/rules/libdrm.in
index 5e77665..385af35 100644
--- a/rules/libdrm.in
+++ b/rules/libdrm.in
@@ -4,8 +4,7 @@ menuconfig LIBDRM
 	tristate
 	prompt "libdrm                        "
 	select LIBC_RT
-	select UDEV
-	select UDEV_LIBUDEV
+	select UDEV if LIBDRM_USE_UDEV && RUNTIME
 	select LIBPTHREAD_STUBS
 	select LIBPCIACCESS	if LIBDRM_INTEL
 	help
@@ -14,6 +13,13 @@ menuconfig LIBDRM
 
 if LIBDRM
 
+config LIBDRM_USE_UDEV
+	bool
+	prompt "Enable support for udev"
+	help
+	  Enable support for using udev instead of mknod. If enabled, udev is
+	  expected to manage device nodes for probed modules
+
 config LIBDRM_LIBKMS
 	bool
 	prompt "build libkms"
diff --git a/rules/libdrm.make b/rules/libdrm.make
index ec02cc7..7a2f2be 100644
--- a/rules/libdrm.make
+++ b/rules/libdrm.make
@@ -17,8 +17,8 @@ PACKAGES-$(PTXCONF_LIBDRM) += libdrm
 #
 # Paths and names
 #
-LIBDRM_VERSION	:= 2.4.74
-LIBDRM_MD5	:= b661a54514109caad3de3b520680b98e
+LIBDRM_VERSION	:= 2.4.75
+LIBDRM_MD5	:= 743c16109d91a2539dfc9cc56130d695
 LIBDRM		:= libdrm-$(LIBDRM_VERSION)
 LIBDRM_SUFFIX	:= tar.gz
 LIBDRM_URL	:= http://dri.freedesktop.org/libdrm/$(LIBDRM).$(LIBDRM_SUFFIX)
@@ -61,7 +61,7 @@ LIBDRM_BACKENDSL-y += $(LIBDRM_BACKENDS-y)
 LIBDRM_CONF_TOOL := autoconf
 LIBDRM_CONF_OPT := \
 	$(CROSS_AUTOCONF_USR) \
-	--enable-udev \
+	--$(call ptx/endis, PTXCONF_LIBDRM_USE_UDEV)-udev \
 	--$(call ptx/endis, PTXCONF_LIBDRM_LIBKMS)-libkms \
 	$(addprefix --enable-,$(LIBDRM_BACKENDSC-y)) \
 	$(addprefix --disable-,$(LIBDRM_BACKENDSC-)) \
-- 
1.9.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ptxdist] [PATCH v4] libdrm: version bump 2.7.74 -> 2.7.75
  2017-03-16 14:47 [ptxdist] [PATCH v4] libdrm: version bump 2.7.74 -> 2.7.75 Markus Niebel
@ 2017-03-17  9:29 ` Michael Olbrich
  2017-03-17 10:15   ` Markus Niebel
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Olbrich @ 2017-03-17  9:29 UTC (permalink / raw)
  To: ptxdist

On Thu, Mar 16, 2017 at 03:47:58PM +0100, Markus Niebel wrote:
> From: Markus Niebel <Markus.Niebel@tq-group.com>
> 
> - drop not longer nneded libudev dependency
> - make udev support optional (udev is not needed to build but
>   if compiled with udev support udev is expected to handle device
>   nodes)
> 
> Signed-off-by: Markus Niebel <Markus.Niebel@tq-group.com>
> ---
> changes since v3:
> 
> - cleanup leftovers from git merge conflicts (again)
> 
> changes since v2:
> - handle as single patch, part of original series was applied
> - fix udev dependency

I meant an unconditional dependency. I looked at this some more. The
'--enable-udev' options is not named correctly. What the corresponding code
does is if a drm device is missing, then either wait for it (--enable-udev)
or create it (--disable-udev).

So for any system that hat either udev or devtmpfs '--enable-udev' should
be used.
So unless you have a use-case where this is not the case, I will just fixup
the patch and drop the udev dependency entirely and set --enable-udev
unconditionally.

Michael

> - fix commit message for new version
> 
> changes since v1:
> 
> - cleanup leftovers from git merge conflicts
> 
> 
>  rules/libdrm.in   | 10 ++++++++--
>  rules/libdrm.make |  6 +++---
>  2 files changed, 11 insertions(+), 5 deletions(-)
> 
> diff --git a/rules/libdrm.in b/rules/libdrm.in
> index 5e77665..385af35 100644
> --- a/rules/libdrm.in
> +++ b/rules/libdrm.in
> @@ -4,8 +4,7 @@ menuconfig LIBDRM
>  	tristate
>  	prompt "libdrm                        "
>  	select LIBC_RT
> -	select UDEV
> -	select UDEV_LIBUDEV
> +	select UDEV if LIBDRM_USE_UDEV && RUNTIME
>  	select LIBPTHREAD_STUBS
>  	select LIBPCIACCESS	if LIBDRM_INTEL
>  	help
> @@ -14,6 +13,13 @@ menuconfig LIBDRM
>  
>  if LIBDRM
>  
> +config LIBDRM_USE_UDEV
> +	bool
> +	prompt "Enable support for udev"
> +	help
> +	  Enable support for using udev instead of mknod. If enabled, udev is
> +	  expected to manage device nodes for probed modules
> +
>  config LIBDRM_LIBKMS
>  	bool
>  	prompt "build libkms"
> diff --git a/rules/libdrm.make b/rules/libdrm.make
> index ec02cc7..7a2f2be 100644
> --- a/rules/libdrm.make
> +++ b/rules/libdrm.make
> @@ -17,8 +17,8 @@ PACKAGES-$(PTXCONF_LIBDRM) += libdrm
>  #
>  # Paths and names
>  #
> -LIBDRM_VERSION	:= 2.4.74
> -LIBDRM_MD5	:= b661a54514109caad3de3b520680b98e
> +LIBDRM_VERSION	:= 2.4.75
> +LIBDRM_MD5	:= 743c16109d91a2539dfc9cc56130d695
>  LIBDRM		:= libdrm-$(LIBDRM_VERSION)
>  LIBDRM_SUFFIX	:= tar.gz
>  LIBDRM_URL	:= http://dri.freedesktop.org/libdrm/$(LIBDRM).$(LIBDRM_SUFFIX)
> @@ -61,7 +61,7 @@ LIBDRM_BACKENDSL-y += $(LIBDRM_BACKENDS-y)
>  LIBDRM_CONF_TOOL := autoconf
>  LIBDRM_CONF_OPT := \
>  	$(CROSS_AUTOCONF_USR) \
> -	--enable-udev \
> +	--$(call ptx/endis, PTXCONF_LIBDRM_USE_UDEV)-udev \
>  	--$(call ptx/endis, PTXCONF_LIBDRM_LIBKMS)-libkms \
>  	$(addprefix --enable-,$(LIBDRM_BACKENDSC-y)) \
>  	$(addprefix --disable-,$(LIBDRM_BACKENDSC-)) \
> -- 
> 1.9.1
> 
> 
> _______________________________________________
> ptxdist mailing list
> ptxdist@pengutronix.de

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ptxdist] [PATCH v4] libdrm: version bump 2.7.74 -> 2.7.75
  2017-03-17  9:29 ` Michael Olbrich
@ 2017-03-17 10:15   ` Markus Niebel
  0 siblings, 0 replies; 3+ messages in thread
From: Markus Niebel @ 2017-03-17 10:15 UTC (permalink / raw)
  To: ptxdist

Am Freitag, den 17.03.2017, 10:29 +0100 schrieb Michael Olbrich:
> On Thu, Mar 16, 2017 at 03:47:58PM +0100, Markus Niebel wrote:
> > From: Markus Niebel <Markus.Niebel@tq-group.com>
> > 
> > - drop not longer nneded libudev dependency
> > - make udev support optional (udev is not needed to build but
> >   if compiled with udev support udev is expected to handle device
> >   nodes)
> > 
> > Signed-off-by: Markus Niebel <Markus.Niebel@tq-group.com>
> > ---
> > changes since v3:
> > 
> > - cleanup leftovers from git merge conflicts (again)
> > 
> > changes since v2:
> > - handle as single patch, part of original series was applied
> > - fix udev dependency
> 
> I meant an unconditional dependency. I looked at this some more. The
> '--enable-udev' options is not named correctly. What the corresponding code
> does is if a drm device is missing, then either wait for it (--enable-udev)
> or create it (--disable-udev).
> 
> So for any system that hat either udev or devtmpfs '--enable-udev' should
> be used.
> So unless you have a use-case where this is not the case, I will just fixup
> the patch and drop the udev dependency entirely and set --enable-udev
> unconditionally.

Thank you for explaining it. I read the relevant code, was misguided by
--enable-udev and did not thought of devtmpfs.

Markus

> 
> Michael
> 
> > - fix commit message for new version
> > 
> > changes since v1:
> > 
> > - cleanup leftovers from git merge conflicts
> > 
> > 
> >  rules/libdrm.in   | 10 ++++++++--
> >  rules/libdrm.make |  6 +++---
> >  2 files changed, 11 insertions(+), 5 deletions(-)
> > 
> > diff --git a/rules/libdrm.in b/rules/libdrm.in
> > index 5e77665..385af35 100644
> > --- a/rules/libdrm.in
> > +++ b/rules/libdrm.in
> > @@ -4,8 +4,7 @@ menuconfig LIBDRM
> >  	tristate
> >  	prompt "libdrm                        "
> >  	select LIBC_RT
> > -	select UDEV
> > -	select UDEV_LIBUDEV
> > +	select UDEV if LIBDRM_USE_UDEV && RUNTIME
> >  	select LIBPTHREAD_STUBS
> >  	select LIBPCIACCESS	if LIBDRM_INTEL
> >  	help
> > @@ -14,6 +13,13 @@ menuconfig LIBDRM
> >  
> >  if LIBDRM
> >  
> > +config LIBDRM_USE_UDEV
> > +	bool
> > +	prompt "Enable support for udev"
> > +	help
> > +	  Enable support for using udev instead of mknod. If enabled, udev is
> > +	  expected to manage device nodes for probed modules
> > +
> >  config LIBDRM_LIBKMS
> >  	bool
> >  	prompt "build libkms"
> > diff --git a/rules/libdrm.make b/rules/libdrm.make
> > index ec02cc7..7a2f2be 100644
> > --- a/rules/libdrm.make
> > +++ b/rules/libdrm.make
> > @@ -17,8 +17,8 @@ PACKAGES-$(PTXCONF_LIBDRM) += libdrm
> >  #
> >  # Paths and names
> >  #
> > -LIBDRM_VERSION	:= 2.4.74
> > -LIBDRM_MD5	:= b661a54514109caad3de3b520680b98e
> > +LIBDRM_VERSION	:= 2.4.75
> > +LIBDRM_MD5	:= 743c16109d91a2539dfc9cc56130d695
> >  LIBDRM		:= libdrm-$(LIBDRM_VERSION)
> >  LIBDRM_SUFFIX	:= tar.gz
> >  LIBDRM_URL	:= http://dri.freedesktop.org/libdrm/$(LIBDRM).$(LIBDRM_SUFFIX)
> > @@ -61,7 +61,7 @@ LIBDRM_BACKENDSL-y += $(LIBDRM_BACKENDS-y)
> >  LIBDRM_CONF_TOOL := autoconf
> >  LIBDRM_CONF_OPT := \
> >  	$(CROSS_AUTOCONF_USR) \
> > -	--enable-udev \
> > +	--$(call ptx/endis, PTXCONF_LIBDRM_USE_UDEV)-udev \
> >  	--$(call ptx/endis, PTXCONF_LIBDRM_LIBKMS)-libkms \
> >  	$(addprefix --enable-,$(LIBDRM_BACKENDSC-y)) \
> >  	$(addprefix --disable-,$(LIBDRM_BACKENDSC-)) \
> > -- 
> > 1.9.1
> > 
> > 
> > _______________________________________________
> > ptxdist mailing list
> > ptxdist@pengutronix.de
> 



_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-03-17 10:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-16 14:47 [ptxdist] [PATCH v4] libdrm: version bump 2.7.74 -> 2.7.75 Markus Niebel
2017-03-17  9:29 ` Michael Olbrich
2017-03-17 10:15   ` Markus Niebel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox