From owner-freebsd-x11@freebsd.org Wed Aug 14 20:00:12 2019 Return-Path: Delivered-To: freebsd-x11@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 C83E2B90F7 for ; Wed, 14 Aug 2019 20:00:12 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4680mr3Ltgz3Ndj for ; Wed, 14 Aug 2019 20:00:12 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mailman.nyi.freebsd.org (Postfix) id 71415B90F6; Wed, 14 Aug 2019 20:00:12 +0000 (UTC) Delivered-To: x11@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 71058B90F4 for ; Wed, 14 Aug 2019 20:00:12 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qt1-x829.google.com (mail-qt1-x829.google.com [IPv6:2607:f8b0:4864:20::829]) (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 4680mq6kZ8z3Ndb for ; Wed, 14 Aug 2019 20:00:11 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qt1-x829.google.com with SMTP id v38so19143375qtb.0 for ; Wed, 14 Aug 2019 13:00:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=eEZ3TvP1dXe1dZCRMnoG18tTcvcudZQn1Rnx5dzGoJg=; b=vVBIZKREOrYXSs36nMSoMmsXIQ0ocvAfpAK/OOMtAsrHI1ut2Z/hRhXbsLjvF6iGxp ywvNR0di6BPT1szjsYshvF7+OiZjsYPjasRjm0CxL8P+CrjOg7pFL79ObpyFceM2fJcl 4iqgp6LWElMclS0yU7D/ivJOtv0950wRbU3UCdSPZWLQrlqeizhudKXE2z4r18kbcYIz /NUyUaDlQRGFcg9H4TnnYo8tqYonjUHJsqrcPwILq9z0yAw/Fb4n/ZAVb3tCqamiyhUs q4TW5yo1pe1PtY/GgEuJRqQGADHoge+7GuxaRzG/sx5Vp1Bgj36jWqBXh8q79oRnP/kt /Nyg== 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:from:date :message-id:subject:to:cc; bh=eEZ3TvP1dXe1dZCRMnoG18tTcvcudZQn1Rnx5dzGoJg=; b=gW+jHsyR4GdEZqeCjtNsmqcj+0i3BPvbr9UsyMIB59NjyjBAFLx80GQiLfh5u4a6dn FumEghyg/jIV9sNK++lrpJnat5CJyFL5HwHjCZz6bS8U/9xoEjqh6xEj+D2cVdReXI0U E/GnlBHs5G3RVGd2ksU5aBESgxLVNBp9jBSiu8AsTW1PdYUR9hoaTGr5CmxRNPbUeZ84 Xgb3CWy3mMhcSSCU0UetxBOFSBGRbj/OiXfGSPDqiEogaGwpk3GavzTpckgrkPkAvsel zcco5GGk/uu3DUrt0Qsc5Mq6PFVVTfXnFfF1ub7d9ka47VjQ/qv3JyziLqLrt3fZNnfX 5cuA== X-Gm-Message-State: APjAAAXrdFjc8Qot1MEr/4GsmIVUHx8bD9+GsuDMtKJRb4QxZ+x34BjL DGN1IOxbOLMVmC1yUNOPC1MU1v/ScWxsv3glI3TTgw== X-Google-Smtp-Source: APXvYqyrq9F44mv+l8Qiqt8MsOee0ui6L7h0JZMn8G87yaRs60WWUkduNU3/4yk01XfrxD3mbuTs1kgd3Ykg+x61jyc= X-Received: by 2002:a0c:e5c6:: with SMTP id u6mr1029691qvm.102.1565812810876; Wed, 14 Aug 2019 13:00:10 -0700 (PDT) MIME-Version: 1.0 References: <67ca217f-b7de-8707-c4de-51e3f895d06f@FreeBSD.org> <469b61c7c939b4e70f4304eaeb73eaae9b1d4c9a.camel@freebsd.org> <20190814192353.166bd3e7d1af44a55a61c915@bidouilliste.com> <02c501907f6eca8f4bd9b44331ac6ab2e28d624f.camel@freebsd.org> In-Reply-To: <02c501907f6eca8f4bd9b44331ac6ab2e28d624f.camel@freebsd.org> From: Warner Losh Date: Wed, 14 Aug 2019 13:59:59 -0600 Message-ID: Subject: Re: HEADSUP: drm-current-kmod now installs sources To: Ian Lepore Cc: John Baldwin , Kyle Evans , x11@freebsd.org, current , Niclas Zeising X-Rspamd-Queue-Id: 4680mq6kZ8z3Ndb X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20150623.gappssmtp.com header.s=20150623 header.b=vVBIZKRE; dmarc=none; spf=none (mx1.freebsd.org: domain of wlosh@bsdimp.com has no SPF policy when checking 2607:f8b0:4864:20::829) smtp.mailfrom=wlosh@bsdimp.com X-Spamd-Result: default: False [-5.96 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20150623.gappssmtp.com:s=20150623]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[x11@freebsd.org]; DMARC_NA(0.00)[bsdimp.com]; RCPT_COUNT_FIVE(0.00)[6]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[bsdimp-com.20150623.gappssmtp.com:+]; NEURAL_HAM_SHORT(-1.00)[-0.996,0]; RCVD_IN_DNSWL_NONE(0.00)[9.2.8.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; MIME_TRACE(0.00)[0:+,1:+,2:~]; IP_SCORE(-2.96)[ip: (-9.40), ipnet: 2607:f8b0::/32(-2.98), asn: 15169(-2.39), country: US(-0.05)]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Aug 2019 20:00:12 -0000 On Wed, Aug 14, 2019 at 1:56 PM Ian Lepore wrote: > On Wed, 2019-08-14 at 12:00 -0700, John Baldwin wrote: > > On 8/14/19 11:06 AM, Kyle Evans wrote: > > > LOCAL_MODULES="" does seem like a sensible default when we're not > > > building a native kernel. > > > > Unfortunately kern.post.mk has no way of knowing that as MACHINE_* > > are already set to the TARGET_* values by the time this target is > > invoked. Also, the 'make tinderbox' use case is a legit use case > > that some folks want (for CI, etc.) > > > > BUILDHOST_ARCH!= uname -p > .if ${BUILDHOST_ARCH} != ${TARGET_ARCH} > > Unfortunately, I don't think it's as easy to compare the buildhost > running version with the version of source being built, unless the > build is started from the top level so that Makefile.inc1 sets the > variables. > We already know MACHINE_ARCH != TARGET_ARCH in Makefile.inc1 and already do different things based on it. But to be honest, I'd think there'd be times I'd absolutely want to build them all, and other times I wouldn't which strongly suggests some kind of knob specific for cross building the port/pkg-based kernel modules. We could then pass that knob into the kernel builds which would then not try to guess whether or not to build LOCAL_MODULES... Warner