Le 12/15/2011 07:15 PM, Nico a écrit :
Hi,

On Thu, Dec 15, 2011 at 5:51 PM, Emmanuel Deloget
<emmanuel.delo...@efixo.com>  wrote:
Hi everybody,

I recently faced an issue related to package dependencies that drove me
nuts. Consider the following case :

  * I manage different platforms (let's say platform1 and platform2)

  * On platform1, packageX depends on pkgdep, which should be autoselected
    when I select packageX.

  * On platform2, packageX also depends on pkgdep, which should be
    autoselected when I select packageX.

  * On all other platforms, packageX shall not depends on anything.

The current solution is to handle that using the package dependencies

define Package/packageX
    TITLE:=PackageX
    MAINTAINER:=me
    SECTIONS:=utils
    CATEGORY:=Utils
    URL:=http://somewhere/
    DEPENDS:=+TARGET_platform1:pkgdep +TARGET_platform2:pkgdep
endef

Have you tried the following?

DEPENDS:=+(TARGET_platform1||TARGET_platform2):pkgdep

I forgot to mention that.

Yes, I tried, but then metadata.pl tries to create the following condition:

$(if $(CONFIG_(TARGET_platform1||TARGET_platform2)),$(curdir).../pkgdep)

metadata.pl takes the full condition to create the CONFIG_ symbol.

--
-{Nico}

Best regards,

-- Emmanuel Deloget
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to