From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] Add package for open2300
Date: Thu, 12 Jan 2012 14:42:56 +0100 [thread overview]
Message-ID: <20120112144256.1ce4bfcb@skate> (raw)
In-Reply-To: <1326375221-2223-1-git-send-email-alexandre.belloni@piout.net>
Le Thu, 12 Jan 2012 14:33:41 +0100,
Alexandre Belloni <alexandre.belloni@piout.net> a ?crit :
> menu "Miscellaneous"
> +source "package/open2300/Config.in"
> source "package/shared-mime-info/Config.in"
> endmenu
Looking at what the application does, probably it needs to go in the
"Hardware handling" menu.
> +config BR2_PACKAGE_OPEN2300
> + bool "open2300"
> + help
> + open2300 reads (and writes) data from a Lacrosse
> + WS2300/WS2305/WS2310/WS2315 Weather Station
We generally add an empty line here, and then the URL of the project.
> +OPEN2300_SITE:=http://www.lavrsen.dk/svn/open2300/trunk/
> +OPEN2300_SITE_METHOD:=svn
> +OPEN2300_VERSION:=12
Use = instead of := and do some nice formatting:
OPEN2300_SITE = http://www.lavrsen.dk/svn/open2300/trunk/
OPEN2300_SITE_METHOD = svn
OPEN2300_VERSION = 12
> +OPEN2300_BINS = open2300 dump2300 log2300 fetch2300 wu2300 cw2300
> history2300 histlog2300 bin2300 xml2300 light2300 interval2300
> minmax2300
Please use \ at some point to avoid the very long line.
> +ifeq ($(BR2_PACKAGE_MYSQL),y)
> + OPEN2300_BINS += mysql2300 mysqlhistlog2300
> +endif
Do those programs need the mysql client library to be built? If so,
then you need:
OPEN2300_DEPENDENCIES += mysql_client
to ensure that mysql is built before open2300.
> +define OPEN2300_BUILD_CMDS
> + $(MAKE) CC=$(TARGET_CC) LD=$(TARGET_LD) -C $(@D)
> $(OPEN2300_BINS) +endef
> +
> +define OPEN2300_INSTALL_TARGET_CMDS
> + $(INSTALL) -D -m 0755 $(addprefix $(@D)/,$(OPEN2300_BINS))
> $(TARGET_DIR)/usr/bin/ +endef
Won't work. If you use -D, you must pass the complete path of the
target file, i.e:
for prog in $(OPEN2300_BINS); do \
$(INSTALL) -D -m 0755 $(@D)/$$prog $(TARGET_DIR)/usr/bin/$$prog ; \
done
> +$(eval $(call GENTARGETS,package,open2300))
Just:
$(eval $(call GENTARGETS))
Regards,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
prev parent reply other threads:[~2012-01-12 13:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-12 13:33 [Buildroot] [PATCH] Add package for open2300 Alexandre Belloni
2012-01-12 13:42 ` 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=20120112144256.1ce4bfcb@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.