From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: From: Juergen Borleis Date: Tue, 23 Sep 2014 09:33:48 +0200 References: <916A03CCEB30DF44AD98D4CFDC7448D00D59B9BE@nooslzsmx1.zenitelcss.com> In-Reply-To: <916A03CCEB30DF44AD98D4CFDC7448D00D59B9BE@nooslzsmx1.zenitelcss.com> MIME-Version: 1.0 Content-Disposition: inline Message-Id: <201409230933.49889.jbe@pengutronix.de> Subject: Re: [ptxdist] install_copy not recognizing path to a file Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Cc: Alan Martinovic Hi Alan, On Tuesday 23 September 2014 09:11:32 Alan Martinovic wrote: > I'm adding a custom application into the build system and I'm having > undefined issues with install_copy. I have defined the rule as follows: > > *$(MYLIB_SOURCE_LOCAL) is the path where the binaries are located. (osela= s.project/build/mylib -1234) Please don't use whitespaces in path names. > $(STATEDIR)/mylib.targetinstall: > @$(call targetinfo) > @$(call install_init, mylib) > @$(call install_fixup, mylib,PRIORITY,optional) > @$(call install_fixup, mylib,SECTION,base) > @$(call install_fixup, mylib,AUTHOR,"<>") > @$(call install_fixup, mylib,DESCRIPTION,missing) > > @$(call install_copy, mylib, 0, 0, 0755, $(MYLIB_SOURCE_L= OCAL)/mylib.a, /usr/lib/mylib.a) > @$(call install_copy, mylib, 0, 0, 0755, $(MYLIB_SOURCE_L= OCAL)/include/mylib.h, /usr/include/mylib.h) > > @$(call install_finish, mylib) > @$(call touch) > > When I run targetinstall I get the following error: > install file: > src=3Doselas.project/build/mylib -1234 > dst=3D/usr/lib/libzxmlconfig.a > owner=3D0 > group=3D0 > permissions=3D0755 > > install: omitting directory > '/home/user/Workspace/oselas.project/build/mylib -1234 Your output here does not match to your shown rule file content above. > For some reason it doesn't append the /mylib.a to the path. Any ideas on > this? Remove the whitespace from the path name. BTW: why do you want to install a library archive? *.a archives are used at link time only and not used at runtime. Same is valid for header files. They are used at compile time only. Regards Juergen -- = Pengutronix e.K. =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0| Juergen Borleis =A0 =A0 =A0 =A0 =A0 =A0 | Industrial Linux Solutions =A0 =A0 =A0| http://www.pengutroni= x.de/ | -- = ptxdist mailing list ptxdist@pengutronix.de