Message ID | b455394f-9faa-1f1a-f171-0b9d5e9ada35@landley.net |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp212342wrd; Tue, 21 Feb 2023 12:40:52 -0800 (PST) X-Google-Smtp-Source: AK7set8NMPPYKPfb1wn/aFul0jhDAh903RFR4n7JWKVHG6ePmAwCGpM9GmpPKlCazRcG8Xh5Ahb3 X-Received: by 2002:a17:903:230b:b0:19a:9833:704 with SMTP id d11-20020a170903230b00b0019a98330704mr9748186plh.61.1677012051745; Tue, 21 Feb 2023 12:40:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677012051; cv=none; d=google.com; s=arc-20160816; b=GfveYYUwyyI0KwrCCYg6WHh8L5ve695mu9VPGEx13xzi/E+DjU1CRHHbrTg0lxbEhG JdeOwstCD2AMuoIucQe/ylkqgFCAM0BD2FBNqVYN0/zYH08wuhpwSW8/rYWTzHkhAvGR bFn8ZLmZ2ALoarwjt9Yt/2KiCk6DXXMiEjiie6KZ8X8TSStDNzTNKNFSjKFLhX+tafaK R88eNmYJGJFI9+yNTtpGyqMFzLHo76Zcz/OHHHHSso8hKTqygk6/vckOUFBK1JE9q2uh b5qfFK6VFsQCBzIUZd1JaAUdN3bZY0FPP3ay+sZGAo7hTPCW+ZddHOXhG8Wd2hULydKf 9L/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:subject:from:cc:to :content-language:user-agent:mime-version:date:message-id :dkim-signature; bh=yhJ03HWaHgcQf5OOYhlL9i+S+dAZS2VRK1yIdsqmC7s=; b=PrGnNbg2yg7tL88kxTx3RBX5dl/F8aGzadQrdejMz1Unk+lSNl3YSaXj041QSReERj R25qngiDmu3WrWGneqgq2S65j7z08RsAGnCviIXCV6tYjkSElOYQDV2VZhpLx0Y+7pmd ed6mPTR+Vie85E5M7fONjr6E7puGcZeI+4fhVCBOFRQYA4FLrkmdCh9iX/G9EJqkiuHc hp6Z8h5xZ3MJ5EHsTSbwYBX4W2ULUZjoOHFye5bZ+a5c7NxDicPFxegqVzFk9WCKyVRq 97A/n17J74bhpTGgqXk4/EawxjocUCaO4vivOe1PXX3owJViUw6h/6xRTPolKDPYi6l8 AoZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@landley-net.20210112.gappssmtp.com header.s=20210112 header.b=b6ktkeNj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h10-20020a170902f54a00b00198a715d260si15899408plf.565.2023.02.21.12.40.38; Tue, 21 Feb 2023 12:40:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@landley-net.20210112.gappssmtp.com header.s=20210112 header.b=b6ktkeNj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230297AbjBUUkY (ORCPT <rfc822;hanasaki@gmail.com> + 99 others); Tue, 21 Feb 2023 15:40:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230280AbjBUUkV (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 21 Feb 2023 15:40:21 -0500 Received: from mail-il1-x129.google.com (mail-il1-x129.google.com [IPv6:2607:f8b0:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98D95301BB for <linux-kernel@vger.kernel.org>; Tue, 21 Feb 2023 12:40:11 -0800 (PST) Received: by mail-il1-x129.google.com with SMTP id s8so2205419ilv.10 for <linux-kernel@vger.kernel.org>; Tue, 21 Feb 2023 12:40:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=landley-net.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:subject:from:cc:to:content-language :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=yhJ03HWaHgcQf5OOYhlL9i+S+dAZS2VRK1yIdsqmC7s=; b=b6ktkeNj8WV1cTpi4ZZdby245M/K7jo3YcUSE0syTwjhuTI7mywNeTt//HMF69Mx9E 2YSGktOCxrRiJjbofyxPuH85woOah/dfpZTvUoTgEwvXC5MIwdUg/T/jocbAG9A5qUFa JAgl32076dnrIx7tdF1gADyv3jbo6S9CvGd8YvsSPdem3Tt+ZZOWBq21rgNcSwdAMKnE sSIyFrMeg1KHXavwRjQbFSRGt/Od4D0VkMU8kcknlTUkoP36pboBg6I1KAGAyCXI8yLm yKmwsgyIyS3rvJCBYJ24/a7OC8H+SWakfZRON6Kkliz5dTEE0tGTSjctsLRBCFmhqIY1 akQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:subject:from:cc:to:content-language :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=yhJ03HWaHgcQf5OOYhlL9i+S+dAZS2VRK1yIdsqmC7s=; b=DaLyUD5undw4PdmtalcKPluC6zbm1Ne8Dp1M6pMw3AUafpBw4S//oJkyUPqEmGjoVr Fcl7nUQ2ULKfiR+Kg9/jLu+5FUFRC2ebYogmHJXh59aVnBIqrW+jm09prCnEwmPN9WCC pzzmfhNutC5oNrkArweLzA8s0hKi8rfe8RefUA8+oVimtfXnVsFuB/I+zjKm7/9+lF/N TG6xquAj9KZTq/Qdo2bIxgk7JOOYh1TnX03NnKMqbl6csaT6GHucyu9d7M5CQ3FueWpO YGC7n5kKXcTjlDeK6RgtgGq+gStsCMaJYh5Oh36ynRW0iHtCjLoffmFpjZmX8of55IHt WoVA== X-Gm-Message-State: AO0yUKXeZs0HOitU0U3828kA8i7Hd/8gPWxcVk9onaPvHi7X/TnjlCiA PuMFLVaE/qEfv7BLYc0tf2PAucCJ8qmdbefrAhQ= X-Received: by 2002:a92:cd8e:0:b0:315:459a:8bd with SMTP id r14-20020a92cd8e000000b00315459a08bdmr6555310ilb.25.1677012010889; Tue, 21 Feb 2023 12:40:10 -0800 (PST) Received: from [172.16.32.78] ([198.232.126.202]) by smtp.gmail.com with ESMTPSA id r2-20020a922a02000000b00313ca4be5e1sm756486ile.12.2023.02.21.12.40.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 21 Feb 2023 12:40:10 -0800 (PST) Message-ID: <b455394f-9faa-1f1a-f171-0b9d5e9ada35@landley.net> Date: Tue, 21 Feb 2023 14:53:30 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Content-Language: en-US To: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org> Cc: Alexey Dobriyan <adobriyan@gmail.com>, Andrew Halaney <ahalaney@redhat.com>, Andrew Morton <akpm@linux-foundation.org>, Borislav Petkov <bp@alien8.de>, Dave Hansen <dave.hansen@linux.intel.com>, Dominik Brodowski <linux@dominikbrodowski.net>, "Eric W. Biederman" <ebiederm@xmission.com>, "H. Peter Anvin" <hpa@zytor.com>, Ingo Molnar <mingo@redhat.com>, "Jason A. Donenfeld" <Jason@zx2c4.com>, linux-kbuild@vger.kernel.org, Li Zhe <lizhe.67@bytedance.com>, llvm@lists.linux.dev, Mark-PK Tsai <mark-pk.tsai@mediatek.com>, Mark Rutland <mark.rutland@arm.com>, Masahiro Yamada <masahiroy@kernel.org>, Masami Hiramatsu <mhiramat@kernel.org>, Nathan Chancellor <nathan@kernel.org>, Nick Desaulniers <ndesaulniers@google.com>, Nicolas Schier <nicolas@fjasle.eu>, Peter Zijlstra <peterz@infradead.org> From: Rob Landley <rob@landley.net> Subject: [PATCH 0/5] Patches used to build mkroot. Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758474589228846040?= X-GMAIL-MSGID: =?utf-8?q?1758474589228846040?= |
Series | Patches used to build mkroot. | |
Message
Rob Landley
Feb. 21, 2023, 8:53 p.m. UTC
The ~300 line bash script in toybox that builds bootable Linux systems for a dozen-ish targets can use a vanilla kernel, but the binaries I ship are built from a kernel with these patches: https://github.com/landley/toybox/blob/master/scripts/mkroot.sh https://landley.net/toybox/downloads/binaries/mkroot/0.8.9/ I've posted each patch to the list already, but here they are together and updated for 6.2: 1) let LLVM build normally without telling Linux on the command line This way I can mix CROSS_COMPILE=$ARCH-unknown-linux-cross- without having to care that some are llvm and some are gcc. 2) don't require an extra dependency to build x86-64 no other target needs. 3) Make CONFIG_DEVTMPFS_MOUNT work in initramfs. That way having the kernel build archive up a directory into a cpio.gz as a normal user doesn't leave me without a /dev/console and thus init running with stdin/stderr/stdout closed. 4) Replace the only user of bc with c. (Another package dependency with only one user.) 5) Fix rootfstype=tmpfs in initramfs. (A thinko I made in 2013 which nobody else has bothered to fix for a decade now.)
Comments
On Tue, 21 Feb 2023 14:53:30 -0600 Rob Landley <rob@landley.net> wrote: > The ~300 line bash script in toybox that builds bootable Linux systems > for a dozen-ish targets can use a vanilla kernel, but the binaries I > ship are built from a kernel with these patches: It's nice to see a diffstat of the whole series to at least get an idea of who might merge the series. Who were you thinking might merge the series? I was only cc'ed on two of them, I think. There is no "Previously:" changelog tag. Please use plain old "Link:". Also, "See https://..." after the "^---$" will get chopped off. It might be helpful to includes this also as a Link: tag.