mailarchive of the pengutronix oss-tools mailing list
 help / color / mirror / Atom feed
From: Philipp Zabel <p.zabel@pengutronix.de>
To: LI Qingwu <Qing-wu.Li@leica-geosystems.com.cn>,
	oss-tools@pengutronix.de,  m.felsch@pengutronix.de
Subject: Re: [OSS-Tools] [PATCH platsch V4 3/4] platsch: split into platsch and libplatsch
Date: Fri, 14 Jun 2024 15:47:10 +0200	[thread overview]
Message-ID: <d925d71bd3a726c12f6663aa69b9d57f7326a465.camel@pengutronix.de> (raw)
In-Reply-To: <20240614092308.1429018-3-Qing-wu.Li@leica-geosystems.com.cn>

On Fr, 2024-06-14 at 11:23 +0200, LI Qingwu wrote:
> Signed-off-by: LI Qingwu <Qing-wu.Li@leica-geosystems.com.cn>
> ---
>  libplatsch.c | 590 +++++++++++++++++++++++++++++++++++++++++++++++++++
>  libplatsch.h |  51 +++++
>  meson.build  |   7 +-
>  platsch.c    | 582 +-------------------------------------------------
>  4 files changed, 652 insertions(+), 578 deletions(-)
>  create mode 100644 libplatsch.c
>  create mode 100644 libplatsch.h
> 
> diff --git a/libplatsch.c b/libplatsch.c
> new file mode 100644
> index 0000000..1d48e0e
> --- /dev/null
> +++ b/libplatsch.c
> @@ -0,0 +1,590 @@
[...]
> +ssize_t readfull(int fd, void *buf, size_t count)
[...]
> +void draw_buffer(struct modeset_dev *dev, const char *dir, const char *base)
[...]
> +void update_display(struct modeset_dev *dev)

Should these be made static?

[...]
> diff --git a/meson.build b/meson.build
> index 0aadbe9..4c2ad7b 100644
> --- a/meson.build
> +++ b/meson.build
> @@ -1,13 +1,10 @@
>  project('platsch', 'c', version: '2024.06.0')
>  
>  dep_libdrm = dependency('libdrm', version : '>= 2.4.112', required : true)
> -sources = ['platsch.c']
> +sources = ['libplatsch.c']

IMHO this should be:

platsch_sources = [ 'platsch.c' ]
libplasch_sources = [ 'libplatsch.c', 'libplatsch.h' ]

> -# Define the headers
> -headers = ['platsch.h']
>  
> -# Create the platsch executable

Please don't add lines that are removed right away in the next patch.
This belongs in Patch 2.

> -executable('platsch',

What about the platsch executable? It should not be removed.

> +libplatsch = static_library('libplatsch',
>      sources,
>      dependencies: dep_libdrm,
>      install: true,
> diff --git a/platsch.c b/platsch.c
> index 1aaa8d5..917fec0 100644

regards
Philipp



  reply	other threads:[~2024-06-14 13:47 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-14  9:23 [OSS-Tools] [PATCH platsch V4 1/4] platsch: constify draw_buffer LI Qingwu
2024-06-14  9:23 ` [OSS-Tools] [PATCH platsch V4 2/4] convert to meson build LI Qingwu
2024-06-14 13:34   ` Philipp Zabel
2024-06-14  9:23 ` [OSS-Tools] [PATCH platsch V4 3/4] platsch: split into platsch and libplatsch LI Qingwu
2024-06-14 13:47   ` Philipp Zabel [this message]
2024-06-14  9:23 ` [OSS-Tools] [PATCH platsch V4 4/4] Add spinner executable for boot animation and text show LI Qingwu
2024-06-14 10:44   ` LI Qingwu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d925d71bd3a726c12f6663aa69b9d57f7326a465.camel@pengutronix.de \
    --to=p.zabel@pengutronix.de \
    --cc=Qing-wu.Li@leica-geosystems.com.cn \
    --cc=m.felsch@pengutronix.de \
    --cc=oss-tools@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox