From: "Émeric Vigier" <emeric.vigier@savoirfairelinux.com>
To: buildroot@busybox.net
Subject: [Buildroot] new package not built, AR prefix not passed to make
Date: Thu, 3 Apr 2014 11:32:14 -0400 (EDT) [thread overview]
Message-ID: <504826970.101021.1396539134908.JavaMail.root@mail> (raw)
In-Reply-To: <1080754998.70934.1396536817436.JavaMail.root@mail>
Hi Builders,
I am facing two basic issues after adding a new library to buildroot:
1. "make" does not build it
---------------------------
What I did can be summed up in these files:
$ grep company package/Config.in
source "package/company/Config.in"
$ cat package/company/libfpga/Config.in
config BR2_PACKAGE_COMPANY_LIBFPGA
bool "libfpga"
select BR2_TOOLCHAIN_USES_GLIBC
help
library providing access to FPGA functions
$ cat package/company/company.mk
include $(sort $(wildcard package/company/*/*.mk))
$ cat package/company/libfpga/libfpga.mk
################################################################################
#
# libfpga
#
################################################################################
LIBFPGA_VERSION = 1.0
LIBFPGA_SOURCE = libfpga-$(LIBFPGA_VERSION).tar.gz
LIBFPGA_SITE = $(TOPDIR)/../libfpga/
LIBFPGA_SITE_METHOD = local
LIBFPGA_INSTALL_STAGING = YES
# defaults to YES
LIBFPGA_INSTALL_TARGET = YES
LIBFPGA_DEPENDENCIES = glibc
#LIBFPGA_CONFIG_SCRIPTS =
define LIBFPGA_BUILD_CMDS
$(MAKE) CC="$(TARGET_CC)" LD="$(TARGET_LD)" -C $(@D) all
endef
$(eval $(generic-package))
$ grep COMPANY .config
BR2_PACKAGE_COMPANY=y
BR2_PACKAGE_COMPANY_LIBFPGA=y
$ make
(no luck)
Does anyone see what I am missing here?
2. AR cross-prefix is not passed by buildroot to make
-----------------------------------------------------
I can build my package manually though:
$ make libfpga
>>> libfpga 1.0 Syncing from source dir /home/evigier/buildroot-2013.11/../libfpga/
rsync -au --exclude .svn --exclude .git --exclude .hg --exclude .bzr --exclude CVS /home/evigier/buildroot-2013.11/../libfpga// /home/evigier/buildroot-2013.11/output/build/libfpga-1.0
>>> libfpga 1.0 Configuring
>>> libfpga 1.0 Building
/usr/bin/make -j5 CC="/home/evigier/buildroot-2013.11/output/host/usr/bin/powerpc-buildroot-linux-gnu-gcc" LD="/home/evigier/buildroot-2013.11/output/host/usr/bin/powerpc-buildroot-linux-gnu-ld" -C /home/evigier/buildroot-2013.11/output/build/libfpga-1.0 all
make[1]: Entering directory `/home/evigier/buildroot-2013.11/output/build/libfpga-1.0'
ar rcs libfpga.a fpga.o
/home/evigier/buildroot-2013.11/output/host/usr/bin/powerpc-buildroot-linux-gnu-gcc -shared -o libfpga.so fpga.o
make[1]: Leaving directory `/home/evigier/buildroot-2013.11/output/build/libfpga-1.0'
Why is AR prefix not passed to make here? Is this related to the generic-package?
Thanks,
Emeric
next parent reply other threads:[~2014-04-03 15:32 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1080754998.70934.1396536817436.JavaMail.root@mail>
2014-04-03 15:32 ` Émeric Vigier [this message]
2014-04-03 15:43 ` [Buildroot] new package not built, AR prefix not passed to make Émeric Vigier
2014-04-03 15:50 ` Gustavo Zacarias
2014-04-03 15:53 ` Émeric Vigier
2014-04-03 17:21 ` Lionel Orry
2014-04-03 18:11 ` Émeric Vigier
2014-04-04 5:46 ` Lionel Orry
2014-04-04 5:30 ` Arnout Vandecappelle
2014-04-04 19:36 ` Émeric Vigier
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=504826970.101021.1396539134908.JavaMail.root@mail \
--to=emeric.vigier@savoirfairelinux.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