All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ondrej Mosnacek <omosnace@redhat.com>
To: selinux@vger.kernel.org
Subject: [PATCH testsuite 1/2] tests/module_load: simplify the clean target
Date: Mon,  6 Sep 2021 12:54:34 +0200	[thread overview]
Message-ID: <20210906105435.96417-1-omosnace@redhat.com> (raw)

No need to guess all the wildcards to remove the intermediate files from
module build - we can just use the kernel module build system to clean
them up for us.

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
---
 tests/module_load/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/module_load/Makefile b/tests/module_load/Makefile
index b6eba25..ce34241 100644
--- a/tests/module_load/Makefile
+++ b/tests/module_load/Makefile
@@ -9,4 +9,4 @@ all: $(TARGETS)
 
 clean:
 	rm -f $(TARGETS)
-	rm -f *.a *.o *.ko *.cmd *.mod *.mod.c .*.cmd Module.symvers modules.order
+	$(MAKE) -C $(KDIR) M=$(PWD) clean
-- 
2.31.1


             reply	other threads:[~2021-09-06 10:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-06 10:54 Ondrej Mosnacek [this message]
2021-09-06 10:54 ` [PATCH testsuite 2/2] tests/module_load: use the right compiler to build kernel modules Ondrej Mosnacek
2021-09-11 18:34 ` [PATCH testsuite 1/2] tests/module_load: simplify the clean target Ondrej Mosnacek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210906105435.96417-1-omosnace@redhat.com \
    --to=omosnace@redhat.com \
    --cc=selinux@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.