Message ID | 20191011002808.28206-14-ivan.khoronzhuk@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp41633ill; Thu, 10 Oct 2019 17:28:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqzPHbjPilkxfw0GluuqRN2NWM+6E9bxvDBP5aqKaS0UAQpRIKdWtWBguNgnKewMN4WeS31d X-Received: by 2002:a17:906:9aa:: with SMTP id q10mr10603781eje.93.1570753724213; Thu, 10 Oct 2019 17:28:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570753724; cv=none; d=google.com; s=arc-20160816; b=ymUb6Ff4RoEPP1yE6sT842L/JYJ1XoIQQYu757hjybIXC2wJFkfsF5gQZY3iNtBrx8 sot90BCBbHnfAMUzpo7PAECYL88Vtn0I2iULpzsLHaRzbNcZxgOQ4GN9ZhHrHSTWsKAu 5kVTTKj9YsfgtiQOndV7z6uhfBYPP0PFY6Yx9BMySst+8ZoItBhJxEvPsLa7R51Ro4f9 M53dSIdwP6yQ3UtDTUaR8jhukthUqJBMdxcLvEQDuxxEkZ1+zz/6Y+y5/D7cNBuuswFU uUhCBuDPyqYizQ5jfDYNEJBnrK53HGpo2VLgVINPB3ukeym32QvPffCQOTLT5cWexQiU ikGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=LjUmR6syFZQTjTX+EMH7Sbgc4CwkKZT5NTkS4TQtAUc=; b=l7DWKa2EdBFktC7yYOiYXAZ/RZFLoxQmqi3oi1lRnCaKRvf40XmQyNlknfgosqXohq QJi3tGpgrARwg7ShB/5ycKpQdG3PaB87nacduq4An8MK4zyvZfspi5RwY8PuPMHxN1k+ QuWYh3h1fDfgcSQKWrR33vBXuRgwTI8A76h2SUlxyWwxnGmMuAUNEBw4fsZRmUDiE6gk yUSoDB3aClc0BZ9FSXrmzLw7bDLP4Orjz7V6hI5770AsjW6q3+bzrLSvUUK+6+l6s7FR 45uy79csARGncJjc/rtZLRXFAOSKdWZWAGA3MZ8oiyJOp225Sl/Wj10llaD5otWbLEp7 OGXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mnI2QbGC; spf=pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <netdev-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y50si4737688edd.237.2019.10.10.17.28.44; Thu, 10 Oct 2019 17:28:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mnI2QbGC; spf=pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727828AbfJKA2n (ORCPT <rfc822;dan.rue@linaro.org> + 8 others); Thu, 10 Oct 2019 20:28:43 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:33578 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727787AbfJKA2l (ORCPT <rfc822;netdev@vger.kernel.org>); Thu, 10 Oct 2019 20:28:41 -0400 Received: by mail-lj1-f194.google.com with SMTP id a22so8065865ljd.0 for <netdev@vger.kernel.org>; Thu, 10 Oct 2019 17:28:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=LjUmR6syFZQTjTX+EMH7Sbgc4CwkKZT5NTkS4TQtAUc=; b=mnI2QbGCo1NRiFTjyOBIqf6KabxlSsnPI4hdGenxjeIyJTkSXKVt+0hJS0M5neXKLA QBHDyXER/DRHnVa4ubnHrlLClZtvLAtNYFdgQF3rb4NcU4bmKJ0Lz2Ufxthc/b0bJ1+Z kW4AWWBQ2OqryumuH+jEK+ydtLRpiEzBtnHnm7tZaq6+hU/ItTonq/Y3xqyD177deZTS bDH08drSrEruU6qymWOgxylscRznlSk57CIdPAwhHWK3wTFu0VdkWrvR+s6lEse6B5Go 1vh0iAFOmgwbO1zArtb6aL2WFaJ1aR6YdgCcd9ExuDq4DEQiXiJOktqlD/av3XyosuSO f42Q== 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; bh=LjUmR6syFZQTjTX+EMH7Sbgc4CwkKZT5NTkS4TQtAUc=; b=b5i4GoSgEBX9aGUauLjwLQpkbpI1kYaw5yBwBOVUH3Hjdr4UvudvaGqgZpSrZT4AN0 5uZSZ+vBEEMFprxd7cDOEml4tzY2vCk4Aq4eA0p43NbnMd9Ivvxtw0QP2TjT87lWpAGw OCi48TfRNbhQTCYPETD8C+QEHvjzV3ABdOIyxPNiBhNqs41JirwYJAWKEa0C/RSCLOsP H1PHUZCtoQ+6WxBug4o2lvQAMioeq5Ut9qm/zWZ/mOS3i0T+1fBD5SX5TUxvkuj2SL4w qmc5R4nZo80dg+VZPZoTJALvqrdRacuPMQ8H/QdZF0eEZw44C0Zt8SPdy8jidxLzVmha D6dA== X-Gm-Message-State: APjAAAXPqseCUqS2XlXEkzBw3myiyHb9jm7oHqSNiN1hu1+zqAk62spI I4F1L8MJ4q6ioCmmGFzQ7BjCqg== X-Received: by 2002:a2e:9cc9:: with SMTP id g9mr7896959ljj.160.1570753718464; Thu, 10 Oct 2019 17:28:38 -0700 (PDT) Received: from localhost.localdomain (88-201-94-178.pool.ukrtel.net. [178.94.201.88]) by smtp.gmail.com with ESMTPSA id 126sm2367010lfh.45.2019.10.10.17.28.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Oct 2019 17:28:37 -0700 (PDT) From: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org> To: ast@kernel.org, daniel@iogearbox.net, yhs@fb.com, davem@davemloft.net, jakub.kicinski@netronome.com, hawk@kernel.org, john.fastabend@gmail.com Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org, clang-built-linux@googlegroups.com, ilias.apalodimas@linaro.org, sergei.shtylyov@cogentembedded.com, Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org> Subject: [PATCH v5 bpf-next 13/15] samples/bpf: provide C/LDFLAGS to libbpf Date: Fri, 11 Oct 2019 03:28:06 +0300 Message-Id: <20191011002808.28206-14-ivan.khoronzhuk@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191011002808.28206-1-ivan.khoronzhuk@linaro.org> References: <20191011002808.28206-1-ivan.khoronzhuk@linaro.org> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: <netdev.vger.kernel.org> X-Mailing-List: netdev@vger.kernel.org |
Series |
samples: bpf: improve/fix cross-compilation
|
expand
|
diff --git a/samples/bpf/Makefile b/samples/bpf/Makefile index a6c33496e8ca..6b161326ac67 100644 --- a/samples/bpf/Makefile +++ b/samples/bpf/Makefile @@ -248,7 +248,8 @@ clean: $(LIBBPF): FORCE # Fix up variables inherited from Kbuild that tools/ build system won't like - $(MAKE) -C $(dir $@) RM='rm -rf' LDFLAGS= srctree=$(BPF_SAMPLES_PATH)/../../ O= + $(MAKE) -C $(dir $@) RM='rm -rf' EXTRA_CFLAGS="$(TPROGS_CFLAGS)" \ + LDFLAGS=$(TPROGS_LDFLAGS) srctree=$(BPF_SAMPLES_PATH)/../../ O= $(obj)/syscall_nrs.h: $(obj)/syscall_nrs.s FORCE $(call filechk,offsets,__SYSCALL_NRS_H__)
In order to build lib using C/LD flags of target arch, provide them to libbpf make. Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org> --- samples/bpf/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.17.1