* [PATCH hwc v1] drm_hwcomposer: Add CONTRIBUTING file
@ 2017-09-22 0:37 Robert Foss
2017-09-22 16:22 ` Zach Reizner
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Robert Foss @ 2017-09-22 0:37 UTC (permalink / raw)
To: dri-devel, Sean Paul, Zach Reizner; +Cc: Robert Foss
Some basic guidelines for contributions could come in handy.
These are copied from IGT and modified to be suitable.
Signed-off-by: Robert Foss <robert.foss@collabora.com>
---
CONTRIBUTING | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
create mode 100644 CONTRIBUTING
diff --git a/CONTRIBUTING b/CONTRIBUTING
new file mode 100644
index 0000000..f1b4775
--- /dev/null
+++ b/CONTRIBUTING
@@ -0,0 +1,31 @@
+Patches to drm_hwcomposer are very much welcome, we really want this to be the
+universal HW composer implementation for Android and similar platforms
+So please bring on porting patches, bugfixes, improvements for documentation
+and new features.
+
+A short list of contribution guidelines:
+
+- Please submit patches formatted with git send-email/git format-patch or
+ equivalent to
+
+ dri-devel <dri-devel@lists.freedesktop.org>
+
+ Please use --subject-prefix="PATCH hwc" so that drm_hwcomposer patches are easily
+ identified in the massive amount mails on dri-devel. To ensure this is always
+ done, run:
+
+ git config format.subjectprefix "PATCH hwc"
+
+- drm_hwcomposer is Apache 2.0 Licensed and we require contributions to follow the
+ developer's certificate of origin: http://developercertificate.org/
+
+- When submitting new code please follow the naming conventions documented
+ in the generated documentation. Also please make full use of all the helpers and
+ convenience macros provided by drm_hwcomposer. The below command can help you
+ with formatting of your patches:
+ git diff | clang-format-diff-3.5 -p 1 -style=file
+
+- Harware specific changes should get tested on relevant platforms
+ before committing.
+
+Happy hacking!
--
2.11.0
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply related [flat|nested] 8+ messages in thread* Re: [PATCH hwc v1] drm_hwcomposer: Add CONTRIBUTING file
2017-09-22 0:37 [PATCH hwc v1] drm_hwcomposer: Add CONTRIBUTING file Robert Foss
@ 2017-09-22 16:22 ` Zach Reizner
2017-09-22 16:23 ` Sean Paul
2017-09-27 14:42 ` Emil Velikov
2 siblings, 0 replies; 8+ messages in thread
From: Zach Reizner @ 2017-09-22 16:22 UTC (permalink / raw)
To: Robert Foss; +Cc: Zach Reizner, dri-devel@lists.freedesktop.org
On Thu, Sep 21, 2017 at 5:37 PM, Robert Foss <robert.foss@collabora.com> wrote:
> Some basic guidelines for contributions could come in handy.
>
> These are copied from IGT and modified to be suitable.
>
> Signed-off-by: Robert Foss <robert.foss@collabora.com>
Reviewed-by: Zach Reizner <zachr@chromium.org>
> ---
> CONTRIBUTING | 31 +++++++++++++++++++++++++++++++
> 1 file changed, 31 insertions(+)
> create mode 100644 CONTRIBUTING
>
> diff --git a/CONTRIBUTING b/CONTRIBUTING
> new file mode 100644
> index 0000000..f1b4775
> --- /dev/null
> +++ b/CONTRIBUTING
> @@ -0,0 +1,31 @@
> +Patches to drm_hwcomposer are very much welcome, we really want this to be the
> +universal HW composer implementation for Android and similar platforms
> +So please bring on porting patches, bugfixes, improvements for documentation
> +and new features.
> +
> +A short list of contribution guidelines:
> +
> +- Please submit patches formatted with git send-email/git format-patch or
> + equivalent to
> +
> + dri-devel <dri-devel@lists.freedesktop.org>
> +
> + Please use --subject-prefix="PATCH hwc" so that drm_hwcomposer patches are easily
> + identified in the massive amount mails on dri-devel. To ensure this is always
> + done, run:
> +
> + git config format.subjectprefix "PATCH hwc"
> +
> +- drm_hwcomposer is Apache 2.0 Licensed and we require contributions to follow the
> + developer's certificate of origin: http://developercertificate.org/
> +
> +- When submitting new code please follow the naming conventions documented
> + in the generated documentation. Also please make full use of all the helpers and
> + convenience macros provided by drm_hwcomposer. The below command can help you
> + with formatting of your patches:
> + git diff | clang-format-diff-3.5 -p 1 -style=file
> +
> +- Harware specific changes should get tested on relevant platforms
> + before committing.
> +
> +Happy hacking!
> --
> 2.11.0
>
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH hwc v1] drm_hwcomposer: Add CONTRIBUTING file
2017-09-22 0:37 [PATCH hwc v1] drm_hwcomposer: Add CONTRIBUTING file Robert Foss
2017-09-22 16:22 ` Zach Reizner
@ 2017-09-22 16:23 ` Sean Paul
2017-09-22 18:22 ` Robert Foss
2017-09-27 14:42 ` Emil Velikov
2 siblings, 1 reply; 8+ messages in thread
From: Sean Paul @ 2017-09-22 16:23 UTC (permalink / raw)
To: Robert Foss; +Cc: Zach Reizner, dri-devel
On Fri, Sep 22, 2017 at 02:37:18AM +0200, Robert Foss wrote:
> Some basic guidelines for contributions could come in handy.
>
> These are copied from IGT and modified to be suitable.
>
> Signed-off-by: Robert Foss <robert.foss@collabora.com>
> ---
> CONTRIBUTING | 31 +++++++++++++++++++++++++++++++
> 1 file changed, 31 insertions(+)
> create mode 100644 CONTRIBUTING
>
> diff --git a/CONTRIBUTING b/CONTRIBUTING
> new file mode 100644
> index 0000000..f1b4775
> --- /dev/null
> +++ b/CONTRIBUTING
> @@ -0,0 +1,31 @@
> +Patches to drm_hwcomposer are very much welcome, we really want this to be the
> +universal HW composer implementation for Android and similar platforms
> +So please bring on porting patches, bugfixes, improvements for documentation
> +and new features.
> +
> +A short list of contribution guidelines:
> +
> +- Please submit patches formatted with git send-email/git format-patch or
> + equivalent to
> +
> + dri-devel <dri-devel@lists.freedesktop.org>
> +
> + Please use --subject-prefix="PATCH hwc" so that drm_hwcomposer patches are easily
> + identified in the massive amount mails on dri-devel. To ensure this is always
> + done, run:
> +
> + git config format.subjectprefix "PATCH hwc"
> +
> +- drm_hwcomposer is Apache 2.0 Licensed and we require contributions to follow the
> + developer's certificate of origin: http://developercertificate.org/
> +
> +- When submitting new code please follow the naming conventions documented
> + in the generated documentation. Also please make full use of all the helpers and
> + convenience macros provided by drm_hwcomposer. The below command can help you
> + with formatting of your patches:
> + git diff | clang-format-diff-3.5 -p 1 -style=file
> +
> +- Harware specific changes should get tested on relevant platforms
*Hardware
With that,
Reviewed-by: Sean Paul <seanpaul@chromium.org>
> + before committing.
> +
> +Happy hacking!
> --
> 2.11.0
>
--
Sean Paul, Software Engineer, Google / Chromium OS
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH hwc v1] drm_hwcomposer: Add CONTRIBUTING file
2017-09-22 16:23 ` Sean Paul
@ 2017-09-22 18:22 ` Robert Foss
0 siblings, 0 replies; 8+ messages in thread
From: Robert Foss @ 2017-09-22 18:22 UTC (permalink / raw)
To: Sean Paul; +Cc: Zach Reizner, dri-devel
Pushed!
On Fri, 2017-09-22 at 09:23 -0700, Sean Paul wrote:
> On Fri, Sep 22, 2017 at 02:37:18AM +0200, Robert Foss wrote:
> > Some basic guidelines for contributions could come in handy.
> >
> > These are copied from IGT and modified to be suitable.
> >
> > Signed-off-by: Robert Foss <robert.foss@collabora.com>
> > ---
> > CONTRIBUTING | 31 +++++++++++++++++++++++++++++++
> > 1 file changed, 31 insertions(+)
> > create mode 100644 CONTRIBUTING
> >
> > diff --git a/CONTRIBUTING b/CONTRIBUTING
> > new file mode 100644
> > index 0000000..f1b4775
> > --- /dev/null
> > +++ b/CONTRIBUTING
> > @@ -0,0 +1,31 @@
> > +Patches to drm_hwcomposer are very much welcome, we really want
> > this to be the
> > +universal HW composer implementation for Android and similar
> > platforms
> > +So please bring on porting patches, bugfixes, improvements for
> > documentation
> > +and new features.
> > +
> > +A short list of contribution guidelines:
> > +
> > +- Please submit patches formatted with git send-email/git format-
> > patch or
> > + equivalent to
> > +
> > + dri-devel <dri-devel@lists.freedesktop.org>
> > +
> > + Please use --subject-prefix="PATCH hwc" so that drm_hwcomposer
> > patches are easily
> > + identified in the massive amount mails on dri-devel. To ensure
> > this is always
> > + done, run:
> > +
> > + git config format.subjectprefix "PATCH hwc"
> > +
> > +- drm_hwcomposer is Apache 2.0 Licensed and we require
> > contributions to follow the
> > + developer's certificate of origin: http://developercertificate.o
> > rg/
> > +
> > +- When submitting new code please follow the naming conventions
> > documented
> > + in the generated documentation. Also please make full use of all
> > the helpers and
> > + convenience macros provided by drm_hwcomposer. The below command
> > can help you
> > + with formatting of your patches:
> > + git diff | clang-format-diff-3.5 -p 1 -style=file
> > +
> > +- Harware specific changes should get tested on relevant platforms
>
> *Hardware
>
> With that,
>
> Reviewed-by: Sean Paul <seanpaul@chromium.org>
>
> > + before committing.
> > +
> > +Happy hacking!
> > --
> > 2.11.0
> >
>
>
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH hwc v1] drm_hwcomposer: Add CONTRIBUTING file
2017-09-22 0:37 [PATCH hwc v1] drm_hwcomposer: Add CONTRIBUTING file Robert Foss
2017-09-22 16:22 ` Zach Reizner
2017-09-22 16:23 ` Sean Paul
@ 2017-09-27 14:42 ` Emil Velikov
2017-09-27 18:55 ` Robert Foss
2 siblings, 1 reply; 8+ messages in thread
From: Emil Velikov @ 2017-09-27 14:42 UTC (permalink / raw)
To: Robert Foss; +Cc: Zach Reizner, ML dri-devel
Hi Rob,
Glad to see this. There's a couple of suggestions that I hope you'll
find worth while.
On 22 September 2017 at 01:37, Robert Foss <robert.foss@collabora.com> wrote:
> Some basic guidelines for contributions could come in handy.
>
> These are copied from IGT and modified to be suitable.
>
> Signed-off-by: Robert Foss <robert.foss@collabora.com>
> ---
> CONTRIBUTING | 31 +++++++++++++++++++++++++++++++
> 1 file changed, 31 insertions(+)
> create mode 100644 CONTRIBUTING
>
> diff --git a/CONTRIBUTING b/CONTRIBUTING
> new file mode 100644
> index 0000000..f1b4775
> --- /dev/null
> +++ b/CONTRIBUTING
> @@ -0,0 +1,31 @@
> +Patches to drm_hwcomposer are very much welcome, we really want this to be the
> +universal HW composer implementation for Android and similar platforms
> +So please bring on porting patches, bugfixes, improvements for documentation
> +and new features.
> +
> +A short list of contribution guidelines:
> +
> +- Please submit patches formatted with git send-email/git format-patch or
> + equivalent to
> +
> + dri-devel <dri-devel@lists.freedesktop.org>
> +
> + Please use --subject-prefix="PATCH hwc" so that drm_hwcomposer patches are easily
> + identified in the massive amount mails on dri-devel. To ensure this is always
> + done, run:
> +
> + git config format.subjectprefix "PATCH hwc"
> +
One can add this into the autogen.sh or whatever bootstrap file the
project uses.
For example see https://cgit.freedesktop.org/mesa/drm/tree/autogen.sh
> +- When submitting new code please follow the naming conventions documented
> + in the generated documentation. Also please make full use of all the helpers and
> + convenience macros provided by drm_hwcomposer. The below command can help you
> + with formatting of your patches:
> + git diff | clang-format-diff-3.5 -p 1 -style=file
> +
One could wire that in the pre-merge hook on the server side.
It should be quite lightweight, although I'm not sure about the
integration with FDO's Debian(?) setup ;-)
-Emil
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH hwc v1] drm_hwcomposer: Add CONTRIBUTING file
2017-09-27 14:42 ` Emil Velikov
@ 2017-09-27 18:55 ` Robert Foss
2017-09-27 21:16 ` Rob Herring
2017-09-28 10:43 ` Eric Engestrom
0 siblings, 2 replies; 8+ messages in thread
From: Robert Foss @ 2017-09-27 18:55 UTC (permalink / raw)
To: Emil Velikov; +Cc: Zach Reizner, ML dri-devel
Hey Emil,
On Wed, 2017-09-27 at 15:42 +0100, Emil Velikov wrote:
> Hi Rob,
>
> Glad to see this. There's a couple of suggestions that I hope you'll
> find worth while.
>
> On 22 September 2017 at 01:37, Robert Foss <robert.foss@collabora.com
> > wrote:
> > Some basic guidelines for contributions could come in handy.
> >
> > These are copied from IGT and modified to be suitable.
> >
> > Signed-off-by: Robert Foss <robert.foss@collabora.com>
> > ---
> > CONTRIBUTING | 31 +++++++++++++++++++++++++++++++
> > 1 file changed, 31 insertions(+)
> > create mode 100644 CONTRIBUTING
> >
> > diff --git a/CONTRIBUTING b/CONTRIBUTING
> > new file mode 100644
> > index 0000000..f1b4775
> > --- /dev/null
> > +++ b/CONTRIBUTING
> > @@ -0,0 +1,31 @@
> > +Patches to drm_hwcomposer are very much welcome, we really want
> > this to be the
> > +universal HW composer implementation for Android and similar
> > platforms
> > +So please bring on porting patches, bugfixes, improvements for
> > documentation
> > +and new features.
> > +
> > +A short list of contribution guidelines:
> > +
> > +- Please submit patches formatted with git send-email/git format-
> > patch or
> > + equivalent to
> > +
> > + dri-devel <dri-devel@lists.freedesktop.org>
> > +
> > + Please use --subject-prefix="PATCH hwc" so that drm_hwcomposer
> > patches are easily
> > + identified in the massive amount mails on dri-devel. To ensure
> > this is always
> > + done, run:
> > +
> > + git config format.subjectprefix "PATCH hwc"
> > +
>
> One can add this into the autogen.sh or whatever bootstrap file the
> project uses.
> For example see https://cgit.freedesktop.org/mesa/drm/tree/autogen.sh
Adding an autogen.sh sounds like a good idea to me.
>
>
> > +- When submitting new code please follow the naming conventions
> > documented
> > + in the generated documentation. Also please make full use of all
> > the helpers and
> > + convenience macros provided by drm_hwcomposer. The below command
> > can help you
> > + with formatting of your patches:
> > + git diff | clang-format-diff-3.5 -p 1 -style=file
> > +
>
> One could wire that in the pre-merge hook on the server side.
> It should be quite lightweight, although I'm not sure about the
> integration with FDO's Debian(?) setup ;-)
Yeah, me neither. Maybe asking Daniel Stone about how this should be
done is the next step.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH hwc v1] drm_hwcomposer: Add CONTRIBUTING file
2017-09-27 18:55 ` Robert Foss
@ 2017-09-27 21:16 ` Rob Herring
2017-09-28 10:43 ` Eric Engestrom
1 sibling, 0 replies; 8+ messages in thread
From: Rob Herring @ 2017-09-27 21:16 UTC (permalink / raw)
To: Robert Foss; +Cc: Zach Reizner, Emil Velikov, ML dri-devel
On Wed, Sep 27, 2017 at 1:55 PM, Robert Foss <robert.foss@collabora.com> wrote:
> Hey Emil,
>
> On Wed, 2017-09-27 at 15:42 +0100, Emil Velikov wrote:
>> Hi Rob,
>>
>> Glad to see this. There's a couple of suggestions that I hope you'll
>> find worth while.
>>
>> On 22 September 2017 at 01:37, Robert Foss <robert.foss@collabora.com
>> > wrote:
>> > Some basic guidelines for contributions could come in handy.
>> >
>> > These are copied from IGT and modified to be suitable.
>> >
>> > Signed-off-by: Robert Foss <robert.foss@collabora.com>
>> > ---
>> > CONTRIBUTING | 31 +++++++++++++++++++++++++++++++
>> > 1 file changed, 31 insertions(+)
>> > create mode 100644 CONTRIBUTING
>> >
>> > diff --git a/CONTRIBUTING b/CONTRIBUTING
>> > new file mode 100644
>> > index 0000000..f1b4775
>> > --- /dev/null
>> > +++ b/CONTRIBUTING
>> > @@ -0,0 +1,31 @@
>> > +Patches to drm_hwcomposer are very much welcome, we really want
>> > this to be the
>> > +universal HW composer implementation for Android and similar
>> > platforms
>> > +So please bring on porting patches, bugfixes, improvements for
>> > documentation
>> > +and new features.
>> > +
>> > +A short list of contribution guidelines:
>> > +
>> > +- Please submit patches formatted with git send-email/git format-
>> > patch or
>> > + equivalent to
>> > +
>> > + dri-devel <dri-devel@lists.freedesktop.org>
>> > +
>> > + Please use --subject-prefix="PATCH hwc" so that drm_hwcomposer
>> > patches are easily
>> > + identified in the massive amount mails on dri-devel. To ensure
>> > this is always
>> > + done, run:
>> > +
>> > + git config format.subjectprefix "PATCH hwc"
>> > +
>>
>> One can add this into the autogen.sh or whatever bootstrap file the
>> project uses.
>> For example see https://cgit.freedesktop.org/mesa/drm/tree/autogen.sh
>
> Adding an autogen.sh sounds like a good idea to me.
Except autogen.sh is a standard step as part of an autotools workflow
and would not be obvious to run in an Android env.
Rob
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH hwc v1] drm_hwcomposer: Add CONTRIBUTING file
2017-09-27 18:55 ` Robert Foss
2017-09-27 21:16 ` Rob Herring
@ 2017-09-28 10:43 ` Eric Engestrom
1 sibling, 0 replies; 8+ messages in thread
From: Eric Engestrom @ 2017-09-28 10:43 UTC (permalink / raw)
To: Robert Foss; +Cc: Zach Reizner, Emil Velikov, ML dri-devel
On Wednesday, 2017-09-27 18:55:49 +0000, Robert Foss wrote:
> > > +- When submitting new code please follow the naming conventions
> > > documented
> > > + in the generated documentation. Also please make full use of all
> > > the helpers and
> > > + convenience macros provided by drm_hwcomposer. The below command
> > > can help you
> > > + with formatting of your patches:
> > > + git diff | clang-format-diff-3.5 -p 1 -style=file
> > > +
> >
> > One could wire that in the pre-merge hook on the server side.
> > It should be quite lightweight, although I'm not sure about the
> > integration with FDO's Debian(?) setup ;-)
>
> Yeah, me neither. Maybe asking Daniel Stone about how this should be
> done is the next step.
>
The package `clang-format-3.5` would need to be installed, but other than
that the integration would be rather trivial; just add this to the
`update` hook:
format_diff=$(git diff -U0 $oldrev..$newrev | clang-format-diff-3.5 -p1)
if [ -n "$format_diff" ]; then
echo 'Code is not formatted properly; please apply this change and try again:'
printf -- '----8<----\n%s\n---->8----\n' "$format_diff"
exit 1
fi
Note that if malformatted commits are to be rejected, it might be best
to have a pre-commit hook on each client (will need manual setup on each
clone) to re-format the code before being committed and therefore before
being sent to ML, to avoid patchwork losing track of reformatted patches.
Alternatively, such patches could be accepted with just a warning being
printed when pushing, but there's a good chance such warnings would just
end up being ignored.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2017-09-28 10:43 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-22 0:37 [PATCH hwc v1] drm_hwcomposer: Add CONTRIBUTING file Robert Foss
2017-09-22 16:22 ` Zach Reizner
2017-09-22 16:23 ` Sean Paul
2017-09-22 18:22 ` Robert Foss
2017-09-27 14:42 ` Emil Velikov
2017-09-27 18:55 ` Robert Foss
2017-09-27 21:16 ` Rob Herring
2017-09-28 10:43 ` Eric Engestrom
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.