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 -- -{Nico} _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel