Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3422371pxf; Mon, 29 Mar 2021 01:36:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxI9JseWFIiCM9++w/w7NZYFANHVTWjUdan8/QjyCyc+S4AAU5AS/yLa1/2toHIgbWVLgoN X-Received: by 2002:a05:6402:17e9:: with SMTP id t9mr27346724edy.211.1617007007952; Mon, 29 Mar 2021 01:36:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617007007; cv=none; d=google.com; s=arc-20160816; b=ronIrwXnnyAEz7b+K73KaiC7M5/p9ESBxHVSWvbAQJkX5U3ZHi3CRMrlGV1W+wS7Ev fQ+Wf9rkDfI/jblIxFbGUwm0IUCHDi/yf/cqqMnVfeaHpFVouT20flqtJmuQjadvt6yq QEcmsL1+97r51ydrZb7meR3mbXlaMEDl8MXKsk9NJhf8/fs/jHgiuTpAmR+39A2WLkvg iDMsuyEHzKxN+T6zwpj3IwvQsQFa5iq5CXhbwehXX101quusGefpwyC+W/PWPrT9cm5w tWe6gi2xI39g1hM/PSqShSo2kf+93DF9hC/T+zRMI5JTzmg6d/3+9pVpvpvM1eF53Vnw woKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ZzxX68WDM3wYNJsDf7eAPDVJgEvHqmqw3mr3eZz+Jvg=; b=yBOs459WI6QAlRSK6C6jvXZsaSSa1R+Je0wGJFJ48FrTnOX7UVtlx21NKpHUZkpZ/m k2w9pv0pZltvKfgwPc0l19PHO+6Nl/b0cPZENxU9++wuaIONRX4jWajJW413CpZJUjN3 DZwZQnberYBAVEVVebXPcDgUqvm5fNEcvwjxjiOA7qcyilEEdb64OXaiDHMGrqW5L4FM TtLr8QZmjgkW/e5CFaNIMqG0X08PMu1H26SrlYiJyQWnY07TV7JMSNpma9fchX75CLeR ob9LCK0k5+0lZHhRQj72SguE1h9kGKQp9LNf4WJKMrJiJAdBuv8cklHXTVXFP4p1dDId 4gHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="Km3/QjY2"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z13si12236093edc.6.2021.03.29.01.36.25; Mon, 29 Mar 2021 01:36:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="Km3/QjY2"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234612AbhC2IdV (ORCPT + 99 others); Mon, 29 Mar 2021 04:33:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:36014 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232837AbhC2IUn (ORCPT ); Mon, 29 Mar 2021 04:20:43 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1579961477; Mon, 29 Mar 2021 08:20:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1617006043; bh=RvGHUelu78Wvy3Fwm5HS4yu27xL0Wo2Xk9pw5n3GH3Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Km3/QjY2Ha3GNVCtARj7IGaGFdEdQ1HSe7uz1zgHLFI1ZoPJepCVC4JbiNp7Ktj6g YctuSKD8b6a9mN+PzlQ9d1wPlUFs+hHhOgiqr1s3ILJc2JypO+yRPVcNYOt+KiRuCK z8RpJEn8yyo5o+M0SwxPf5fgXU9a4lxi047YMhak= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Georgi Valkov , Andrii Nakryiko , Daniel Borkmann , Sasha Levin Subject: [PATCH 5.10 096/221] libbpf: Fix INSTALL flag order Date: Mon, 29 Mar 2021 09:57:07 +0200 Message-Id: <20210329075632.409795694@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210329075629.172032742@linuxfoundation.org> References: <20210329075629.172032742@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Georgi Valkov [ Upstream commit e7fb6465d4c8e767e39cbee72464e0060ab3d20c ] It was reported ([0]) that having optional -m flag between source and destination arguments in install command breaks bpftools cross-build on MacOS. Move -m to the front to fix this issue. [0] https://github.com/openwrt/openwrt/pull/3959 Fixes: 7110d80d53f4 ("libbpf: Makefile set specified permission mode") Signed-off-by: Georgi Valkov Signed-off-by: Andrii Nakryiko Signed-off-by: Daniel Borkmann Link: https://lore.kernel.org/bpf/20210308183038.613432-1-andrii@kernel.org Signed-off-by: Sasha Levin --- tools/lib/bpf/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/lib/bpf/Makefile b/tools/lib/bpf/Makefile index 55bd78b3496f..310f647c2d5b 100644 --- a/tools/lib/bpf/Makefile +++ b/tools/lib/bpf/Makefile @@ -236,7 +236,7 @@ define do_install if [ ! -d '$(DESTDIR_SQ)$2' ]; then \ $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$2'; \ fi; \ - $(INSTALL) $1 $(if $3,-m $3,) '$(DESTDIR_SQ)$2' + $(INSTALL) $(if $3,-m $3,) $1 '$(DESTDIR_SQ)$2' endef install_lib: all_cmd -- 2.30.1