From owner-freebsd-hackers@FreeBSD.ORG Sun Jan 12 08:35:19 2014 Return-Path: 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 B4687F74 for ; Sun, 12 Jan 2014 08:35:19 +0000 (UTC) Received: from nm42-vm2.bullet.mail.bf1.yahoo.com (nm42-vm2.bullet.mail.bf1.yahoo.com [216.109.114.189]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 2EEC31FB8 for ; Sun, 12 Jan 2014 08:35:18 +0000 (UTC) Received: from [98.139.212.153] by nm42.bullet.mail.bf1.yahoo.com with NNFMP; 12 Jan 2014 08:32:25 -0000 Received: from [98.139.212.194] by tm10.bullet.mail.bf1.yahoo.com with NNFMP; 12 Jan 2014 08:32:25 -0000 Received: from [127.0.0.1] by omp1003.mail.bf1.yahoo.com with NNFMP; 12 Jan 2014 08:32:25 -0000 X-Yahoo-Newman-Property: ymail-5 X-Yahoo-Newman-Id: 892223.74519.bm@omp1003.mail.bf1.yahoo.com Received: (qmail 84792 invoked by uid 60001); 12 Jan 2014 08:32:25 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1389515545; bh=1pZ0oCyIommyZssfyUGXLIlT3UUtNuUvPGlyu/KoeV4=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=lV6j5Rab59DWfNez+Yy1DF+kF+GBsIXemfU3l9mu0upDg34Hbwt+vK4fGk8+Fn3j2Bo08PARxN1M66aJ9OP7ZI7i7bJrTMyQ0IBs7NencWH3fw2jomKpCNLQpcRwYRknSrhCqSYajFGV2DX2XFcQHhEuT3BzO8vr4XRtN3VMWIc= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=mCX+pUqreBMWQGHf4FSvqmG/sJZxwVr50vXQejZJRqByNFKb4JXncOaLOjtCIprL4XXr1zQ2DYHNDVB3UUnAHWbWO3Vm/ZgRnWkYQNtpZJap5oL8MA5yhydpOCUavA/rcFpgheRQM3wSq6zy+GgqFR0ALZh9rs7WelzcpeolL7A=; X-YMail-OSG: wQzwWtUVM1mRcSeZPHuABRJKRt5vLnTISIYJTPDptPiOQgt KZn9EPlcPJt3T7Y7CZPThEUpLslNBAk7WwaSZBCcwncy025CXpLJ9FCDc8hQ BPCzIswqxlLBi.ZePin1_gT2aIB1aMolmbW2T79.8pWvCejBYSPH4oiq9oV8 dQko7iew.BCPeQ54UwTVpQtPviVaPrTYliZTAnCyUGHLCfm_T040mw8sheyh 6jmuwJgoADE3_f5yBq1VxffFzPBuGDhN.IIIvfdt_Bk3LfIg__d0gNILYkMf 88arUVxdzs6M3z4MwkfL210Ern74fF0Wb0xnNwrD4Yh1O4ZccoC67Ebp2Dcw lBIYF1VBUMeneIEd.S3YJ7tfNr.8RJiu4PyyqWqWhAmR8BRLP2tKjd67qLEo X38Hdub7WsH.vh9m3j9gDVzA2QZ2n35Lsh.COe7VGw5izuPxW7xkrsNOkQ9f 9rer8PXpZLob6pp0kokT6y6cwouhT2p3IySlvaAlZ0sXF2TKzecLt4PG9fOR 40eaHiE_hKPWJYCEv5NMhy6Fm Received: from [89.165.120.140] by web162704.mail.bf1.yahoo.com via HTTP; Sun, 12 Jan 2014 00:32:25 PST X-Rocket-MIMEInfo: 002.001, SGkgbGlzdApBbnkgZXhwZXJpZW5jZXMgb24gaG93IHRvIGRvIHNvPyBQbGVhc2UgdGVsbCBtZSBpZiB5b3Uga25vdyBob3cgY2FuIEkgZG8gdGhhdD8KClRoYW5rcyBpbiBhZHZhbmNlATABAQEB X-Mailer: YahooMailWebService/0.8.172.614 Message-ID: <1389515545.51283.YahooMailNeo@web162704.mail.bf1.yahoo.com> Date: Sun, 12 Jan 2014 00:32:25 -0800 (PST) From: Nomad Esst Subject: Access pci devices' serial numbers programmatically To: "freebsd-drivers@freebsd.org" , "freebsd-hackers@freebsd.org" MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Content-Filtered-By: Mailman/MimeDel 2.1.17 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Nomad Esst List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Jan 2014 08:35:19 -0000 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: 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 ; 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 ; Sun, 12 Jan 2014 10:26:14 +0000 (UTC) Received: by mail-la0-f53.google.com with SMTP id e16so1593456lan.40 for ; 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 Date: Sun, 12 Jan 2014 11:25:46 +0100 Message-ID: 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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