netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Randy Dunlap <randy.dunlap@oracle.com>
To: Richard Cochran <richardcochran@gmail.com>
Cc: netdev@vger.kernel.org
Subject: Re: [PATCH 1/3] ptp: Added a brand new class driver for ptp clocks.
Date: Wed, 28 Apr 2010 08:45:37 -0700	[thread overview]
Message-ID: <4BD85821.4070904@oracle.com> (raw)
In-Reply-To: <20100428060837.GB4516@riccoc20.at.omicron.at>

On 04/27/10 23:08, Richard Cochran wrote:
> On Tue, Apr 27, 2010 at 03:32:39PM -0700, Randy Dunlap wrote:
>> How do I use the testptp.mk file?
> 
> The makefile uses the KBUILD_OUTPUT environment variable to find the
> kernel includes, with the new header. I do something like this:
> 
>   export ARCH=powerpc
>   export KBUILD_OUTPUT=~/work/kernel/ptp_p2020
>   mkdir -p $KBUILD_OUTPUT
>   make mpc85xx_smp_defconfig
>   make menuconfig
>   make -j3 uImage
>   make headers_install
>   make -C Documentation/ptp -f testptp.mk
> 
>> Drop the ".ko".  We normally don't include that part of the module name.
> 
> Okay, can do. I just imitated what I saw in other Kbuild files.
> 
>>> diff --git a/include/linux/Kbuild b/include/linux/Kbuild
>>> index 2fc8e14..2d616cb 100644
>>> --- a/include/linux/Kbuild
>>> +++ b/include/linux/Kbuild
>>> @@ -318,6 +318,7 @@ unifdef-y += poll.h
>>>  unifdef-y += ppp_defs.h
>>>  unifdef-y += ppp-comp.h
>>>  unifdef-y += pps.h
>>> +unifdef-y += ptp_clock.h
>>>  unifdef-y += ptrace.h
>>>  unifdef-y += quota.h
>>>  unifdef-y += random.h
>>
>> I think that the Kbuild file also needs this line:
>> header-y += ptp_clock.h
>>
>> so that builds that use O=objdir will work, but even with that
>> change, I couldn't get it to work.  (?)
> 
> Well, I am not sure what to do here. I followed the example of the PPS
> code. That code only has the unifdef-y assigment. But now I see that
> Documentation/kbuild/makefiles.txt says unifdef-y is deprecated.
> 
> Can someone clarify what is correct: is just header-y enough?

Yes, it should be.

-- 
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***

  reply	other threads:[~2010-04-28 15:45 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-27  9:14 [PATCH 1/3] ptp: Added a brand new class driver for ptp clocks Richard Cochran
2010-04-27 20:07 ` David Miller
2010-04-27 22:32 ` Randy Dunlap
2010-04-28  6:08   ` Richard Cochran
2010-04-28 15:45     ` Randy Dunlap [this message]
  -- strict thread matches above, loose matches on Subject: below --
2010-04-29  9:19 Richard Cochran
2010-04-30 17:58 ` Wolfgang Grandegger
2010-05-01 14:08   ` Richard Cochran
2010-05-01 14:09     ` Wolfgang Grandegger
2010-05-02 10:50 ` Wolfgang Grandegger
2010-05-03 10:07   ` Richard Cochran
2010-05-04  7:57     ` Wolfgang Grandegger

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=4BD85821.4070904@oracle.com \
    --to=randy.dunlap@oracle.com \
    --cc=netdev@vger.kernel.org \
    --cc=richardcochran@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 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).