From: Peter Korsgaard <jacmet@uclibc.org>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] Added the empty package
Date: Sun, 06 May 2012 00:36:18 +0200 [thread overview]
Message-ID: <878vh6b6hp.fsf@macbook.be.48ers.dk> (raw)
In-Reply-To: <1334049334-9276-1-git-send-email-spdawson@gmail.com> (spdawson@gmail.com's message of "Tue, 10 Apr 2012 10:15:34 +0100")
>>>>> "spdawson" == spdawson <spdawson@gmail.com> writes:
spdawson> From: Simon Dawson <spdawson@gmail.com>
spdawson> Signed-off-by: Simon Dawson <spdawson@gmail.com>
I was about to commit this, but noticed a few errors. Care to fix and
resubmit?
spdawson> new file mode 100644
spdawson> index 0000000..d15a18f
spdawson> --- /dev/null
spdawson> +++ b/package/empty/empty.mk
spdawson> @@ -0,1 +1,18 @@
I don't know where this first 0,1 comes from, but git am andn patch very
much dislikes it. I had to change it to to 0,0 to get the patch to
apply.
spdawson> +#############################################################
spdawson> +#
spdawson> +# empty
spdawson> +#
spdawson> +#############################################################
spdawson> +EMPTY_VERSION = 0.6.18b
spdawson> +EMPTY_SOURCE = empty-$(EMPTY_VERSION).tgz
spdawson> +EMPTY_SITE = http://downloads.sourceforge.net/project/empty/empty/empty-$(EMPTY_VERSION)
spdawson> +
spdawson> +define EMPTY_BUILD_CMDS
spdawson> + $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) all
variables passed in the environment do not override settings in the
Makefile (unless ?= is used), so it ends up using my host compiler:
make[1]: Entering directory `/home/peko/source/buildroot/output/build/empty-0.6.18b'
gcc -pipe -Os -Wall -lutil -o empty empty.c
empty.c: In function ?pidbyppid?:
empty.c:689:9: warning: array subscript is above array bounds [-Warray-bounds]
make[1]: Leaving directory `/home/peko/source/buildroot/output/build/empty-0.6.18b'
I suggest you add TARGET_CONFIGURE_OPTS as a make argument instead.
spdawson> +endef
spdawson> +
spdawson> +define EMPTY_INSTALL_TARGET_CMDS
spdawson> + $(INSTALL) -D $(@D)/empty $(TARGET_DIR)/usr/bin/empty
We normally add explicit -m 0755 for installation of binaries.
--
Bye, Peter Korsgaard
next prev parent reply other threads:[~2012-05-05 22:36 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-10 9:15 [Buildroot] [PATCH] Added the empty package spdawson at gmail.com
2012-05-05 22:36 ` Peter Korsgaard [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-05-06 6:59 spdawson at gmail.com
2012-05-06 8:02 ` Peter Korsgaard
2012-04-10 9:10 spdawson at gmail.com
2012-04-10 9:07 spdawson at gmail.com
2012-04-10 8:52 spdawson at gmail.com
2012-04-10 9:06 ` Belisko Marek
2012-04-10 9:12 ` 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=878vh6b6hp.fsf@macbook.be.48ers.dk \
--to=jacmet@uclibc.org \
--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