[Buildroot] [PATCH] vnstat: new package

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Mon Mar 19 10:20:26 UTC 2012


Le Mon, 19 Mar 2012 11:10:55 +0100,
Alvaro Gamez <alvaro.gamez at 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


More information about the buildroot mailing list