Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Jan 2014 00:32:25 -0800 (PST)
From:      Nomad Esst <noname.esst@yahoo.com>
To:        "freebsd-drivers@freebsd.org" <freebsd-drivers@freebsd.org>, "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org>
Subject:   Access pci devices' serial numbers programmatically
Message-ID:  <1389515545.51283.YahooMailNeo@web162704.mail.bf1.yahoo.com>

next in thread | raw e-mail | index | archive | help
Hi list
Any experiences on how to do so? Please tell me if you know how can I do that?

Thanks in advance
From owner-freebsd-hackers@FreeBSD.ORG  Sun Jan 12 10:26:15 2014
Return-Path: <owner-freebsd-hackers@FreeBSD.ORG>
Delivered-To: freebsd-hackers@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by hub.freebsd.org (Postfix) with ESMTPS id 83FD5F18
 for <freebsd-hackers@freebsd.org>; Sun, 12 Jan 2014 10:26:15 +0000 (UTC)
Received: from mail-la0-f53.google.com (mail-la0-f53.google.com
 [209.85.215.53])
 (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits))
 (No client certificate requested)
 by mx1.freebsd.org (Postfix) with ESMTPS id 1020C1605
 for <freebsd-hackers@freebsd.org>; Sun, 12 Jan 2014 10:26:14 +0000 (UTC)
Received: by mail-la0-f53.google.com with SMTP id e16so1593456lan.40
 for <freebsd-hackers@freebsd.org>; Sun, 12 Jan 2014 02:26:07 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:mime-version:from:date:message-id:subject:to
 :content-type;
 bh=8St4lGhoi1CI2flLivtyVm1fNiieQPIkm31q9pCY8fE=;
 b=EdTYQ5N/9oPgFlKnU1z7UpT/ZSdCyIyJBcZVvDgNOVOAmZMoqoGPeXbHubNkXvIfG4
 I+olcFpE1811ycryNRfcSAUqXIPEEZmcV09XyrdCsNaRi3eMCrLEZRwv7+76uafiMP5L
 FoVUNE3WbcyU0wYOTpOmADuaMzK09lIui+PBsmCkc5jea2BvPjBbZF8lfhHLVbwCE2QI
 +7WpKOK2Zu2pSaU6b9wPc0pRpeMo6zIXQwWJRQzJIc0fPJmIWGDfydEoYE+JzVken+Ul
 ez+E/1puH/KRJVoO4jdgkJqTLZT237a3YZgOuReF0JVrL4X7+ngPlRGjVQ7DDe+hyi3y
 Zriw==
X-Gm-Message-State: ALoCoQlbvyJxhGQbcuOCqj8EtZmrE9374qO/6+a9qjCs5H/xt39JS7mKylbaQcGBCN4xItTNGQBt
X-Received: by 10.112.14.34 with SMTP id m2mr7394216lbc.13.1389522366984; Sun,
 12 Jan 2014 02:26:06 -0800 (PST)
MIME-Version: 1.0
Received: by 10.112.129.101 with HTTP; Sun, 12 Jan 2014 02:25:46 -0800 (PST)
X-Originating-IP: [62.57.0.127]
From: Julio Merino <julio@meroh.net>
Date: Sun, 12 Jan 2014 11:25:46 +0100
Message-ID: <CADyfeQUCzMjh+iRLP3n0vtRgYZZ45Z1H3nj-UKgYyAybxTi0_g@mail.gmail.com>
Subject: Where to put common Makefile code
To: freebsd-hackers@freebsd.org
Content-Type: text/plain; charset=ISO-8859-1
X-BeenThere: freebsd-hackers@freebsd.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: Technical Discussions relating to FreeBSD
 <freebsd-hackers.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-hackers>, 
 <mailto:freebsd-hackers-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-hackers/>;
List-Post: <mailto:freebsd-hackers@freebsd.org>
List-Help: <mailto:freebsd-hackers-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-hackers>,
 <mailto:freebsd-hackers-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Sun, 12 Jan 2014 10:26:15 -0000

Hello,

I have some common Makefile boilerplate code for both lib/atf/ and
usr.bin/atf/ that I'm unsure about where to best put it.

The code in question is the definition of a set of useful variables
and target rules that can be depended on where necessary to, e.g.
obtain atf's version number from the files in contrib/atf/

The fragment is not "long enough" to be a big deal if it were
duplicated in 3 different Makefiles, but obviously I'd prefer to avoid
the copy/paste.

So where would you put this?

An option that comes to mind is to add a Makefile.inc file to
contrib/atf/ that I can explicitly include.  But I'm not sure if that
makes sense because this file wouldn't come from the vendor branch.

Another option is to just stick the code in the existing
lib/atf/Makefile.inc (the "lowermost component in the dependency
chain" for atf) and just include that file from
usr.bin/atf/Makefile.inc .

Thoughts?

Thanks,

-- 
Julio Merino / @jmmv



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1389515545.51283.YahooMailNeo>