From: Peter Korsgaard <jacmet@uclibc.org>
To: buildroot@busybox.net
Subject: [Buildroot] Add package statserial
Date: Tue, 07 Jun 2011 12:33:13 +0200 [thread overview]
Message-ID: <87zklulymu.fsf@macbook.be.48ers.dk> (raw)
In-Reply-To: <BANLkTi=AamsYp47dfhXa6RtJTATze7sCOQ@mail.gmail.com> (Francis Mendes's message of "Mon, 6 Jun 2011 22:54:46 -0300")
>>>>> "Francis" == Francis Mendes <francis.mendes@gmail.com> writes:
Hi,
Looks good, but here's a few more comments.
Francis> The original Makefile compiles the source code to statserial.o
Francis> and then links it. I don't know exactly why, but the linker
Francis> fails with the message "undefined reference to
Francis> `atexit'". Searching in the web, I found someone suggesting to
Francis> compile and link in a single step using gcc, and it worked for
Francis> me. The purpose of the patch is to compile and link the source
Francis> code this way. If someone has a better way to fix the problem,
Francis> let me know. ?
Francis> Thanks for the input. Below is the new patch. If there's still
Francis> something wrong, let me know.
Francis> Francis
Francis> =====================================================
Francis> Add package statserial
Francis> +++ b/package/statserial/Config.in
Francis> @@ -0,0 +1,11 @@
Francis> +config BR2_PACKAGE_STATSERIAL
Francis> +??? bool "statserial"
Francis> +??? select BR2_PACKAGE_NCURSES
Francis> +??? help
Francis> +??? ??? Displays a table of the signals on a standard
Francis> +??? ??? 9-pin or 25-pin serial port, and indicates the
Francis> +??? ??? status of the handshaking lines. It can be
Francis> +??? ??? useful for debugging problems with serial
Francis> +??? ??? ports or modems.
Francis> +
Francis> +??? ??? https://sites.google.com/site/tranter/software
Config.in files should be indented with <tab> rather than spaces - So
the bool/select/help files should be indented with <tab>, and the help
text lines with <tab><space><space>.
Francis> diff --git a/package/statserial/statserial-1.1-fixmakefile.patch b/package/
Francis> statserial/statserial-1.1-fixmakefile.patch
Francis> new file mode 100644
Francis> index 0000000..88cdd3f
Francis> --- /dev/null
Francis> +++ b/package/statserial/statserial-1.1-fixmakefile.patch
Francis> @@ -0,0 +1,26 @@
Francis> +Compile and link the source in one step only
Francis> +
Francis> +
Francis> +Signed-off-by: Francis M. de P. Mendes <francis.mendes@gmail.com>
Francis> +
Francis> +diff --git a/Makefile b/Makefile
Francis> +index 2ed79f1..bf82034 100644
Francis> +--- a/Makefile
Francis> ++++ b/Makefile
Francis> +@@ -9,11 +9,8 @@ LD??? = gcc
Francis> + CFLAGS??? = -Wall -O3 -fomit-frame-pointer
Francis> + LDFLAGS = -s -N
The problem is that the package expects LD to be gcc.
Francis> +++ b/package/statserial/statserial.mk
Francis> @@ -0,0 +1,20 @@
Francis> +#############################################################
Francis> +#
Francis> +# statserial
Francis> +#
Francis> +#############################################################
Francis> +STATSERIAL_VERSION = 1.1
Francis> +STATSERIAL_SOURCE = statserial-$(STATSERIAL_VERSION).tar.gz
Francis> +STATSERIAL_SITE = http://www.ibiblio.org/pub/Linux/system/serial/
Francis> +STATSERIAL_DEPENDENCIES = ncurses
Francis> +
Francis> +define STATSERIAL_BUILD_CMDS
Francis> +??? $(MAKE) CC="$(TARGET_CC)" LD="$(TARGET_LD)" CFLAGS="$(TARGET_CFLAGS)"
So it would presumably work if you just passed LD="$(TARGET_CC) $(CFLAGS)"
--
Bye, Peter Korsgaard
next prev parent reply other threads:[~2011-06-07 10:33 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-06 3:03 [Buildroot] Add package statserial Francis Mendes
2011-06-06 19:21 ` Thomas Petazzoni
2011-06-07 1:54 ` Francis Mendes
2011-06-07 10:33 ` Peter Korsgaard [this message]
2011-06-07 23:40 ` Francis Mendes
2011-06-12 11:09 ` Peter Korsgaard
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=87zklulymu.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 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.