From owner-freebsd-arch@FreeBSD.ORG Wed Jan 21 23:25:22 2015 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7CE6457B for ; Wed, 21 Jan 2015 23:25:22 +0000 (UTC) Received: from mail-pd0-f171.google.com (mail-pd0-f171.google.com [209.85.192.171]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4E68EE98 for ; Wed, 21 Jan 2015 23:25:21 +0000 (UTC) Received: by mail-pd0-f171.google.com with SMTP id fp1so31225556pdb.2 for ; Wed, 21 Jan 2015 15:25:21 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:content-type:mime-version:subject:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=zFxEy8ZmmcBnxPTq0j36rQjnakq3gklzwRzAUV12Vzk=; b=Vd95oBt1aOUttHhtDlR0J5JigqW0QqpL8BgjIYMIhN9IfEW4JDCo5HpeuNa35dmdhg Ei6N4pCvC2qzwgyc1/H1jCzGPvTDuOJtgQskJgsKbvdNfcHcu3g68AYYm1NT0mWhjH27 xuE9WyvWr49Bhcad0OJRwrnuG0grAp23kZU53VIb3ltPJSVw9/mq1VtwzmEbUXKfNhDD BSR6s0qi+WQMemUmlH3qAthhMc+EjW1hIDrEodUDkI872xHgyQbVMD3xJM8sNgycnn40 W4l8OVtss8jlDG1tBVvrD+mZ4D25aaOzkP1Tkd5ey26kuXoYuhQN2PLr3IrAsjcSjDyg BedA== X-Gm-Message-State: ALoCoQnMikE7FhEG8VTe8iv8Ynz5en4K84XipwuC0208THLDdVUYzzOJQNtul9x+lokNJk1Zu8KN X-Received: by 10.70.133.98 with SMTP id pb2mr65321464pdb.137.1421882721201; Wed, 21 Jan 2015 15:25:21 -0800 (PST) Received: from bsdimp.corp.netflix.com ([69.53.237.72]) by mx.google.com with ESMTPSA id nh4sm4101378pdb.37.2015.01.21.15.25.20 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 21 Jan 2015 15:25:20 -0800 (PST) Sender: Warner Losh Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) Subject: opt file processing From: Warner Losh In-Reply-To: <20150121221520.GY1949@funkthat.com> Date: Wed, 21 Jan 2015 16:25:19 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <672A7C0E-D710-4BB6-999E-C62D8698B442@bsdimp.com> References: <201501150042.t0F0g7Um018059@svn.freebsd.org> <20150115132303.GA245@zxy.spb.ru> <368B22F3-5607-46F8-B8D2-13CA59E94861@bsdimp.com> <20150121221520.GY1949@funkthat.com> To: John-Mark Gurney X-Mailer: Apple Mail (2.1993) Cc: "freebsd-arch@freebsd.org" X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jan 2015 23:25:22 -0000 [[ Moved to arch@ ]] > On Jan 21, 2015, at 3:15 PM, John-Mark Gurney = wrote: >=20 > Adrian Chadd wrote this message on Fri, Jan 16, 2015 at 10:43 -0800: >> When I've done what you're doing, I end up having these options in my >> minimal config file so opt_xxx.h is correctly populated. That way = when >> I point SYSDIR (or whichever variable it is) at the configured kernel >> directory with the opt_xxx.h files, it all works out correctly. >>=20 >> (I still think we shouldn't be relying on "defaults", but should ship >> the opt_xxx.h files or something to derive the opt_xxx.h and makefile >> config bits so things like external module building is possible >> against a kernel. Or, we just kill all module options that change >> behaviour/ABI of things in an incompatible way.) >=20 > I have the commands that are able to stash the opt files in a kernel > section, and then be able to extract them again so that when you build > a kernel module it will use the correct options to match the kernel.. >=20 > This is most useful for things like PAE which have a big impact... I have patches in review that I need to revise that allow the modules=E2=80= =99 Makefiles to know all the opts and select to include or exclude files based on that. Warner