public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] linux-module: Override dh_auto_clean
@ 2021-09-16 10:23 Jan Kiszka
  2021-10-07  6:54 ` Anton Mikanovich
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Kiszka @ 2021-09-16 10:23 UTC (permalink / raw)
  To: isar-users

From: Jan Kiszka <jan.kiszka@siemens.com>

This avoids that fancy out-of-tree makefiles try their own cleaning
thing and fail in the build environment Debian provides. E.g.
https://github.com/google/gasket-driver/commit/b0049c17dc39e2511c6cc2f023751b709d66a6d4

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 meta/recipes-kernel/linux-module/files/debian/rules | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/recipes-kernel/linux-module/files/debian/rules b/meta/recipes-kernel/linux-module/files/debian/rules
index c476bf3..59720b3 100755
--- a/meta/recipes-kernel/linux-module/files/debian/rules
+++ b/meta/recipes-kernel/linux-module/files/debian/rules
@@ -24,6 +24,9 @@ ifneq (,$(findstring 86,$(DEB_HOST_GNU_CPU)))
 export ARCH=x86
 endif
 
+override_dh_auto_clean:
+	$(MAKE) -C $(KDIR) M=$(PWD) clean
+
 override_dh_auto_build:
 	$(MAKE) -C $(KDIR) M=$(PWD) modules
 
-- 
2.31.1

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-10-07  6:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-16 10:23 [PATCH] linux-module: Override dh_auto_clean Jan Kiszka
2021-10-07  6:54 ` Anton Mikanovich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox