All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denys Dmytriyenko <denys@ti.com>
To: Matt Schuckmann <Matt.Schuckmann@planar.com>
Cc: "meta-arago@arago-project.org" <meta-arago@arago-project.org>
Subject: Re: Arago build fails if building srcipk is disabled
Date: Thu, 18 Sep 2014 17:45:49 -0400	[thread overview]
Message-ID: <20140918214549.GY2480@denix.org> (raw)
In-Reply-To: <4B07ADD556F70043925DA2E9C5D4346D2FD8727FA1@MSXBEBVT12.planar.net>

On Thu, Sep 18, 2014 at 02:02:24PM -0700, Matt Schuckmann wrote:
> I've been chasing this for a bit and I think I've almost got it figured out. 
> I've been trying to create a new DISTRO based on Arago and I keep getting the following error. 
> 
> /home/dev/builds/zanzibar/tisdk/build/arago-tmp-external-linaro-toolchain/work/zanziboard-oe-linux-gnueabi/linux-ti-staging/3.14.17-r22e+gitrAUTOINC+1ef37cd35d-arago1/temp/run.do_compile.28819: line 105: sourceipk_do_create_srcipk: command not found
> 
> I finally figured out that if I included arago-source-ipk.conf in my DISTRO file the error goes away. 
> My understanding is that arago-source-ipk.conf turns on creating srcipk packages for all the packages included in the SDK. I'm not interested in creating srcipk's (at least I don't think I am) since I'm not trying to create an SDK I just want a deployable image. 
> 
> Digging a little deeper I found that meta-arago-distro/recipes-kernel/linux/copy-defconfig.inc calls sourceipk_do_create_srcipk in a do_compile_prepend() function to pick up any changes to the configuration file and then rebuild the srcipk. 
> 
> I think that the do_compile_prepend() function should test the value of one of the CREATE_SRCIPK_* variables before it tries to call sourceipk_do_create_srcipk, I'm just not sure which one. 
> I'm guessing maybe CREATE_SRCIPK_pn-linux-ti-staging but I'm not sure or maybe it should test multiple variables? 
> 
> I'd appreciate any guidance. 

Matt,

So, the arago-source-ipk.conf defines which components need to create srcipk 
packages, but it also inherits the sourceipk.bbclass which provides the 
necessary sourceipk_do_create_srcipk() function. The first thing that function 
does is it checks whether CREATE_SRCIPK variable is defined and doesn't do 
anything if it's not.

So, it appears that copy-defconfig.inc should not directly try to call that 
function because it makes the assumption that sourceipk.bbclass is always 
inherited. Simplest workaround would be to check for CREATE_SRCIPK variabe 
before calling that function, but I wonder if there's a better solution...

-- 
Denys


  reply	other threads:[~2014-09-18 21:46 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-18 21:02 Arago build fails if building srcipk is disabled Matt Schuckmann
2014-09-18 21:45 ` Denys Dmytriyenko [this message]
2014-09-18 22:55   ` Matt Schuckmann
2014-09-18 23:00     ` Denys Dmytriyenko
2014-09-18 23:38       ` Matt Schuckmann
2014-09-19 19:20     ` Dmytriyenko, Denys
2014-09-19 20:04       ` Matt Schuckmann
2014-09-19 20:07         ` Denys Dmytriyenko

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=20140918214549.GY2480@denix.org \
    --to=denys@ti.com \
    --cc=Matt.Schuckmann@planar.com \
    --cc=meta-arago@arago-project.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.