Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp3157080pxb; Tue, 20 Apr 2021 01:42:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzbpj8I5Wy6+ySMMDteLR52Ljf/Xg1cfOUgzaYi+M64+JmcVmAAGLbXCV8kGD+o6bBOWUCu X-Received: by 2002:a62:1910:0:b029:25d:44b5:2196 with SMTP id 16-20020a6219100000b029025d44b52196mr12697953pfz.44.1618908146189; Tue, 20 Apr 2021 01:42:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618908146; cv=none; d=google.com; s=arc-20160816; b=GUoGirwkVtsBvlk8BJSvyWQVchtZnzWAxys2qwcVm8ZIZIbNmU9O6W4ZM1HwC93Zm1 /j3efmBtu2OTmj2RTjgKetJ/6D1r8UMuz3TDq7wS8lpnA59sFS3/hkzQQKD1q6UjZC7k IFP+6EBxwifjs2gIDgQfameiTxeNRRvvWZD3sX4mue0Px6btOAupx9xngYdzetakpq6H WIv4s6G2+DI50qESoNupk4LwFS0vGO02MBnIn/JqX+VPYHXAs/3BYGIDCcJ9r0cGAIIG ejidOhl9FgJXHlqZ/yDI9bhCRzHXCQINNx31UDkUyw4HATsB44UeZz2VDVsqn4pgOdyL ONBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:from:cc:to:subject :content-transfer-encoding:mime-version:references:in-reply-to :user-agent:date:dkim-signature:dkim-filter; bh=KJKMGIt2BbVzz/RVohFuZ6xbiX0t9dut89vlYcz/mvI=; b=OWRfjPUIicOxRfDjSHvpp7xswVM9wpGSa/gCfyFDh/PZhvKDCHlRllR2w7Zxa6kOPa Q44K6SJZBgB5gqEVQ4zqr1x4ytkfTXpRPEdcPh2bPGHHkvoWhRsQkvK+RJy5z/NX7tJh kP29CxX5/pqfjnV8lYDnBxEiKQ4JC+bfI+6atlpWOpmhwcB0jDnmBb+k88vZNz6TsRoJ nMGvQsH4ejdPsRJWcMflUR7xymW+WaSPnVU0WidAZA+oW2snDKNTONZtFE5wt/8xM+/t B6VxglanBhKHSphfAtxhpo0uJeG32RYmk4H/1OjCOjn5wPe4fbHlHgke/+fNWWcCujnR Nz5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@zytor.com header.s=2021032801 header.b=Op8t7gps; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=zytor.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q9si20460357pgr.161.2021.04.20.01.42.13; Tue, 20 Apr 2021 01:42:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@zytor.com header.s=2021032801 header.b=Op8t7gps; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=zytor.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230168AbhDTIlJ (ORCPT + 99 others); Tue, 20 Apr 2021 04:41:09 -0400 Received: from terminus.zytor.com ([198.137.202.136]:39629 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229696AbhDTIlI (ORCPT ); Tue, 20 Apr 2021 04:41:08 -0400 Received: from [IPv6:2601:646:8602:8be1:8819:5cf:8dbc:ccf4] ([IPv6:2601:646:8602:8be1:8819:5cf:8dbc:ccf4]) (authenticated bits=0) by mail.zytor.com (8.16.1/8.15.2) with ESMTPSA id 13K8e0ZZ2595300 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO); Tue, 20 Apr 2021 01:40:02 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.zytor.com 13K8e0ZZ2595300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2021032801; t=1618908002; bh=KJKMGIt2BbVzz/RVohFuZ6xbiX0t9dut89vlYcz/mvI=; h=Date:In-Reply-To:References:Subject:To:CC:From:From; b=Op8t7gpsMQMVlDrQe4GkU0ikDUSLt55q7u/o1YLWG+C/ZWXCPlmK26VO3VoEEpFzb cNm4iD2zpR/e5S3niHy9NWQHCfJ9o+HHQy2M28+T6XIQgFKS36q5lTWvBhS1bYfwSx 60Z6XDKYOeIYWRXw4+K4Rkgb5dvpF+d7U3IX1WT0Ym0cB5hExRXVS1S2b6KHsyCLSp MO9dSyDf+M9nv8I8DTQrDlciULP0RrsdYmgH9GD+dV1sIZHUrbdwCcsFiw8QpWMPEq 4GFWmvxJFzzZTeUoBQTVNq+31KR/S71K4OI+WlsNPV/5/GrmgiuH0OIJYpNCFRGHmW CCiTu7IK+0szA== Date: Tue, 20 Apr 2021 01:39:51 -0700 User-Agent: K-9 Mail for Android In-Reply-To: <75fc46bae17f4fa4958f5ad7d49d9244@AcuMS.aculab.com> References: <20210419230252.1583169-1-hpa@zytor.com> <75fc46bae17f4fa4958f5ad7d49d9244@AcuMS.aculab.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: RE: [PATCH 0/3] x86 disk image and modules initramfs generation To: David Laight , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Andy Lutomirski , Alexander Viro , Masahiro Yamada , Michal Marek CC: Linux Kernel Mailing List , Kbuild Mailing List From: "H. Peter Anvin" Message-ID: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Ok=2E=2E=2E not really sure how this relates to my patch=2E You are mention= ed three separate things: modules, headers, and enough of the kernel machin= ery to build out of tree modules=2E The latter it normally done with a tree= that corresponds to the state after build + "make clean"; which I *believe= * is the same as after "make prepare"=2E The former two are "make modules_i= nstall" and "make headers_install", respectively=2E Note you can direct the= m to directory hierarchies other than the local system ones for archiving= =2E It is simply not possible to provide a *general* solution that fits all di= stributions =C3=97 all boot scenarios=2E On April 20, 2021 1:30:07 AM PDT, David Laight wrote: >From: H=2E Peter Anvin >> Sent: 20 April 2021 00:03 >>=20 >> When compiling on a different machine than the runtime target, >> including but not limited to simulators, it is rather handy to be >able >> to produce a bootable image=2E The scripts for that in x86 are >> relatively old, and assume a BIOS system=2E > >I've given up and copied the kernel tree onto all my test systems=2E > >I needed something like 'make modules_install' and 'make install' >that would generated a directory tree that could be copied (scp -r) >onto the target system=2E > >But the script to run 'update-grub' is all intwined in the commands=2E > >You also don't get a copy of the headers=2E >Even for the local system (as root) you just get a symlink into >the source tree=2E >This causes a problem trying to build 'out of tree' modules >after updating the kernel source tree (but not rebulding)=2E > >I can (and do) write 'horrid' makefiles (gmake and nmake) >but this seemed to need more refactoring that I wanted to do=2E > > David > >- >Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, >MK1 1PT, UK >Registration No: 1397386 (Wales) --=20 Sent from my Android device with K-9 Mail=2E Please excuse my brevity=2E