All of lore.kernel.org
 help / color / mirror / Atom feed
* BBMASK does not work
@ 2016-09-16  3:08 Takashi Matsuzawa
  2016-09-16  9:13 ` Takashi Matsuzawa
  0 siblings, 1 reply; 4+ messages in thread
From: Takashi Matsuzawa @ 2016-09-16  3:08 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 1275 bytes --]

Hello, Yocto.
I am quite puzzled with this and spent a few hours today so far.
In case you have any comment or suggestion, it would be a great help.

I am trying to hide one of the xxxx.bbappend files from the tree, so that BB won't complain "ERROR: No recipes available for:" error.

I did add several forms of the lines for this in BBMASK variable, but somehow BB seems to find it and complain "ERROR: no recipes available for:".

e.g.

Fido based build tree.
Want to hide AAAA_1.2.3.bbappend since there is no AAAA_1.2.3.bb recipe in my tree.

BBMASK = ".*/AAAA_%.bbappend"
BBMASK = ".*/AAAA_1.2.3.bbappend"
...

I tried BBMASK_forcevariable, and "-e" option to make sure they are set in BBMASK.

I further tried to set ".*" to BBMASK (so that the error message will be changed and I can see BBMASK is working), but the error message is still the same.  It says there is no recipes for AAAA_1.2.3.bbappend.

(But, if I manually rename AAAA_1.2.3.bbappend to, say, AAAA_1.2.3.bbappendx, error message is gone.)

Well, what I can do to debug and diagnose why this is happening.
I believed BBMASK worked as expected, and I think the other build tree I have does not have this problem.

Deleting state cache does not seem to change anything..




[-- Attachment #2: Type: text/html, Size: 2132 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: BBMASK does not work
  2016-09-16  3:08 BBMASK does not work Takashi Matsuzawa
@ 2016-09-16  9:13 ` Takashi Matsuzawa
  2016-09-16 12:15   ` Takashi Matsuzawa
  0 siblings, 1 reply; 4+ messages in thread
From: Takashi Matsuzawa @ 2016-09-16  9:13 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 693 bytes --]

Well, I tried adding debug lines to poky/bitbake/lib/bb/cooker.py, and I think what is happening is:

i) BSP has BBMASK = xxxx line.
ii) I add BBMASK_forcevariable = yyyy line to my local.conf
iii) If I check with -e option, I can see BBMASK variable is finally set to "yyyy"
iv) However, when cooker.py is run, matching bbmask file list with recipe paths, the original "xxxx" line is used for matching.

I feel, the recipe files matching is being done before BBMASK is finally set to "yyyy".  Instead, they are matches against "xxxx" it is the initial BBMASK value set by BSP.

This is fido, and jethro may be behave differently (since on jethro based build this seemed to work)?


[-- Attachment #2: Type: text/html, Size: 1284 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: BBMASK does not work
  2016-09-16  9:13 ` Takashi Matsuzawa
@ 2016-09-16 12:15   ` Takashi Matsuzawa
  2016-09-17  0:05     ` Andre McCurdy
  0 siblings, 1 reply; 4+ messages in thread
From: Takashi Matsuzawa @ 2016-09-16 12:15 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 1082 bytes --]

OK, I figured this out that I can add my BBMASK lines to my conf/distro/xxx.conf fille.

So that I can append to what BSP defines and it seems to happen before collect_bbbfiles() function.

Sorry for my confusion.

________________________________
From: Takashi Matsuzawa
Sent: Friday, September 16, 2016 6:13 PM
To: yocto@yoctoproject.org
Subject: Re: BBMASK does not work


Well, I tried adding debug lines to poky/bitbake/lib/bb/cooker.py, and I think what is happening is:

i) BSP has BBMASK = xxxx line.
ii) I add BBMASK_forcevariable = yyyy line to my local.conf
iii) If I check with -e option, I can see BBMASK variable is finally set to "yyyy"
iv) However, when cooker.py is run, matching bbmask file list with recipe paths, the original "xxxx" line is used for matching.

I feel, the recipe files matching is being done before BBMASK is finally set to "yyyy".  Instead, they are matches against "xxxx" it is the initial BBMASK value set by BSP.

This is fido, and jethro may be behave differently (since on jethro based build this seemed to work)?


[-- Attachment #2: Type: text/html, Size: 2129 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: BBMASK does not work
  2016-09-16 12:15   ` Takashi Matsuzawa
@ 2016-09-17  0:05     ` Andre McCurdy
  0 siblings, 0 replies; 4+ messages in thread
From: Andre McCurdy @ 2016-09-17  0:05 UTC (permalink / raw)
  To: Takashi Matsuzawa; +Cc: yocto

On Fri, Sep 16, 2016 at 5:15 AM, Takashi Matsuzawa
<tmatsuzawa@uievolution.com> wrote:
> OK, I figured this out that I can add my BBMASK lines to my
> conf/distro/xxx.conf fille.
>
> So that I can append to what BSP defines and it seems to happen before
> collect_bbbfiles() function.

An alternative to masking out each .bbappend might be to set:

BB_DANGLINGAPPENDS_WARNONLY = "true"

>
> Sorry for my confusion.
>
> ________________________________
> From: Takashi Matsuzawa
> Sent: Friday, September 16, 2016 6:13 PM
> To: yocto@yoctoproject.org
> Subject: Re: BBMASK does not work
>
>
> Well, I tried adding debug lines to poky/bitbake/lib/bb/cooker.py, and I
> think what is happening is:
>
> i) BSP has BBMASK = xxxx line.
> ii) I add BBMASK_forcevariable = yyyy line to my local.conf
> iii) If I check with -e option, I can see BBMASK variable is finally set to
> "yyyy"
> iv) However, when cooker.py is run, matching bbmask file list with recipe
> paths, the original "xxxx" line is used for matching.
>
> I feel, the recipe files matching is being done before BBMASK is finally set
> to "yyyy".  Instead, they are matches against "xxxx" it is the initial
> BBMASK value set by BSP.
>
> This is fido, and jethro may be behave differently (since on jethro based
> build this seemed to work)?
>
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-09-17  0:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-16  3:08 BBMASK does not work Takashi Matsuzawa
2016-09-16  9:13 ` Takashi Matsuzawa
2016-09-16 12:15   ` Takashi Matsuzawa
2016-09-17  0:05     ` Andre McCurdy

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.