From: Tomek The Messenger <tomekthemessenger@gmail.com>
To: kernelnewbies@kernelnewbies.org
Subject: the same name of external kernel module as one of source file
Date: Tue, 5 May 2020 15:39:11 +0200 [thread overview]
Message-ID: <CAA4NGyuLwzMZcqNmeM7_OA=8ZLO92H1w5hcE4rQEgN3EV-zRMw@mail.gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 550 bytes --]
Hi
If I have something like this in makefile:
obj-m := reset-core.o
reset-core-y := reset-core-main.o reset-core-utils.o
then module is built OK.
If I have something like that:
obj-m := reset-core.o
reset-core-y := reset-core.o reset-core-utils.o
then it is wrongly built.
So I will replace all source file characters '-' to '_' and I will have:
obj-m := reset-core.o
reset-core-y := reset_core.o reset_core_utils.o
and everything will be OK, but it is a bit frustrating that code rules me
instead of me rules code. Maybe there is another solution?
[-- Attachment #1.2: Type: text/html, Size: 725 bytes --]
[-- Attachment #2: Type: text/plain, Size: 170 bytes --]
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
next reply other threads:[~2020-05-05 13:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-05 13:39 Tomek The Messenger [this message]
2020-05-05 13:47 ` the same name of external kernel module as one of source file Greg KH
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='CAA4NGyuLwzMZcqNmeM7_OA=8ZLO92H1w5hcE4rQEgN3EV-zRMw@mail.gmail.com' \
--to=tomekthemessenger@gmail.com \
--cc=kernelnewbies@kernelnewbies.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;
as well as URLs for NNTP newsgroup(s).