lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20100428060837.GB4516@riccoc20.at.omicron.at>
Date:	Wed, 28 Apr 2010 08:08:37 +0200
From:	Richard Cochran <richardcochran@...il.com>
To:	Randy Dunlap <randy.dunlap@...cle.com>
Cc:	netdev@...r.kernel.org
Subject: Re: [PATCH 1/3] ptp: Added a brand new class driver for ptp clocks.

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?

Thanks,
Richard
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ