From patchwork Tue Mar 5 05:13:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Kicinski X-Patchwork-Id: 13581616 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 A1F0045953 for ; Tue, 5 Mar 2024 05:13:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709615616; cv=none; b=ctrVMjLsph1sU8t7/xtEJEwGtCMkdjrcOa1B9MxTE6IiLjG7J11nv1NmjEj19kfv32hLaD9dHBGWP2Q7cLDRQNyXoqZJsytNGVniJecLDlGM2nI3DcJJHrF5zeq6jG8n89zY82pQwcQijohXKZAbtYo6oZIrQ7AjHbnZhMcpcVE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709615616; c=relaxed/simple; bh=eMPw+X9ZW5/xrSdloZr+aODe/j/fdzWw7phrET6UWtU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=bYEwoWADvQ70YbPjulO2Su3a2AC3kPchbfMbNxlO5pM/nJ7UCW5ULXLnIaOoj2OXMWg7S5Ua4FQgSQwMI5kDN4pnvBbFnHCV4jMCtd9DxNH1tiWBgRJQFf2TMkzpTQwFyO110G3945auwm0c1A4AVA6GLtwNhmYi9sTfmC096us= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=mtL+HWOL; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="mtL+HWOL" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E7B3BC43394; Tue, 5 Mar 2024 05:13:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709615616; bh=eMPw+X9ZW5/xrSdloZr+aODe/j/fdzWw7phrET6UWtU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mtL+HWOLoeff9Sm0QqM32ZnVLeNRdYWpz7yPOKPqQPmQegt+L+Gq9L8Nt26tW0DH2 moGuw4Adl3hlsllfKK650Kb89VVbe+n38hEfH7J90miWzYhLtaoNkwVrm19210dMmz IpFXEwMynYZi4VMXJQnx4HNsp+j/VR3oLfbiBS0I08XgwvIpg5wQtMLIJKxPRqTnhY nfPL4nVzJ7z4a3jubhPcmA8d9gzAEPO97rwGlTXXKGNCHdYkJ1Cg7YSVQR83ZX4AA3 Zspr/1u7uQr5jHjXF7j10auUE3sCDSu94QEmXwwKe2Sgst8ncrunelbpQaEeL9N1BE J9afu4Vudhx4g== From: Jakub Kicinski To: davem@davemloft.net Cc: netdev@vger.kernel.org, edumazet@google.com, pabeni@redhat.com, donald.hunter@gmail.com, Jakub Kicinski Subject: [PATCH net-next v2 1/3] tools: ynl: rename make hardclean -> distclean Date: Mon, 4 Mar 2024 21:13:26 -0800 Message-ID: <20240305051328.806892-2-kuba@kernel.org> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240305051328.806892-1-kuba@kernel.org> References: <20240305051328.806892-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 The make target to remove all generated files used to be called "hardclean" because it deleted files which were tracked by git. We no longer track generated user space files, so use the more common "distclean" name. Signed-off-by: Jakub Kicinski Reviewed-by: Donald Hunter --- tools/net/ynl/Makefile | 2 +- tools/net/ynl/generated/Makefile | 4 ++-- tools/net/ynl/lib/Makefile | 2 +- tools/net/ynl/samples/Makefile | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/net/ynl/Makefile b/tools/net/ynl/Makefile index da1aa10bbcc3..1874296665e1 100644 --- a/tools/net/ynl/Makefile +++ b/tools/net/ynl/Makefile @@ -11,7 +11,7 @@ samples: | lib generated $(MAKE) -C $@ ; \ fi -clean hardclean: +clean distclean: @for dir in $(SUBDIRS) ; do \ if [ -f "$$dir/Makefile" ] ; then \ $(MAKE) -C $$dir $@; \ diff --git a/tools/net/ynl/generated/Makefile b/tools/net/ynl/generated/Makefile index 7135028cb449..713f5fb9cc2d 100644 --- a/tools/net/ynl/generated/Makefile +++ b/tools/net/ynl/generated/Makefile @@ -43,11 +43,11 @@ protos.a: $(OBJS) clean: rm -f *.o -hardclean: clean +distclean: clean rm -f *.c *.h *.a regen: @../ynl-regen.sh -.PHONY: all clean hardclean regen +.PHONY: all clean distclean regen .DEFAULT_GOAL: all diff --git a/tools/net/ynl/lib/Makefile b/tools/net/ynl/lib/Makefile index d2e50fd0a52d..2201dafc62b3 100644 --- a/tools/net/ynl/lib/Makefile +++ b/tools/net/ynl/lib/Makefile @@ -18,7 +18,7 @@ ynl.a: $(OBJS) clean: rm -f *.o *.d *~ -hardclean: clean +distclean: clean rm -f *.a %.o: %.c diff --git a/tools/net/ynl/samples/Makefile b/tools/net/ynl/samples/Makefile index 1d33e98e3ffe..3e81432f7b27 100644 --- a/tools/net/ynl/samples/Makefile +++ b/tools/net/ynl/samples/Makefile @@ -28,7 +28,7 @@ $(BINS): ../lib/ynl.a ../generated/protos.a $(SRCS) clean: rm -f *.o *.d *~ -hardclean: clean +distclean: clean rm -f $(BINS) .PHONY: all clean From patchwork Tue Mar 5 05:13:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Kicinski X-Patchwork-Id: 13581617 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 0ACE345BE8 for ; Tue, 5 Mar 2024 05:13:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709615617; cv=none; b=c6n5zYaKaCmtYCiewdnQ2HmgPvNF9Dlvv4X1c84N0ibQ2//LS6dzjuZ1aFxi0ZQ2wNGnM1Yn0JBsPPxAN/1WyDg4ad+F/8agDP0mBFvqATL6EwVRyOR5E6ZP909vdgayOne450ne4mlGmUuAoqYAUAWZQTiKugCzr5Texf9tTJs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709615617; c=relaxed/simple; bh=Ek0LEforhJgdx4L9n4iIabs1ZJbHtn1fikf79vXlfOw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=MTySK3cim4Ieh749QmeMcDVPd2gvA+zm2x/Oxz72CfAO8gCQ9+raDtlteNrpXBG9YEFhu34CMHdTmOKNK47R35fIqCyzUshLJDCfRiKq0Q3W6EId6u3j6pt3fw3IFX71n5AKUdg2jAx2Wv4GSYw8LJX3kNxEc3v1Ejt4Alk1R4E= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=pmJDonHd; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="pmJDonHd" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6218CC43390; Tue, 5 Mar 2024 05:13:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709615616; bh=Ek0LEforhJgdx4L9n4iIabs1ZJbHtn1fikf79vXlfOw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pmJDonHdchmzIfgfUVS0L7GWK/xOt7/vXW7NWlMo3KfbFXhjB6Xo4dWk9B2h5RQm3 JZkpkS4zkEcxL5BeJuUU9WOPblzNfAO053Tfgh+iOytq878aszOH2YLizaJGSLWp2b LLOOOJULeW0Vpi81rMMVIYiDBsJN7+UqVnpantaoVjIVWFpC/PoMngyG3WMHIUFJhM 7RBkVk3ruBmX1a60aLjdhh+eVIpZrONH6Jy4aAVbf+28IbselTuTawUWj7s6s+Q7Vj pHeBiHQtkHfQSnfzKn8x0VSKtE/ndfJc4jJrP18+OnzVKRF2OeD23lamvh2Of6iheT ieOyVy7y/GoAg== From: Jakub Kicinski To: davem@davemloft.net Cc: netdev@vger.kernel.org, edumazet@google.com, pabeni@redhat.com, donald.hunter@gmail.com, Jakub Kicinski Subject: [PATCH net-next v2 2/3] tools: ynl: add distclean to .PHONY in all makefiles Date: Mon, 4 Mar 2024 21:13:27 -0800 Message-ID: <20240305051328.806892-3-kuba@kernel.org> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240305051328.806892-1-kuba@kernel.org> References: <20240305051328.806892-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 Donald points out most YNL makefiles are missing distclean in .PHONY, even tho generated/Makefile does list it. Suggested-by: Donald Hunter Signed-off-by: Jakub Kicinski Reviewed-by: Donald Hunter --- v2: new patch --- tools/net/ynl/Makefile | 2 +- tools/net/ynl/lib/Makefile | 2 +- tools/net/ynl/samples/Makefile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/net/ynl/Makefile b/tools/net/ynl/Makefile index 1874296665e1..8e9e09d84e26 100644 --- a/tools/net/ynl/Makefile +++ b/tools/net/ynl/Makefile @@ -18,4 +18,4 @@ samples: | lib generated fi \ done -.PHONY: clean all $(SUBDIRS) +.PHONY: all clean distclean $(SUBDIRS) diff --git a/tools/net/ynl/lib/Makefile b/tools/net/ynl/lib/Makefile index 2201dafc62b3..1507833d05c5 100644 --- a/tools/net/ynl/lib/Makefile +++ b/tools/net/ynl/lib/Makefile @@ -24,5 +24,5 @@ distclean: clean %.o: %.c $(COMPILE.c) -MMD -c -o $@ $< -.PHONY: all clean +.PHONY: all clean distclean .DEFAULT_GOAL=all diff --git a/tools/net/ynl/samples/Makefile b/tools/net/ynl/samples/Makefile index 3e81432f7b27..e194a7565861 100644 --- a/tools/net/ynl/samples/Makefile +++ b/tools/net/ynl/samples/Makefile @@ -31,5 +31,5 @@ $(BINS): ../lib/ynl.a ../generated/protos.a $(SRCS) distclean: clean rm -f $(BINS) -.PHONY: all clean +.PHONY: all clean distclean .DEFAULT_GOAL=all From patchwork Tue Mar 5 05:13:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Kicinski X-Patchwork-Id: 13581618 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 9160E5A0E1 for ; Tue, 5 Mar 2024 05:13:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709615617; cv=none; b=NZDYZXJrvvU4OEgVbWdhD+ktNpJP2Ktd62ORUP2QPfTarBf0aWTmMwHTOA7RTQLTXVueJEdwasz5D/QHfAX5uNLYsWZeV7ksZQEtFRwG7YvkNRk5esXxQx/cYjeCaZiDiRWal0DB3E+RH7XAyN4KrjFWvGOqc9/spkvNe4kUxKE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709615617; c=relaxed/simple; bh=NBBWU1nSC/pxyRcC+A0Y/j8V8klT0MQGokbDi2j5C7g=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=cfxTlI+D7zk97LyO/bPGL6BR8fDLnUeCVGJXe3TikzaAkUJD6dwz9X9qJRNXk7Q41UCjoOJc8YoU3pU+6YOYh/HdjEDKifh1+VkrCg5ybe7qX+M8aiR93nr5LgndhnwcUv7cdcPyR7uOhKLnh2RP876anfpNVfq/v+ECb4TSRL8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=BOiJJHQp; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="BOiJJHQp" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D0716C433B2; Tue, 5 Mar 2024 05:13:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709615617; bh=NBBWU1nSC/pxyRcC+A0Y/j8V8klT0MQGokbDi2j5C7g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BOiJJHQpknqoI2yicNvR/4k5D9lio7x3Qta5VAz6yrsM6cvuleeXoHqJPDLHFa9Wi W1KgzeV2fN97PAW7WotGZ/JGUJbzknTw5I34Dq3i/0XMk8vZgOKJWoYtnSM8TUdTjg ZZ4GA/TkT4sUNGmM3widdRfmQhS7ayncIqbdAWwysE8D5+I3MJ8ZssUrGauVHAXURO 5a0YUtO8vKMwnjhzf1HeddLhimJsr5JL1EH9HwnuAHBmMndcL2aEDHcM06jUecAbPu LXgQ3Pbg20nuufngnVZbTWt2jf1C//rrv4Vb7lS0j5hfz/LnycBJfyDKr555g27TS3 AkFLgjttijWuw== From: Jakub Kicinski To: davem@davemloft.net Cc: netdev@vger.kernel.org, edumazet@google.com, pabeni@redhat.com, donald.hunter@gmail.com, Jakub Kicinski Subject: [PATCH net-next v2 3/3] tools: ynl: remove __pycache__ during clean Date: Mon, 4 Mar 2024 21:13:28 -0800 Message-ID: <20240305051328.806892-4-kuba@kernel.org> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240305051328.806892-1-kuba@kernel.org> References: <20240305051328.806892-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 Build process uses python to generate the user space code. Remove __pycache__ on make clean. Signed-off-by: Jakub Kicinski Reviewed-by: Donald Hunter --- tools/net/ynl/lib/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/net/ynl/lib/Makefile b/tools/net/ynl/lib/Makefile index 1507833d05c5..dfff3ecd1cba 100644 --- a/tools/net/ynl/lib/Makefile +++ b/tools/net/ynl/lib/Makefile @@ -17,6 +17,7 @@ ynl.a: $(OBJS) ar rcs $@ $(OBJS) clean: rm -f *.o *.d *~ + rm -rf __pycache__ distclean: clean rm -f *.a