Author Topic: What About The “virtual” Means?  (Read 3666 times)

lixiaosan

  • Newbie
  • *
  • Posts: 4
    • View Profile
What About The “virtual” Means?
« on: May 12, 2005, 11:16:05 pm »
In local.conf ,we find word “virtual”。
for example:

ASSUME_PROVIDED = "virtual/${TARGET_PREFIX}gcc virtual/libc"

and  use "bitbake virtual/kernel“ to build a kernel。

what about these ”virtual“ mean?

Mickeyl

  • Hero Member
  • *****
  • Posts: 1495
    • View Profile
    • http://www.Vanille.de
What About The “virtual” Means?
« Reply #1 on: May 13, 2005, 04:39:58 am »
A virtual dependency is one that is fulfilled by more than one alternative provider.

Example: We have lots of kernels in OE for different models. All our kernels provide "virtual/kernel". Now external module packages don't need to know _what_ kernel they're building against, however they need that _a_ kernel has been built - hence they rely on 'virtual/kernel'.

This is like saying "I don't care about which kind of ice-cream, I just want ice-cream"
Cheers,

Michael 'Mickey' Lauer | Embedded Linux Freelancer | www.Vanille-Media.de
Consider donating, if you like the software I contribute to.