From: Richard Weinberger <richard@sigma-star.at>
To: Richard Weinberger <richard@nod.at>,
xenomai@lists.linux.dev, upstream@sigma-star.at
Cc: upstream+xenomai@sigma-star.at, Jan Kiszka <jan.kiszka@siemens.com>
Subject: Re: [PATCH] kernel: Clean up generated syscall_entries.h file
Date: Thu, 27 Jun 2024 09:25:05 +0200 [thread overview]
Message-ID: <4209190.8TcEBkooeH@somecomputer> (raw)
In-Reply-To: <77eb1c15-be5d-4f99-b023-844a679699cc@siemens.com>
Am Donnerstag, 27. Juni 2024, 08:29:46 CEST schrieb 'Jan Kiszka' via upstream:
> > @@ -31,7 +31,7 @@ quiet_cmd_syscall_entries = GEN $@
> > $(obj)/syscall_entries.h: $(syscall_entries) $(wildcard $(srctree)/$(src)/*.c) FORCE
> > $(call if_changed,syscall_entries)
> >
> > -target += syscall_entries.h
> > +clean-files += syscall_entries.h
>
> target is generally needed to prevent re-executing the build although
> that target file is already present and recent. Did you check that a
> second build will not have this problem after that change?
I thought you want re-executing because of the "FORCE" property.
Why is FORCE needed then?
Why doesn't the "default" maineline work?
e.g. something like that:
diff --git a/kernel/cobalt/posix/Makefile b/kernel/cobalt/posix/Makefile
index 5b4f3214a..e57628cf1 100644
--- a/kernel/cobalt/posix/Makefile
+++ b/kernel/cobalt/posix/Makefile
@@ -26,13 +26,13 @@ xenomai-y := \
syscall_entries := $(srctree)/$(src)/gen-syscall-entries.sh
quiet_cmd_syscall_entries = GEN $@
- cmd_syscall_entries = $(CONFIG_SHELL) '$(syscall_entries)' $(filter-out FORCE,$^) > $@
+ cmd_syscall_entries = $^ > $@
-$(obj)/syscall_entries.h: $(syscall_entries) $(wildcard $(srctree)/$(src)/*.c) FORCE
- $(call if_changed,syscall_entries)
-
-target += syscall_entries.h
+$(obj)/syscall_entries.h: $(syscall_entries) $(wildcard $(srctree)/$(src)/*.c)
+ $(call cmd,syscall_entries)
$(obj)/syscall.o: $(obj)/syscall_entries.h
+clean-files += syscall_entries.h
+
xenomai-$(CONFIG_XENO_ARCH_SYS3264) += compat.o syscall32.o
LG,
//richard
--
sigma star gmbh | Eduard-Bodem-Gasse 6, 6020 Innsbruck, AUT
UID/VAT Nr: ATU 66964118 | FN: 374287y
next prev parent reply other threads:[~2024-06-27 7:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-26 19:26 [PATCH] kernel: Clean up generated syscall_entries.h file Richard Weinberger
2024-06-27 6:29 ` Jan Kiszka
2024-06-27 7:25 ` Richard Weinberger [this message]
2024-06-27 7:36 ` Jan Kiszka
2024-06-27 8:20 ` Richard Weinberger
2024-06-27 11:31 ` Jan Kiszka
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=4209190.8TcEBkooeH@somecomputer \
--to=richard@sigma-star.at \
--cc=jan.kiszka@siemens.com \
--cc=richard@nod.at \
--cc=upstream+xenomai@sigma-star.at \
--cc=upstream@sigma-star.at \
--cc=xenomai@lists.linux.dev \
/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.