From patchwork Wed Nov 29 19:36:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Kicinski X-Patchwork-Id: 13473377 X-Patchwork-Delegate: kuba@kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4E6C25EE79 for ; Wed, 29 Nov 2023 19:36:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="T7T8Lksd" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 64211C433CC; Wed, 29 Nov 2023 19:36:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701286587; bh=HJkAwUzCcHSDpmbt076xC64L/HORRKbuLH/E0PEtH8c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=T7T8LksdtOeA6WJuM89EqPTbPnJgxM0UlNrnrB6Hgny8yofiIfXJVbXnOwQu8nrtu z2k330LnGtiW/r/qFGek/Yf17rSDJXhB5mAEgQnV2Sv5MUNx7pj91Rkseoh0XQ+ZAG tpUNjZNQvw0e+tqkAuuQqr1el6OBCLuewdlu3aQAzCXeg9thSyUqgHzirurURcDZEc ZN7FTXgQgwDN0V++/3NPSMKEZhpVbQAzhM7T6Jyp3zwh3ZZzYZem9180hJt9X42VsW tvaetWcgSR3c/X2BkQYJyBCc3BeB8nXnqDfrtsUOXvDKibjYVpx5pL6NeydzTVd8bK UZk6ssiRT4Txw== From: Jakub Kicinski To: davem@davemloft.net Cc: netdev@vger.kernel.org, edumazet@google.com, pabeni@redhat.com, Jakub Kicinski , sdf@google.com, willemb@google.com Subject: [PATCH net-next 3/4] tools: ynl: order building samples after generated code Date: Wed, 29 Nov 2023 11:36:21 -0800 Message-ID: <20231129193622.2912353-4-kuba@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231129193622.2912353-1-kuba@kernel.org> References: <20231129193622.2912353-1-kuba@kernel.org> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: kuba@kernel.org Parallel builds of ynl: make -C tools/net/ynl/ -j 4 don't work correctly right now. samples get handled before generated, so build of samples does not notice that protos.a has changed. Order samples to be last. Signed-off-by: Jakub Kicinski --- CC: sdf@google.com CC: willemb@google.com --- tools/net/ynl/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/net/ynl/Makefile b/tools/net/ynl/Makefile index d664b36deb5b..da1aa10bbcc3 100644 --- a/tools/net/ynl/Makefile +++ b/tools/net/ynl/Makefile @@ -4,6 +4,8 @@ SUBDIRS = lib generated samples all: $(SUBDIRS) +samples: | lib generated + $(SUBDIRS): @if [ -f "$@/Makefile" ] ; then \ $(MAKE) -C $@ ; \