On 09/27/2018 11:24 PM, ?????? wrote:
cd meta-yocto-bsp/recipes-kernel/linux/
cp linux-yocto_4.18.bbappend linux-yocto-rt_4.18.bbappend

it works now.

It only works to build due to the line:

COMPATIBLE_MACHINE_beaglebone-yocto = "beaglebone-yocto"

But it may not actually be building the proper -rt kernel,
since that same bbappend sets SRCREVs that are not valid
for the preempt-rt branches.

Also, it wouldn't work if there wasn't already a preempt-rt
BSP description for that board (but in this case, there is
one).

Bruce



------------------?0?2?????????0?2------------------
*??????:*?0?2"????????????"<1056612...@qq.com>;
*????????:*?0?22018??9??28??(??????) ????11:09
*??????:*?0?2"Bruce Ashfield"<bruce.ashfi...@windriver.com>;"linux-yocto"<linux-yocto@yoctoproject.org>;
*????:*?0?2?????? [linux-yocto] about beaglebone-yocto bitbake core-image-rt

in file:
 ?0?2?0?2?0?2?0?2?0?2?0?2?0?2?0?2?0?2?0?2 ?0?2 
meta-yocto-bsp/recipes-kernel/linux/linux-yocto_4.18.bbappend
there is line:
 ?0?2?0?2?0?2?0?2?0?2?0?2?0?2?0?2?0?2?0?2 ?0?2 COMPATIBLE_MACHINE_beaglebone-yocto = 
"beaglebone-yocto"

was it for add COMPATIBLE_MACHINE?

------------------ ???????? ------------------
*??????:*?0?2"Bruce Ashfield"<bruce.ashfi...@windriver.com>;
*????????:*?0?22018??9??27??(??????) ????9:27
*??????:*?0?2"??????"<1056612...@qq.com>;"linux-yocto"<linux- yo...@yoctoproject.org>;
*????:*?0?2Re: [linux-yocto] about beaglebone-yocto bitbake core-image-rt

On 09/27/2018 02:15 AM, ?????? wrote:
 > $ git clone git://git.yoctoproject.org/poky
 > $ cd poky
 > $ . ./oe-init-build-env build-bbb
 >
 > edit conf/local.conf to set MACHINE ??= "beaglebone-yocto"
 >
 > $ echo "PREFERRED_PROVIDER_virtual/kernel = \"linux-yocto-rt\"" >>
 > conf/local.conf
 > $ bitbake -v core-image-rt
 >
 > got errors:
 >
 > Loading cache...done.
 > Loaded 1260 entries from dependency cache.
 > NOTE: Resolving any missing task queue dependencies
 > NOTE: selecting pseudo-native to satisfy virtual/fakeroot-native due to
 > PREFERRED_PROVIDERS
 > ERROR: Nothing PROVIDES 'linux-yocto-rt' (but
> /home/jaloo/backup/yocto/src/poky/meta/recipes-rt/images/core-image-rt.bb DEPENDS
 > on or otherwise requires it)
 > linux-yocto-rt was skipped: incompatible with machine beaglebone-yocto
 > (not in COMPATIBLE_MACHINE)
 > linux-yocto-rt was skipped: incompatible with machine beaglebone-yocto
 > (not in COMPATIBLE_MACHINE)
 > NOTE: Target 'linux-yocto-rt' is unbuildable, removing...
 > Missing or unbuildable dependency chain was: ['linux-yocto-rt']
 > NOTE: Target 'core-image-rt' is unbuildable, removing...
 > Missing or unbuildable dependency chain was: ['core-image-rt',
 > 'linux-yocto-rt']
 > ERROR: Required build target 'core-image-rt' has no buildable providers.
 > Missing or unbuildable dependency chain was: ['core-image-rt',
 > 'linux-yocto-rt']

The problem is just what they error message is trying to say.
There's no declared machine compatibility between that board
and the linux-yocto-rt recipe.

You could create a bbappend that contained both a BSP
definition and that sets the compatibility. But I can't
say if it would, or wouldn't have runtime issues.

i.e. you need to append beaglbone-yocto to the COMPATIBLE_MACHINE
variable.

You also need a BSP definition for the -rt kernel, but at
a glance, it looks like there's already one in the kernel-cache,
so you should get a valid configuration.

Bruce

 >
> Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
 >
 >
 >
 >
 >

--
_______________________________________________
linux-yocto mailing list
linux-yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/linux-yocto

Reply via email to