Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: Kory Maincent <kory.maincent@bootlin.com>
Cc: Quentin Schulz <quentin.schulz@theobroma-systems.com>,
	buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH] package/rkdeveloptool: add new package
Date: Wed, 29 Dec 2021 18:46:38 +0100	[thread overview]
Message-ID: <20211229184638.57bdb787@windsurf> (raw)
In-Reply-To: <20211125155040.90840-1-kory.maincent@bootlin.com>

Hello Köry,

On Thu, 25 Nov 2021 16:50:40 +0100
Kory Maincent <kory.maincent@bootlin.com> wrote:

> This package is a tool from Rockchip to communicate with Rockusb devices.
> 
> Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>

Thanks for this tool. I confirm that it builds fine with a container
that doesn't have udev development files installed. However, when I run
it, nothing happens:

$ ./host/bin/rkdeveloptool
$ ./host/bin/rkdeveloptool --help
$ ./host/bin/rkdeveloptool -h
$ ./host/bin/rkdeveloptool -v

Also, another problem is that it doesn't build with gcc 11.x:

main.cpp: In function ‘bool _Z9mergeBootv.part.0()’:
main.cpp:1493:43: error: ‘%s’ directive output may be truncated writing up to 557 bytes into a region of size 5 [-Werror=format-truncation=]
 1493 |         snprintf(buffer, sizeof(buffer), "%s", chip);
      |                                           ^~
......
 1534 |                 chipType = convertChipType(chip + 2);
      |                            ~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:1493:17: note: ‘snprintf’ output between 1 and 558 bytes into a destination of size 5
 1493 |         snprintf(buffer, sizeof(buffer), "%s", chip);
      |         ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [Makefile:495: main.o] Error 1

Could you fix these issues, as well as add the license file hash as
spotted by Quentin ?

Thanks!

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

      parent reply	other threads:[~2021-12-29 17:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-25 15:50 [Buildroot] [PATCH] package/rkdeveloptool: add new package Kory Maincent
2021-11-29 10:03 ` Quentin Schulz
2021-11-30 13:57   ` Köry Maincent
2021-12-29 17:46 ` Thomas Petazzoni [this message]

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=20211229184638.57bdb787@windsurf \
    --to=thomas.petazzoni@bootlin.com \
    --cc=buildroot@buildroot.org \
    --cc=kory.maincent@bootlin.com \
    --cc=quentin.schulz@theobroma-systems.com \
    /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