This probably doesn't do what you're expecting it to do, use ALTERNATIVE_${PN}_append_class-target = " fallocate"
You can check with bitbake -e to see what's the difference between these 2. On Thu, Jul 26, 2018 at 3:56 PM Ioan-Adrian Ratiu <adrian.ra...@ni.com> wrote: > Because the util-linux_2.32.bb recipe explicitely disables fallocate > for nativesdk triggering build warnings: > > WARNING: nativesdk-util-linux-2.32-r0 do_package: util-linux: > alternative target (sdk/usr/bin/fallocate or > sdk/usr/bin/fallocate.util-linux) > does not exist, skipping... > WARNING: nativesdk-util-linux-2.32-r0 do_package: util-linux: NOT adding > alternative provide sdk/usr/bin/fallocate: sdk/usr/bin/fallocate.util-linux > does not exist > WARNING: nativesdk-util-linux-2.32-r0 do_package: util-linux: alt_link == > alt_target: sdk/usr/bin/fallocate == sdk/usr/bin/fallocate > > Signed-off-by: Ioan-Adrian Ratiu <adrian.ra...@ni.com> > --- > meta/recipes-core/util-linux/util-linux.inc | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/meta/recipes-core/util-linux/util-linux.inc > b/meta/recipes-core/util-linux/util-linux.inc > index ed5c618750..504f3c5b61 100644 > --- a/meta/recipes-core/util-linux/util-linux.inc > +++ b/meta/recipes-core/util-linux/util-linux.inc > @@ -206,8 +206,9 @@ do_install_append_class-native () { > ALTERNATIVE_PRIORITY = "80" > > ALTERNATIVE_${PN} = "dmesg kill more mkswap blockdev pivot_root > switch_root" > -ALTERNATIVE_${PN} += "hexdump last lastb logger mesg renice wall > fallocate unshare" > +ALTERNATIVE_${PN} += "hexdump last lastb logger mesg renice wall unshare" > ALTERNATIVE_${PN} += "setsid chrt flock utmpdump eject nologin taskset" > +ALTERNATIVE_${PN}_class-target += "fallocate" > > ALTERNATIVE_LINK_NAME[dmesg] = "${base_bindir}/dmesg" > ALTERNATIVE_LINK_NAME[kill] = "${base_bindir}/kill" > -- > 2.18.0 > >
-- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core