All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gary Thomas <gary@mlbassoc.com>
To: poky@yoctoproject.org
Subject: Re: Creating library
Date: Wed, 19 Jun 2013 05:33:47 +0100	[thread overview]
Message-ID: <51C134AB.5030007@mlbassoc.com> (raw)
In-Reply-To: <83DB4EC8FADD45428E3CC4E3664761FD015B210C@AMDTCEX12.actuant.pri>

On 2013-06-19 04:45, Keskinarkaus, Teemu wrote:
> Hi,
>
> Hopefully this is the correct mailing list.
>
> I’m using Yocto/Poky to create Linux distribution and so far everything has gone rather smoothly, but now I have come up to a problem that I cannot seem to be able to fix.
>
> I’m adding existing old software to Yocto/Poky and they don’t use autotools so there is ready made Makefile that does everything.
>
> Problem comes with the library that is compiled that way too. Makefile has targets ‘all’ and ‘install’ that does the compilation and installation. Library compiles ok and installs
> ok too under –build directory, but when bitbake creates the deb-packages it creates only library-dev.deb, library-dbg.deb and library-staticdev.deb. The package library.deb does
> not get created and that causes build to fail. I looked the logs and bitbake says that NOTE: not creating empty library.deb – package. or something like that.
>
> I’ve tried anything that comes to my mind and also searched documentation and google and looked other libraries that are in yocto/poky, but just cannot get that work. I’ve also
> tried add FILES_${PN} to the recipe to force the files in the library.deb package, but that didn’t help.  Makefile installs the files to DESTDIR and files are installed just fine
> in the temporary image that is created under build-directory.
>
> For some reason, maybe because lack of autotools, I had to set S and B dir to point to the dir where library sources are. Would that be causing the problems even though the library
> gets installed to image in build-directory?
>
> Library.deb isn’t the actual name, but just an example.
>
> I wouldn’t want to convert all the software to use autotools since there are quite many of them and they are used in other projects as well so it would be rather big task. Any idea
> how to get that library thing to work?

See if this helps; tell bitbake to allow empty packages like this:
   ALLOW_EMPTY_${PN} = "1"
Put this line in your recipe and you should be able to move forward.

>
> I have few kernel modules where I also had to set S and B to point the dir where the kernel module sources are, but in those cases there were no problems. Only the library gives me
> hard time.
>
> -Teemu Keskinarkaus

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------


  reply	other threads:[~2013-06-19  4:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-19  3:45 Creating library Keskinarkaus, Teemu
2013-06-19  4:33 ` Gary Thomas [this message]
2013-06-19  5:56   ` Keskinarkaus, Teemu
2013-06-19  8:07     ` Richard Purdie
2013-06-20  7:45       ` Keskinarkaus, Teemu
  -- strict thread matches above, loose matches on Subject: below --
2013-06-18 10:30 Keskinarkaus, Teemu

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=51C134AB.5030007@mlbassoc.com \
    --to=gary@mlbassoc.com \
    --cc=poky@yoctoproject.org \
    /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.