From patchwork Fri Mar 1 23:56:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Kicinski X-Patchwork-Id: 13579289 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 96A1F5F479 for ; Fri, 1 Mar 2024 23:56:13 +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=1709337373; cv=none; b=jaroRQXIalCi6YMjvdz5vMsmL+mB01qU0VThZRHTD+DYmfGHMSPod4pAn8xfi3PYtHQ2ineQpMt7MiWYi5yKjVFLMi8uQllsGnXEuNRdFgZ+iC/Vc1NtnVuLi18DNu7VhMTCIqKFb/cKDPAZjN/u0JidqnoBA6FYp84JPdJmvHk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709337373; 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=T/c4HYcKbbyfMCOT98EjjUIpAT2hnTAQMqAKGR6RXjSgOGKlD5nZO8dT0RapUl+VKVNTndBSYwe1Ri4jZ3575mir4G1k6CwK3Bn5lZEQbx7yDwta/Yt/jT+/UulUjVb6qZR80eJArWd9ZQdk+pkq8g9WI4mfBeMcrp7mfv22c0E= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=s23T2qcX; 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="s23T2qcX" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E467BC433B1; Fri, 1 Mar 2024 23:56:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709337373; bh=eMPw+X9ZW5/xrSdloZr+aODe/j/fdzWw7phrET6UWtU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=s23T2qcXEznY6MEMAJ1EBmArfXQpKiW3gIqaV10/BYmmKHxJj3CFIlKTLlIfSBv/d uzBnmvdhzTGHNg533sbo42LiI8jg6kf/DYnPwtb490jUWzyXRq9bJZFmsKhn97gu3q zn135sFvjDvVqqUQ6AtwzPnEk01BamlS3AHinoCGYskQ8oFRK8C0X2Jjxm/5UAbt2+ 0z0FemRp0UHJHzOfwNXKS+EDaHIPv9zCnmNZtRuQoZCxafhTK5SUwCyo/6Gi1dmBAV j5gpe9ZHGWqBsv0SDN610Qa7c/ehIbtpCqNxsWBlmggeLJ+oknd/Wz2dv83RQBLh4E DXmpDJlTNXTWg== From: Jakub Kicinski To: davem@davemloft.net Cc: netdev@vger.kernel.org, edumazet@google.com, pabeni@redhat.com, Jakub Kicinski Subject: [PATCH net-next 1/2] tools: ynl: rename make hardclean -> distclean Date: Fri, 1 Mar 2024 15:56:08 -0800 Message-ID: <20240301235609.147572-2-kuba@kernel.org> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240301235609.147572-1-kuba@kernel.org> References: <20240301235609.147572-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 --- 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 Fri Mar 1 23:56:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Kicinski X-Patchwork-Id: 13579290 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 D99845F47D for ; Fri, 1 Mar 2024 23:56:13 +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=1709337373; cv=none; b=oOYk0vj9TZAR8Ix0f7MNc6KPR0nZQpdMa/UXU+p22tH+lE9O0I6vPkuPWSlA1/D/l815w9y0SYho0oZuO4qUrkd3Jxa1Uy2+J9nLSDrkb8mKquZvgzV0xpF+fvki3Ze59zW50EG4zkFp9hzgaSXkrOtMkZ0RUaMjQHwtKtGqCUU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709337373; c=relaxed/simple; bh=VhCuvNgY32vudBzzsVbSXhjkNzOu0bkIdAkCDzcZ0jI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=VYc2u1HsBVtRkK3ZiHRICO2P7MUhZGeoVVu7XpCAilOE2pDgcsgJLzsEQc3h070+2cQNN9mTPoVyfLkrWiIGcBuMxcWGzH/o614qBYydyVgDeNBqeWG07YzYgIJt5Z7b7iqmQOnS+oj8606JYsy/129dTvygvOIvIdQDuh8hb0s= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Drtk9AnF; 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="Drtk9AnF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3B9A2C433B2; Fri, 1 Mar 2024 23:56:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709337373; bh=VhCuvNgY32vudBzzsVbSXhjkNzOu0bkIdAkCDzcZ0jI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Drtk9AnFuJ+dFdJ7xZx1Rmx1M8dv0qYDhF5BzJjtXwyK3zwqUzILGrCzI0M+czD1t 4G7uAsGZZbPlEiCQLkW9kDr0T1yB65eD5CaLkCYTbZaxQ9+ibPn+orezSmMsOM5Dpq lxZtfFO1tAgs7cxKgS3ZeR0qSSkSjxo+6df0JmKXQw/nPwc3FqLySYJprTS/fAf4kq EhbK7LAx+irWxhSiMYKZlhK6h/IbwxSCBQg8qES1yvV1oH7JKJ4FkKVvSKJ3ARzZsm aPn0vHdAqHsBHon7NnvGUflM9CebOwQ7DT04sepi2bwc1Tuf1EJiBeqt3WK9mq1Ymj ///Bx3vOchaeA== From: Jakub Kicinski To: davem@davemloft.net Cc: netdev@vger.kernel.org, edumazet@google.com, pabeni@redhat.com, Jakub Kicinski Subject: [PATCH net-next 2/2] tools: ynl: remove __pycache__ during clean Date: Fri, 1 Mar 2024 15:56:09 -0800 Message-ID: <20240301235609.147572-3-kuba@kernel.org> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240301235609.147572-1-kuba@kernel.org> References: <20240301235609.147572-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 2201dafc62b3..bdd6e132e58c 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