All of lore.kernel.org
 help / color / mirror / Atom feed
From: wkevils@gmail.com (Kevin Wilson)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Makefile for a single source file
Date: Sat, 13 Sep 2014 17:38:54 +0300	[thread overview]
Message-ID: <CAGXs5wVsf+v-MC2RtavA8RPJD=UpmizBruQrem2G3Ej=2PPPVg@mail.gmail.com> (raw)
In-Reply-To: <CAAXLKtSLbOnhzpv8jJfyjqW8RRRDyVoLgvhntuDCtwJu1oUDLw@mail.gmail.com>

Hi,
No.
This is a newbie question, and I believe this is the right mailing
list to get help.

Regards,
Kevin

On Sat, Sep 13, 2014 at 5:36 PM, Kristofer Hallin
<kristofer.hallin@gmail.com> wrote:
> Is this part of the Eudyptula Challenge?
>
> On 13 Sep 2014 16:35, "Kevin Wilson" <wkevils@gmail.com> wrote:
>>
>> Hi,
>> I have a single source file which I wrote, implementing a kernel
>> module: helloworld.c
>>
>> In order to built it, I prepared the following Makefile:
>>
>> obj-m += helloworld.o
>>
>> all:
>>      make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
>>
>> clean:
>>      make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
>>
>>
>>
>> Is it ok ? or should the obj-m parameter be *different* than the the
>> source file (without the *.o suffix)
>> (something like obj-m += hello.o ?)
>>
>> Regards,
>> Kevin
>>
>> _______________________________________________
>> Kernelnewbies mailing list
>> Kernelnewbies at kernelnewbies.org
>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

  reply	other threads:[~2014-09-13 14:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-13 14:34 Makefile for a single source file Kevin Wilson
2014-09-13 14:36 ` Kristofer Hallin
2014-09-13 14:38   ` Kevin Wilson [this message]
2014-09-13 15:13 ` Greg KH
2014-09-13 15:13 ` Bruno Guedes Souto

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='CAGXs5wVsf+v-MC2RtavA8RPJD=UpmizBruQrem2G3Ej=2PPPVg@mail.gmail.com' \
    --to=wkevils@gmail.com \
    --cc=kernelnewbies@lists.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 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.