From: Petr Vorel <pvorel@suse.cz>
To: Li Wang <wangli.ahau@gmail.com>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH] include/lapi: add leaf Makefile
Date: Thu, 16 Apr 2026 20:05:59 +0200 [thread overview]
Message-ID: <20260416180559.GA303991@pevik> (raw)
In-Reply-To: <CANgNiRztOnor2mgLyfGxiCE01qyBwcsnZcrv1ZUi14KeFzctQw@mail.gmail.com>
Hi Li,
[ Cc Cyril if he wants to add his 2 cents ]
> On Tue, Apr 14, 2026 at 5:20 AM Petr Vorel <pvorel@suse.cz> wrote:
> > Hi Jinseok,
> > Thanks for fixing this!
> > > Fixes : https://github.com/linux-test-project/ltp/issues/1262
> > nit: Please next time avoid space before ':'.
> > Fixes: https://github.com/linux-test-project/ltp/issues/1262
> > > include/lapi and include/lapi/syscalls lack Makefiles, so 'make check'
> > > does not work in these directories. Add minimal leaf Makefiles.
> > nit: Also it'd go here.
> > > Signed-off-by: Jinseok Kim <always.starving0@gmail.com>
> > > ---
> > > include/lapi/Makefile | 8 ++++++++
> > > include/lapi/syscalls/Makefile | 8 ++++++++
> > > 2 files changed, 16 insertions(+)
> > > create mode 100644 include/lapi/Makefile
> > > create mode 100644 include/lapi/syscalls/Makefile
> > > diff --git a/include/lapi/Makefile b/include/lapi/Makefile
> > > new file mode 100644
> > > index 000000000..83ef85c77
> > > --- /dev/null
> > > +++ b/include/lapi/Makefile
> > > @@ -0,0 +1,8 @@
> > > +# SPDX-License-Identifier: GPL-2.0-or-later
> > > +# Copyright (C) 2026 Jinseok Kim <always.starving0@gmail.com>
> > > +
> > > +top_srcdir ?= ../../
> > > +
> > > +include $(top_srcdir)/include/mk/env_pre.mk
> > > +
> > > +include $(top_srcdir)/include/mk/generic_leaf_target.mk
> > > diff --git a/include/lapi/syscalls/Makefile b/include/lapi/syscalls/Makefile
> > > new file mode 100644
> > > index 000000000..e46c90ef5
> > > --- /dev/null
> > > +++ b/include/lapi/syscalls/Makefile
> > > @@ -0,0 +1,8 @@
> > > +# SPDX-License-Identifier: GPL-2.0-or-later
> > > +# Copyright (C) 2026 Jinseok Kim <always.starving0@gmail.com>
> > > +
> > > +top_srcdir ?= ../../../
> > > +
> > > +include $(top_srcdir)/include/mk/env_pre.mk
> > > +
> > > +include $(top_srcdir)/include/mk/generic_leaf_target.mk
> > Why do we need this file? This one should be deleted. Also, because make install
> > works for include directory, it should work here as well.
> > I would just copy that header, update top_srcdir location and also include
> > generic_trunk_target.mk to include/Makefile.
> > I think this is a better version.
> Yes, this solution looks smarter, but tiny queries below.
> > ...
> > include $(top_srcdir)/include/mk/env_pre.mk
> > +INSTALL_DIR := $(includedir)/lapi
> I'm doubting should we install the include/lapi/ local header files to
> the /opt/ltp/include?
Do you question *whether* install lapi/*.h or *where* to install them?
We install include/*.h files. What is a difference with include/lapi/?
I'd say either install both or none. I would prefer to not install any,
LTP library is not separated anyway (there is an old Andrea's effort, but that
uses meson anyway). Installation was added in 2008 and I doubt anybody is using
it.
> > ...
> > --- include/lapi/syscalls/Makefile
> > +++ /dev/null
> Does the `make check` still work (inside include/lapi/syscalls/)
> without this Makefile?
Sure not. Do we really want to check generate_arch.sh and generate_syscalls.sh
in arch? If yes, sure it needs to be added, but that was not my intention when
creating #1262. I really wanted to check C (and shell) library and tests code.
Kind regards,
Petr
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2026-04-16 18:06 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-10 17:50 [LTP] [PATCH] include/lapi: add leaf Makefile Jinseok Kim
2026-04-13 9:04 ` Li Wang
2026-04-13 21:20 ` Petr Vorel
2026-04-14 7:55 ` Li Wang
2026-04-16 14:46 ` Jinseok Kim
2026-04-16 18:11 ` Petr Vorel
2026-04-16 18:05 ` Petr Vorel [this message]
2026-04-16 23:24 ` Li Wang
2026-04-17 0:11 ` Li Wang
2026-04-17 11:41 ` Petr Vorel
2026-04-17 11:34 ` Petr Vorel
2026-04-21 16:08 ` [LTP] [PATCH v2] " Jinseok Kim
2026-04-21 17:05 ` [LTP] " linuxtestproject.agent
2026-04-22 5:18 ` [LTP] [PATCH v2] " Petr Vorel
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=20260416180559.GA303991@pevik \
--to=pvorel@suse.cz \
--cc=ltp@lists.linux.it \
--cc=wangli.ahau@gmail.com \
/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.