From: Christoph Hellwig <hch@lst.de>
To: linux-kbuild@vger.kernel.org
Subject: building individual files in subdirectories
Date: Tue, 28 May 2019 14:11:48 +0200 [thread overview]
Message-ID: <20190528121148.GA18162@lst.de> (raw)
A few kernel modules have source files in multiple subdirectories.
Trying to build just a single object of a source file in such a
subdirectory currently doesn't work.
For example:
hch@brick:~/work/xfs$ make fs/xfs/libxfs/xfs_alloc.o
CALL scripts/checksyscalls.sh
CALL scripts/atomic/check-atomics.sh
DESCEND objtool
scripts/Makefile.build:42: fs/xfs/libxfs/Makefile: No such file or directory
make[1]: *** No rule to make target 'fs/xfs/libxfs/Makefile'. Stop.
make: *** [Makefile:1747: fs/xfs/libxfs/xfs_alloc.o] Error 2
Is there any reasonably easy way to get this to work?
next reply other threads:[~2019-05-28 12:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-28 12:11 Christoph Hellwig [this message]
2019-05-29 1:12 ` building individual files in subdirectories Masahiro Yamada
2019-11-18 0:15 ` Masahiro Yamada
2019-11-18 2:30 ` Jens Axboe
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=20190528121148.GA18162@lst.de \
--to=hch@lst.de \
--cc=linux-kbuild@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox