From: Peter Korsgaard <peter@korsgaard.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] itop: new package
Date: Fri, 30 Mar 2018 12:25:52 +0200 [thread overview]
Message-ID: <87bmf57tcf.fsf@dell.be.48ers.dk> (raw)
In-Reply-To: <20180329195247.24360-1-alexandre.belloni@bootlin.com> (Alexandre Belloni's message of "Thu, 29 Mar 2018 21:52:47 +0200")
>>>>> "Alexandre" == Alexandre Belloni <alexandre.belloni@bootlin.com> writes:
> itop is a simple top-like interrupt load monitor. It can be useful to
> debug interrupt issues.
> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
> +++ b/package/itop/Config.in
> @@ -0,0 +1,4 @@
> +config BR2_PACKAGE_ITOP
> + bool "itop"
> + help
> + itop is a simple top-like interrupt load monitor
No upstream URL? The Debian package refers to hunz.org, which seems to
have expired.
https://github.com/kargig/itop looks similar, but is written in perl.
> +++ b/package/itop/itop.mk
> @@ -0,0 +1,21 @@
> +################################################################################
> +#
> +# itop
> +#
> +################################################################################
> +
> +ITOP_VERSION = 0.1
> +ITOP_SITE = http://http.debian.net/debian/pool/main/i/itop
> +ITOP_SOURCE = itop_$(ITOP_VERSION).orig.tar.gz
For packages in Debian we normally use snapshot.debian.org - E.G. see
sysvinit.mk. Looking at the changelog, it sounds like we should parhaps
include the Debian patches (the .diff.gz) for those fixes:
http://metadata.ftp-master.debian.org/changelogs/main/i/itop/itop_0.1-4_changelog
> +ITOP_LICENSE = GPL-2.0
> +ITOP_LICENSE_FILES = COPYING
> +
> +define ITOP_BUILD_CMDS
> + (cd $(@D) && $(TARGET_CC) -o itop src/itop.c)
Please also add TARGET_CFLAGS and TARGET_LDFLAGS.
> +endef
> +
> +define ITOP_INSTALL_TARGET_CMDS
> + $(INSTALL) -m 0755 -D $(@D)/itop $(TARGET_DIR)/bin/itop
The Debian package installs into /usr/bin, any reason to put it in /bin?
--
Bye, Peter Korsgaard
next prev parent reply other threads:[~2018-03-30 10:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-29 19:52 [Buildroot] [PATCH] itop: new package Alexandre Belloni
2018-03-30 10:25 ` Peter Korsgaard [this message]
2018-10-20 19:02 ` Thomas Petazzoni
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=87bmf57tcf.fsf@dell.be.48ers.dk \
--to=peter@korsgaard.com \
--cc=buildroot@busybox.net \
/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