From: Juergen Borleis <jbe@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Alan Martinovic <Alan.Martinovic@zenitel.com>
Subject: Re: [ptxdist] install_copy not recognizing path to a file
Date: Tue, 23 Sep 2014 11:57:48 +0200 [thread overview]
Message-ID: <201409231157.48663.jbe@pengutronix.de> (raw)
In-Reply-To: <916A03CCEB30DF44AD98D4CFDC7448D00D59BA0A@nooslzsmx1.zenitelcss.com>
Hi Alan,
On Tuesday 23 September 2014 10:20:05 Alan Martinovic wrote:
> $(STATEDIR)/libzxmlconfig.targetinstall:
> @$(call targetinfo)
>
> @$(call install_init, libzxmlconfig)
> @$(call install_fixup, libzxmlconfig,PRIORITY,optional)
> @$(call install_fixup, libzxmlconfig,SECTION,base)
> @$(call install_fixup, libzxmlconfig,AUTHOR,"<>")
> @$(call install_fixup, libzxmlconfig,DESCRIPTION,missing)
>
> @$(call install_copy, libzxmlconfig, 0, 0, 0755, $(LIBZXMLCONFIG_SOURCE_LOCAL)/libzxmlconfig.a, $(PTXDIST_WORKSPACE)/platform-turbine/sysroot-target/usr/lib/libzxmlconfig.a)
Don't do that! "install_copy" is for the target. What you are trying is for
your build host and regularly done in the "install" stage!
Provide a simple "install" stage in your package's Makefile PTXdist can call.
install:
cp -v libzxmlconfig.a $(DESTDIR)/$(PREFIX)/lib/libzxmlconfig.a
cp -v include/SipServerConfig.h $(DESTDIR)/$(PREFIX)/usr/include/SipServerConfig.h
cp -v include/ZConfig_globals.h $(DESTDIR)/$(PREFIX)/include/ZConfig_globals.h
cp -v include/z_xml.h $(DESTDIR)/$(PREFIX)/include/z_xml.h
When PTXdist will call your Makefile to install the files for further building
other sources, it provides the correct values for DESTDIR and PREFIX.
Regards,
Juergen
--
Pengutronix e.K. | Juergen Borleis |
Industrial Linux Solutions | http://www.pengutronix.de/ |
--
ptxdist mailing list
ptxdist@pengutronix.de
next prev parent reply other threads:[~2014-09-23 9:57 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-23 7:11 Alan Martinovic
2014-09-23 7:33 ` Juergen Borleis
2014-09-23 8:20 ` Alan Martinovic
2014-09-23 8:54 ` Alan Martinovic
2014-09-23 9:57 ` Juergen Borleis [this message]
2014-09-23 10:04 ` Juergen Borleis
2014-09-23 12:34 ` Alan Martinovic
2014-10-03 13:38 ` Alan Martinovic
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=201409231157.48663.jbe@pengutronix.de \
--to=jbe@pengutronix.de \
--cc=Alan.Martinovic@zenitel.com \
--cc=ptxdist@pengutronix.de \
/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