From owner-freebsd-arch@freebsd.org Thu Apr 8 05:26:49 2021 Return-Path: Delivered-To: freebsd-arch@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 3FFF85CFF53 for ; Thu, 8 Apr 2021 05:26:49 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qk1-x72e.google.com (mail-qk1-x72e.google.com [IPv6:2607:f8b0:4864:20::72e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 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 4FG8rl73QKz3t47 for ; Thu, 8 Apr 2021 05:26:47 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qk1-x72e.google.com with SMTP id c4so1074780qkg.3 for ; Wed, 07 Apr 2021 22:26:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=HPIo7/EuC0y7gZEL4SZVeyWLTHrlt+jEByXbLSnYJsE=; b=nnEhS1qgjtXyQjiPzH5U18CPDq+LbIMLboTuJ4q9Pi5yLW5V6rMQh2KI42F5c3ITUg T1SdiQuxombucttFY2HLrEpYEd4vlg9tskCTEKewKQbpgIYN2VLMutbiNhMVaK6ZuDCR 5eD8RStSB0yjqRhjridPT8hYtHDaMZiL3g/r0SCSCVHT4XxUzuW68zAf2gg9KoX8kbja 9SJPMVTS7O+t9kTFxBCmf7xEJv3/Lxz55WVc1E1QbP9YHAkwmL7f8vdUBBE8bLL0vUkD oXZ/t+9pOYSklL63TKi+xbMTKazBoddxJ5mfmVyYCC7J9ePd7Jop1qsNJoDrCdBuIU5W d53g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=HPIo7/EuC0y7gZEL4SZVeyWLTHrlt+jEByXbLSnYJsE=; b=gUbyQk479bGwmYcrJ+FVwGYZIpuckyH2QGvs8RGfB89c/k6dZGyiyeGgEzf6F/2nBN N4q0FUS+QrRvXwd45XcLB3P532EJBUqoqJk/+lyH5AR11+/PXyVE5YQlksbEw1zTgWh4 lkw4DLQ+45t7A9cscaNAVFPkgoGco4Qjr1PJrdI/UlmJkWSLTqtJodSiIXWspQNuzNB/ MAlJdp2jhjNn/pE8tdfsSMRuZXbhmYeUXoy+ObxFfbw8dUlt9PZHzMRmspG5HmspUKlB Y255zNI/H89ek6DHY8F1rLl/Cq8drTHGohmqTcYeqU5TGTRt7UO/WyOBLbOvqH//9kx0 q0Xg== X-Gm-Message-State: AOAM531PmGdt1bQd+chJmjkuYirYqyj+R/TmMxIB7OMnFpZ7NA7N9EsL bGu2WlghTS5kXNxduQFOnrW3ZXs4bpXxVjY5Xtp9AHw5/iG6dAlY X-Google-Smtp-Source: ABdhPJyF11kSn1Bd2klcAnnzR3oAhyrayVLWt8qvL1tcHDcYE5C/gvdN717Hm0+LfpjS80ljmmqJ88vaXelHVEQmbKw= X-Received: by 2002:ae9:e010:: with SMTP id m16mr6708475qkk.44.1617859606467; Wed, 07 Apr 2021 22:26:46 -0700 (PDT) MIME-Version: 1.0 From: Warner Losh Date: Wed, 7 Apr 2021 23:26:35 -0600 Message-ID: Subject: Moving from .uu.o -> .o in the kernel To: "freebsd-arch@freebsd.org" X-Rspamd-Queue-Id: 4FG8rl73QKz3t47 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20150623.gappssmtp.com header.s=20150623 header.b=nnEhS1qg; dmarc=none; spf=none (mx1.freebsd.org: domain of wlosh@bsdimp.com has no SPF policy when checking 2607:f8b0:4864:20::72e) smtp.mailfrom=wlosh@bsdimp.com X-Spamd-Result: default: False [-1.05 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.97)[-0.967]; RCVD_COUNT_TWO(0.00)[2]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20150623.gappssmtp.com:s=20150623]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arch@freebsd.org]; DMARC_NA(0.00)[bsdimp.com]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::72e:from:127.0.2.255]; NEURAL_SPAM_SHORT(0.92)[0.919]; DKIM_TRACE(0.00)[bsdimp-com.20150623.gappssmtp.com:+]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::72e:from]; TO_DN_EQ_ADDR_ALL(0.00)[]; R_SPF_NA(0.00)[no SPF record]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::72e:from]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_TLS_ALL(0.00)[]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; MAILMAN_DEST(0.00)[freebsd-arch] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Apr 2021 05:26:49 -0000 Greetings, In preparations for bringing a new vendor driver in, I realized that one of the promises of svn was that one could store .o files in the repo. We never did that, preferring to stick with the old CVS trick of storing the .o files as .o.uu files and converting them as part of the build process. Well, now that we've moved to git, it's time to retool. I've taken the liberty of converting two of the hpt* drivers. These drivers are on the edge of relevance, it is true. However, I'm not here to talk about that today. I'm also not here to talk about whether or not this is evil. I'm not changing any defaults, they still won't be in GENERIC and they still won't be built as modules if you have sourceless turned on. So if you want to talk about those topics, get your own thread :) My proposal is to simplify. I propose that we remove the .uu files and just commit the .o files and adjust the build to simplify it. It turns out that our config(8) knows that when there's a .o in the kernel files* file, just to copy that .o file over when the driver is in the tree. I've done hptnr and hpt27xx rather arbitrarily to get the hang of this and have uploaded the diffs to phabricator for review. I plan on doing the rest of these files this way. https://reviews.freebsd.org/D29632 https://reviews.freebsd.org/D29634 Comments? Warner