From nobody Tue Feb 10 01:34:30 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1623233350; cv=none; d=zohomail.com; s=zohoarc; b=KCz+jTzuRc052GCBz17noANS8/zlPPk9zG7CLtsXA3DZMb70nNbIGex8NwXcNVa2M2wTnU4L1FlmP+EwtfrqpnDyzay686pcHfo2ieS9bRUfPXpNFBez/FIkrdE8l0IOby1kcSqbZonbep8fwV55M52gnLsHh1Wt3tn0CwSiiHs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1623233350; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=9MSBl1qwvm6PBKVcWEziC8/TNLeqsJud3KoYE2xPGRI=; b=Sscz/IcAuRWeNnDMZnU55vaPIjs+K6MgDtLLJruY83fzvdSvcVss8xr/mZUQPF8QzrZ7j3gHc2ZUZFi7HIeD4IWHTrCJ7+EOplxgoHEa1tgIBWMxEMaoeOarXlS5fes6yUnZyx1qWPIFUrGgKzL2QRnY2vqGVaTv540UJhN1xPQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1623233350325374.08499457646326; Wed, 9 Jun 2021 03:09:10 -0700 (PDT) Received: from localhost ([::1]:58968 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lqv8z-0008G9-9k for importer@patchew.org; Wed, 09 Jun 2021 06:09:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40918) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lqv5H-0000O8-By for qemu-devel@nongnu.org; Wed, 09 Jun 2021 06:05:15 -0400 Received: from mail-lf1-x133.google.com ([2a00:1450:4864:20::133]:44746) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lqv5E-0006u9-A1 for qemu-devel@nongnu.org; Wed, 09 Jun 2021 06:05:15 -0400 Received: by mail-lf1-x133.google.com with SMTP id r198so33785666lff.11 for ; Wed, 09 Jun 2021 03:05:11 -0700 (PDT) Received: from navi.cosmonova.net.ua ([95.67.24.131]) by smtp.gmail.com with ESMTPSA id l12sm333590lfk.10.2021.06.09.03.05.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Jun 2021 03:05:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daynix-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=9MSBl1qwvm6PBKVcWEziC8/TNLeqsJud3KoYE2xPGRI=; b=dsGPg8nwx1fpwwj+0nX5kZPn3GNDqlmnqrar8rbYjEHycTT/IpOQSZGHkCTCk/OyLR rWeQcOiIl5Fwaw8rwKxXF89uLUBrpWmuuETw/4m2m5wVVWp3xpXUTjl86uCWiIRGFZ0H uulUyLbafEbjkkdIT+LLDkn22rGY+dF5BOOMkR74vc1WIJNDVfLF+Nc9rkkOGU6UuCTr Urb1ehvAGATlSoj2Got6Rf2uqwjMR9vdKsaTImFXIxZQQBevI2AnbrjyzFFyCKJGY2Qq e3vGVRG4PG+Ffr3OlaY8o6zrJMTInqASqHsVyM+FUIAcqyvGBhf/igiOz2XIYafxwhDj H76w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=9MSBl1qwvm6PBKVcWEziC8/TNLeqsJud3KoYE2xPGRI=; b=ZeQqhD5C8Ee1oHa3iXmsMh656ncWU0H/HIZaRa6pV4SgjXgrQwcHYc6UCH5Zf/Q+nd O/06QSK8ATQnADranDYZsILixmyZEmpSDI1wMDewdNA1QdOLHccbVUtULqQLmaTXJQoQ nN9HBjQmQyrrDUGfdyMZc61y26d4eXlIWZaOV1vfEYNjhGauLU92LvxkraBkXo8mwjOQ ydKj6LyVCCLPfaFNPqMOsDOZnTXU3U5SUCbDaX9l/8xpjPzjS66zonvaStthyhmUdgyc bafzhlY7MFq1T+7+gv/iY4Na5tlUiBdUJFD2SdFyicyuNfsw2FfHobDXe6uTu3F1+iyV QBUA== X-Gm-Message-State: AOAM530zAFOapwHYrtQqZat830DwOw82smqeReL3N0RRUonkTnPG0EnS oMOnYaHbASc5/g//a/uRJZ3TJA== X-Google-Smtp-Source: ABdhPJxzGbPwC2xqcBYPR1uqHvrZ4nsSZXPQvoQ+UczkJJ3J/gMuuepqv6mlc+v9AzCV8kCY1csiug== X-Received: by 2002:a05:6512:3c9f:: with SMTP id h31mr1877617lfv.51.1623233110914; Wed, 09 Jun 2021 03:05:10 -0700 (PDT) From: Andrew Melnychenko To: mst@redhat.com, yuri.benditovich@daynix.com, jasowang@redhat.com, armbru@redhat.com, eblake@redhat.com, berrange@redhat.com Subject: [RFC PATCH 5/5] meson: libbpf dependency now exclusively for Linux. Date: Wed, 9 Jun 2021 13:04:57 +0300 Message-Id: <20210609100457.142570-6-andrew@daynix.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210609100457.142570-1-andrew@daynix.com> References: <20210609100457.142570-1-andrew@daynix.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: none client-ip=2a00:1450:4864:20::133; envelope-from=andrew@daynix.com; helo=mail-lf1-x133.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: yan@daynix.com, qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" Libbpf is used for eBPF RSS steering, which is supported only by Linux TAP. There is no reason yet to build eBPF loader and helper for non Linux systems, even if libbpf is present. Signed-off-by: Andrew Melnychenko --- meson.build | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/meson.build b/meson.build index ce26bddead..fa6c48fb86 100644 --- a/meson.build +++ b/meson.build @@ -1033,19 +1033,22 @@ if not get_option('fuse_lseek').disabled() endif =20 # libbpf -libbpf =3D dependency('libbpf', required: get_option('bpf'), method: 'pkg-= config') -if libbpf.found() and not cc.links(''' - #include - int main(void) - { - bpf_object__destroy_skeleton(NULL); - return 0; - }''', dependencies: libbpf) - libbpf =3D not_found - if get_option('bpf').enabled() - error('libbpf skeleton test failed') - else - warning('libbpf skeleton test failed, disabling') +libbpf =3D not_found +if targetos =3D=3D 'linux' + libbpf =3D dependency('libbpf', required: get_option('bpf'), method: 'pk= g-config') + if libbpf.found() and not cc.links(''' + #include + int main(void) + { + bpf_object__destroy_skeleton(NULL); + return 0; + }''', dependencies: libbpf) + libbpf =3D not_found + if get_option('bpf').enabled() + error('libbpf skeleton test failed') + else + warning('libbpf skeleton test failed, disabling') + endif endif endif =20 --=20 2.31.1