Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp937329pxf; Wed, 7 Apr 2021 15:32:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQJQBnbzsN4kP48CGFxFhju6US68MQLuvUSam1F6pDH/zRjFncAtFXZ5UaIXA9MeDk5fFI X-Received: by 2002:a17:90a:aa11:: with SMTP id k17mr5170243pjq.60.1617834739740; Wed, 07 Apr 2021 15:32:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617834739; cv=none; d=google.com; s=arc-20160816; b=a33Fv44KvibfDLLw/8tScwjp2RZxtbs4l193ypCRvK0QIU/GaMUfz8eM0+vwSuOMY0 AvY//P/6sTjAe/cY03YQJvQ5vwxTzwAU6HBsqNRmkCKJVte8qS9lMaukYkoWDbBwbAqO 98liNzT98GmWQqtBF6lCRCnc9hd5OuHRQSgRmitHd8A+TN9CUa9Z/L00ceenkXStjMEq V42gqXLHr1U/hZXEmXq+K3HphKHAOI5yVbApeOdncvYzjZHHhUC2Ksd5gZTpf8fqHSHX zavjqESCmm7BaeOL9j4cZJ/MesYh+HLS4Jusc8BzPK7o+Gdh+xvMQbYwWNpAlJ0pc5J6 lPsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Bpik0OKUjGkmi5y/HTqnj/J6U+XOhoNszPPA0ucmpbE=; b=kdjh36OyazXGdKC4Q5PbA8Qgksw8Js+Z+7IDv0jljzsY6e6lDNJPBv73XjEmUoX+L5 UASSaRPt4pGinmS8g0180enVTqMgJZ/SPf6XhbeEY6YaGFV4WQLhWg6vpoqns0T+jWke HiFt02XrESQNBgkdnnt8gmg5KFp47jVHVzvKptumFTHLKvxgnhmdUv1lZyYpYGRu68dy j9hX154t54F7Fc4AAf/5kOLE4yLL2uKKyrVMDWckBh7C7W11++ySgxg+OkN4bjZX01zT 3Iwu+l0L7/1W2kxsX54FcSLabaR4Nqm+o9qUrkfgjbrIvsRuG4QnXqVKxOqaYVPPpTkg 1UPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ORVDJjqJ; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d9si25626008plr.372.2021.04.07.15.32.07; Wed, 07 Apr 2021 15:32:19 -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=pass header.i=@linuxfoundation.org header.s=korg header.b=ORVDJjqJ; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346831AbhDGHqj (ORCPT + 99 others); Wed, 7 Apr 2021 03:46:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:38080 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240787AbhDGHqa (ORCPT ); Wed, 7 Apr 2021 03:46:30 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 506F26139B; Wed, 7 Apr 2021 07:46:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1617781581; bh=xFlb8XuCVKFs7yVEDsdkMeg3jdfQxp2CndWAV0U162E=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ORVDJjqJEXVocI7AShlkTTGMHVgJqicsVwmudrbkIDeG4Fh8LOtzm931wbly02wsZ VaozEwnhlPONZTjFGAIbLCDedC4ilE3zRir+XMVUrLqkVDFt+lpApFHdoy+9e3MRay cIviO2Gbnx3GEKnikUyoqftydQXuqtgxgNjBPZOo= Date: Wed, 7 Apr 2021 09:46:18 +0200 From: Greg Kroah-Hartman To: Geert Uytterhoeven Cc: Masahiro Yamada , Michal Marek , linux-kbuild , Linux-Arch , Linux Kernel Mailing List , "David S. Miller" , "James E.J. Bottomley" , Albert Ou , Borislav Petkov , Catalin Marinas , Christian Borntraeger , Greentime Hu , Heiko Carstens , Helge Deller , Ingo Molnar , Ley Foon Tan , Michael Ellerman , Nick Hu , Palmer Dabbelt , Paul Walmsley , Rich Felker , Russell King , Thomas Gleixner , Vasily Gorbik , Vincent Chen , Will Deacon , Yoshinori Sato , the arch/x86 maintainers Subject: Re: [PATCH 00/20] kbuild: unify the install.sh script usage Message-ID: References: <20210407053419.449796-1-gregkh@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 07, 2021 at 09:18:11AM +0200, Geert Uytterhoeven wrote: > Hi Greg, > > Thanks for your series! > > On Wed, Apr 7, 2021 at 7:34 AM Greg Kroah-Hartman > wrote: > > Almost every architecture has copied the "install.sh" script that > > originally came with i386, and modified it in very tiny ways. This > > patch series unifies all of these scripts into one single script to > > allow people to understand how to correctly install a kernel, and fixes > > up some issues regarding trying to install a kernel to a path with > > spaces in it. > > > > Note that not all architectures actually seem to have any type of way to > > install a kernel, they must rely on external scripts or tools which > > feels odd as everything should be included here in the main repository. > > I'll work on trying to figure out the missing architecture issues > > afterward. > > I'll bite ;-) > > Does anyone actually use these scripts (outside of x86)? I think so, if not then what do they use? Ok, I'll answer that, Before this week, I used my own script, a horrible hack I've drug along for years: https://github.com/gregkh/gregkh-linux/blob/master/scripts/install but for almost everyone else, they just use /sbin/installkernel that is provided by their distro. But this feels really odd given that we should include the logic to install the kernel in the kernel source itself, otherwise everyone has to rely on an external package that no one knows where it is. > I assume the architectures that have them, only have them because they > were copied from x86 while doing the initial ports ("oh, a file I don't > have to modify at all."). > But installing the kernel can be very platform-specific. > Do you need the vmlinux, vmlinux.gz, Image, zImage, uImage, ...? > With separate or appended DTB? That seems handled already by the arch/ARCH/boot/Makefile logic today, so I do not think we need to change that. > Even on x86, the script will bail out with "Cannot find LILO." if you're > using Grub. The last change in this series tries to "soften" that language so that isn't really an issue anymore. I want to turn this into something that everyone can use, so we do not have to rely on distro-specific or other external programs, as trying to explain how to install a kernel to someone new to kernel development is a real pain. > Anyway, having less of them is good. Agreed, thanks for the review :) greg k-h