Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] vnstat: new package
Date: Mon, 19 Mar 2012 11:20:26 +0100	[thread overview]
Message-ID: <20120319112026.592985ee@skate> (raw)
In-Reply-To: <CAM+bi4tyqL-zYyb7AC7kRPgGvedUoHok=Vkn-xdHJuZbs-PyGw@mail.gmail.com>

Le Mon, 19 Mar 2012 11:10:55 +0100,
Alvaro Gamez <alvaro.gamez@hazent.com> a ?crit :

> I see, but then essentially I would have to copy, paste and reformat the
> original Makefile into vnstat.mk Isn't that a bit redundant?

No, no. You don't have to replicate the project Makefile. You would
just to something like:

define VNSTAT_BUILD_CMDS
	$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)
endef

define VNSTAT_INSTALL_TARGET_CMDS
	$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install
endef

You can also see other examples in the Buildroot code.

Regards,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

  reply	other threads:[~2012-03-19 10:20 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-19  9:48 [Buildroot] [PATCH] vnstat: new package Alvaro G. M
2012-03-19  9:51 ` Thomas Petazzoni
2012-03-19 10:10   ` Alvaro Gamez
2012-03-19 10:20     ` Thomas Petazzoni [this message]
2012-03-19 10:32       ` Alvaro Gamez
2012-03-19 10:46         ` Peter Korsgaard
2012-03-19 10:56           ` Alvaro Gamez
2012-03-19 12:54             ` 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=20120319112026.592985ee@skate \
    --to=thomas.petazzoni@free-electrons.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