From owner-freebsd-current@freebsd.org Tue Aug 13 22:35:34 2019 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 69480BF8C0 for ; Tue, 13 Aug 2019 22:35:34 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 467SGY73V8z4WJj for ; Tue, 13 Aug 2019 22:35:33 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: by mailman.nyi.freebsd.org (Postfix) id F081EBF8BC; Tue, 13 Aug 2019 22:35:33 +0000 (UTC) Delivered-To: current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id EF181BF8BA; Tue, 13 Aug 2019 22:35:33 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: from mail-ot1-f41.google.com (mail-ot1-f41.google.com [209.85.210.41]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 467SGY5mkqz4WJh; Tue, 13 Aug 2019 22:35:33 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: by mail-ot1-f41.google.com with SMTP id k18so45769275otr.3; Tue, 13 Aug 2019 15:35:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to:cc; bh=PxIY+qTSX+giCGO8xjpDCv0tnL1S0tTkUQ9UCS4XWtE=; b=Bqa9cbgEPArAvEIp517yqHcPXfJloBnUsfw2mkjZF9bdjmt9Ma8KrV0greBeH7iO+c v3kIz8eQkFrjRlh3RifkR6vn1CryrjfmmEn4c99Xqf+8aEE2uQXvz5ZSS13M1NDatMvv jSwx86uncAipWC3Tv0Y7BkmKg5I0CDfHY8xDqjT/DrVPZLaQEIf97/vmcM/EpvM8A51d 1cn8wzDPOPyfq141WwAQ7pXxWUJDAhqAEqsu10kOAVZRKE2R+q/ZtU78RjEIDF58k/Vd bxRBh/5o4O1GZyCnteIsu1PlKDHBE1ehEIMree6l0+tVrfpmnI+xy9yKXKZ2bpuLF5YA dRZw== X-Gm-Message-State: APjAAAV9uznS0Wq6u5C8U/XdDZmCyjXpbzEpxt7cYCAQNnBAijVo9hXX dGHwXQf0dIAZgwqyh4BPUxnV3BsP X-Google-Smtp-Source: APXvYqzY6S0SXiSeaf8surV/jyYZ6YzwO4h7SlT59N46JN6ghG0vvmmDFB7YAOWjLbHpJZt0Kl9bjg== X-Received: by 2002:a9d:6508:: with SMTP id i8mr31291956otl.355.1565735731851; Tue, 13 Aug 2019 15:35:31 -0700 (PDT) Received: from mail-ot1-f54.google.com (mail-ot1-f54.google.com. [209.85.210.54]) by smtp.gmail.com with ESMTPSA id k25sm4535783oig.50.2019.08.13.15.35.31 (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Tue, 13 Aug 2019 15:35:31 -0700 (PDT) Received: by mail-ot1-f54.google.com with SMTP id g17so26918807otl.2; Tue, 13 Aug 2019 15:35:31 -0700 (PDT) X-Received: by 2002:a5d:85c3:: with SMTP id e3mr41664908ios.265.1565735731224; Tue, 13 Aug 2019 15:35:31 -0700 (PDT) MIME-Version: 1.0 References: <67ca217f-b7de-8707-c4de-51e3f895d06f@FreeBSD.org> In-Reply-To: <67ca217f-b7de-8707-c4de-51e3f895d06f@FreeBSD.org> Reply-To: cem@freebsd.org From: Conrad Meyer Date: Tue, 13 Aug 2019 15:35:20 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: HEADSUP: drm-current-kmod now installs sources To: John Baldwin Cc: current , x11@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 467SGY5mkqz4WJh X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-6.98 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; REPLY(-4.00)[]; NEURAL_HAM_SHORT(-0.98)[-0.980,0]; TAGGED_FROM(0.00)[] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Aug 2019 22:35:34 -0000 This is super cool, thank you! Is it feasible to integrate other out-of-tree kmods in a similar way, e.g., nvidia-driver? On Tue, Aug 13, 2019 at 2:58 PM John Baldwin wrote: > > With help from zeising@ in particular, I've just committed a change > to the drm-current-kmod port that makes it install sources into > /usr/local/sys/modules by default. This will result in some behavior > changes on HEAD (and only head for now): > > 1) When you build a kernel after installing the updated package, > your buildkernel will now build DRM modules using the sources > from the package. For developers at least I suspect this to be > a win as if you have made changes to the kernel KBI you will > always end up with matching modules installed into /boot/kernel > alongside your kernel. > > 2) In order to use these modules, you need to update the 'kld_list' > lines in your rc.conf to just list the modules without a > path, e.g. "kld_list=i915kms" just as you would for other > modules. This will prefer the module built with your kernel if > one exists and fall back to the module in /boot/modules > otherwise. > > If a change in current breaks the build of DRM modules, you have a > couple of options: > > 1) Pass 'LOCAL_MODULES=' (empty string) on the command line of > 'make buildkernel' to disable building the DRM modules. > > 2) Hack on the sources in /usr/local/sys/modules/drm-current-kmod > to fix the compile breakage, perhaps using a patch from the > mailing lists if one exists. > > 3) Wait for a new package/port version and update to that before > doing a buildkernel. > > For developers this means even if you are doing testing on a box > that doesn't use DRM, you can install the package so that kernel > builds will try to compile it and hopefully spot KPI/KBI changes > before they land in the tree so that the port/package can be > patched in tandem with committing changes to HEAD. Note that even > builds of work trees in git checkouts, etc. will find the DRM > modules and try to build them if the package is installed. > > -- > John Baldwin > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"