[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CALxhOnh3RQNw7zArOpsBqOi82_JpTP1pG9tDmrp1PyRER8eGzg@mail.gmail.com>
Date: Tue, 6 Nov 2018 09:51:11 +0530
From: Firoz Khan <firoz.khan@...aro.org>
To: Max Filippov <jcmvbkbc@...il.com>
Cc: Chris Zankel <chris@...kel.net>, linux-xtensa@...ux-xtensa.org,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Philippe Ombredanne <pombredanne@...b.com>,
Thomas Gleixner <tglx@...utronix.de>,
Kate Stewart <kstewart@...uxfoundation.org>,
y2038 Mailman List <y2038@...ts.linaro.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Linux-Arch <linux-arch@...r.kernel.org>,
Arnd Bergmann <arnd@...db.de>,
Deepa Dinamani <deepa.kernel@...il.com>,
Marcin Juszkiewicz <marcin.juszkiewicz@...aro.org>
Subject: Re: [PATCH v1 4/4] xtensa: generate uapi header and syscall table
header files
Hi Max,
On Tue, 6 Nov 2018 at 03:14, Max Filippov <jcmvbkbc@...il.com> wrote:
>
> On Thu, Nov 1, 2018 at 6:57 AM Firoz Khan <firoz.khan@...aro.org> wrote:
> >
> > System call table generation script must be run to gener-
> > ate unistd_32.h and syscall_table.h files. This patch will
> > have changes which will invokes the script.
> >
> > This patch will generate unistd_32.h and syscall_table.h
> > files by the syscall table generation script invoked by
> > xtensa/Makefile and the generated files against the removed
> > files must be identical.
> >
> > The generated uapi header file will be included in uapi/-
> > asm/unistd.h and generated system call table header file
> > will be included by kernel/syscall.c file.
> >
> > Signed-off-by: Firoz Khan <firoz.khan@...aro.org>
> > ---
> > arch/xtensa/Makefile | 3 +
> > arch/xtensa/include/asm/Kbuild | 1 +
> > arch/xtensa/include/uapi/asm/Kbuild | 1 +
> > arch/xtensa/include/uapi/asm/unistd.h | 782 +---------------------------------
> > arch/xtensa/kernel/syscall.c | 5 +-
> > 5 files changed, 10 insertions(+), 782 deletions(-)
> >
> > diff --git a/arch/xtensa/Makefile b/arch/xtensa/Makefile
> > index d67e30fa..1e7b179 100644
> > --- a/arch/xtensa/Makefile
> > +++ b/arch/xtensa/Makefile
> > @@ -99,6 +99,9 @@ all Image zImage uImage: vmlinux
> > dtbs: scripts
> > $(Q)$(MAKE) $(build)=$(boot)/dts
> >
> > +archheaders:
> > + $(Q)$(MAKE) $(build)=arch/xtensa/kernel/syscalls all
> > +
> > define archhelp
> > @echo '* Image - Kernel ELF image with reset vector'
> > @echo '* zImage - Compressed kernel image (arch/xtensa/boot/images/zImage.*)'
> > diff --git a/arch/xtensa/include/asm/Kbuild b/arch/xtensa/include/asm/Kbuild
> > index 82c75643..b35d2e6 100644
> > --- a/arch/xtensa/include/asm/Kbuild
> > +++ b/arch/xtensa/include/asm/Kbuild
> > @@ -28,3 +28,4 @@ generic-y += topology.h
> > generic-y += trace_clock.h
> > generic-y += word-at-a-time.h
> > generic-y += xor.h
> > +generic-y += syscall_table.h
>
> This doesn't look right: syscall_table.h is not asm-generic header.
If I remove Kbuild entries, the generated file get removed in build time.
SYSTBL arch/xtensa/include/generated/asm/syscall_table.h
SYSHDR arch/xtensa/include/generated/uapi/asm/unistd_32.h
REMOVE arch/xtensa/include/generated/uapi/asm/unistd_32.h
REMOVE arch/xtensa/include/generated/asm/syscall_table.h
Firoz
>
> > diff --git a/arch/xtensa/include/uapi/asm/Kbuild b/arch/xtensa/include/uapi/asm/Kbuild
> > index 837d4dd..f826d52 100644
> > --- a/arch/xtensa/include/uapi/asm/Kbuild
> > +++ b/arch/xtensa/include/uapi/asm/Kbuild
> > @@ -11,3 +11,4 @@ generic-y += resource.h
> > generic-y += siginfo.h
> > generic-y += statfs.h
> > generic-y += termios.h
> > +generic-y += unistd_32.h
>
> Ditto: unistd32_.h is not asm-generic header.
>
> --
> Thanks.
> -- Max
Powered by blists - more mailing lists