diff mbox series

[testsuite,1/2] tests/module_load: simplify the clean target

Message ID 20210906105435.96417-1-omosnace@redhat.com (mailing list archive)
State Accepted
Delegated to: Ondrej Mosnáček
Headers show
Series [testsuite,1/2] tests/module_load: simplify the clean target | expand

Commit Message

Ondrej Mosnacek Sept. 6, 2021, 10:54 a.m. UTC
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(-)

Comments

Ondrej Mosnacek Sept. 11, 2021, 6:34 p.m. UTC | #1
On Mon, Sep 6, 2021 at 12:54 PM Ondrej Mosnacek <omosnace@redhat.com> wrote:
> 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
>

Both patches are now applied.
diff mbox series

Patch

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