Files
Hongxu Jia 3f64779eae libdevmapper/lvm2: force recipe libdevmapper to populate sysroot only
Previously, in order to fix circular dependencies, we split
libdm from lvm2 as a new recipe libdevmapper, and as running result
proved, we need to keep both of them built with the same configuration
option

With new configuration options added, it is hard to keep them the same,
so we make recipe libdevmapper to populate libdevmapper sysroot only,
and make lvm2 to provide package libdevmapper.

In this situation, option differ does not affect header and library API
between lvm2 and libdevmapper, although lvm2 and libdevmapper are different
at build time, but there is only one lvm2 at run time

Side effect:
- If one recipe DEPENDS on libdevmapper, it has to add libdevmapper to
  its RDEPENDS or add lvm2 to DEPENDS, otherwise, there will be a
  [file-rdeps] or [build-deps] QA warning

- It has to add `PREFERRED_RPROVIDER_libdevmapper = "lvm2"' to local.conf
  to workaound 'Multiple providers' NOTE

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-08-24 05:20:43 -07:00

20 lines
446 B
BlitzBasic

# Break circular dependencies, only populate sysroot (header,
# libraries) to other recipe for compiling, recipe lvm2
# generates package libdevmapper
require lvm2.inc
SRCREV = "913c28917e62577a2ef67152b2e5159237503dda"
DEPENDS += "autoconf-archive-native"
TARGET_CC_ARCH += "${LDFLAGS}"
do_install() {
oe_runmake 'DESTDIR=${D}' -C libdm install
}
# Do not generate package libdevmapper
PACKAGES = ""
BBCLASSEXTEND = "native nativesdk"