Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp3151420pxb; Tue, 20 Apr 2021 01:32:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwwd8bENXuwHZigjOCOFyNz5cV3Y64VOPCZnIIi9dst2Ip/yH8gL09PbmsO/bs6hLxEy3Qn X-Received: by 2002:a17:90a:a895:: with SMTP id h21mr3815275pjq.13.1618907538371; Tue, 20 Apr 2021 01:32:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618907538; cv=none; d=google.com; s=arc-20160816; b=d0vhhdEJ6BlrSvMOkMGngH/FnBJmIw4XO0V2hLXRqrBnEwmXfj759h0GsoE7iOKOOh L1+dWm2pwJqMrqjMjBiq8Jc4qcfh8QZoAz700yYsUBPsgvoSNtBDvPTWbLnWVhqFahGg e3LH6hTI9NyD88CRrx/JVqOn2vGY4ieAbuzHAvLhM+YHoUkZCHpMWt6C1Bow0zmRRLSc QzUGsnLnoQRMuBH2nXl0yVVO335km2fQPA1tw6jEU/4KsaxehLtMhodpfRFT2yOi547T VbTMLoV+n4PvolIkoV2+hUulbmFTLEOoepbbMwRBOGKPmfpQhK7xgIzGEBhFERuBfLi6 GXZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:accept-language:in-reply-to:references:message-id:date :thread-index:thread-topic:subject:cc:to:from; bh=T2lSBN1fqi2mIww5zwz13cQ9Hltx32vLwjy0bBslXzc=; b=lNuRWZEUIixrpvg+X1pVOrtYDK/3HZ1q6s04oPf4l98SFmIvwCtcDvo24eIiyJP90f /2fzJt+Y9yvXsU4i/bG5u9cvWHmjXG+2RU4WP7PRNaTQFQNAmRjGk+GvTQkOsAVLwZwD s6bFDn2MIf/k/p31Ibbh1m7t7MEZlqKGuj/Pgp3UR/ezuiaCqW8PxQRM5yRlG0Qrpi9Y o+ZVmb4qkWY8wQfatC7R4QnaJlCt6aDHP8hsPPqpOAtHzrD6Sn5miyiXtddsFpeReZIL LJH/OMKau/uR4IPpMiyogM1b2xhra/5/4UKDmPJ+c7XAHf32KfDJ5UYbHZ9Wuop5dIMs pNUQ== ARC-Authentication-Results: i=1; mx.google.com; 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=aculab.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gx10si2366416pjb.108.2021.04.20.01.32.05; Tue, 20 Apr 2021 01:32:18 -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; 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=aculab.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230445AbhDTIap convert rfc822-to-8bit (ORCPT + 99 others); Tue, 20 Apr 2021 04:30:45 -0400 Received: from eu-smtp-delivery-151.mimecast.com ([185.58.86.151]:28887 "EHLO eu-smtp-delivery-151.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230447AbhDTIao (ORCPT ); Tue, 20 Apr 2021 04:30:44 -0400 Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) (Using TLS) by relay.mimecast.com with ESMTP id uk-mta-271-NKPQNoYbP8uEJWWfFkVBNA-1; Tue, 20 Apr 2021 09:30:09 +0100 X-MC-Unique: NKPQNoYbP8uEJWWfFkVBNA-1 Received: from AcuMS.Aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) by AcuMS.aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 20 Apr 2021 09:30:07 +0100 Received: from AcuMS.Aculab.com ([fe80::994c:f5c2:35d6:9b65]) by AcuMS.aculab.com ([fe80::994c:f5c2:35d6:9b65%12]) with mapi id 15.00.1497.015; Tue, 20 Apr 2021 09:30:07 +0100 From: David Laight To: "'H. Peter Anvin'" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Andy Lutomirski , Alexander Viro , Masahiro Yamada , Michal Marek CC: Linux Kernel Mailing List , "Kbuild Mailing List" Subject: RE: [PATCH 0/3] x86 disk image and modules initramfs generation Thread-Topic: [PATCH 0/3] x86 disk image and modules initramfs generation Thread-Index: AQHXNXA3hW9Bgwsx/EekG3uw9oZ0YKq9EYRw Date: Tue, 20 Apr 2021 08:30:07 +0000 Message-ID: <75fc46bae17f4fa4958f5ad7d49d9244@AcuMS.aculab.com> References: <20210419230252.1583169-1-hpa@zytor.com> In-Reply-To: <20210419230252.1583169-1-hpa@zytor.com> Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=C51A453 smtp.mailfrom=david.laight@aculab.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: H. Peter Anvin > Sent: 20 April 2021 00:03 > > 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. The scripts for that in x86 are > relatively old, and assume a BIOS system. I've given up and copied the kernel tree onto all my test systems. 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. But the script to run 'update-grub' is all intwined in the commands. You also don't get a copy of the headers. Even for the local system (as root) you just get a symlink into the source tree. This causes a problem trying to build 'out of tree' modules after updating the kernel source tree (but not rebulding). I can (and do) write 'horrid' makefiles (gmake and nmake) but this seemed to need more refactoring that I wanted to do. David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)