Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp680879pxj; Wed, 2 Jun 2021 08:47:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXd/fV4xrgryUhdCOGKTZ/pyT90uFcxe+eMt3VQk8w2YN/uftdc9rCmdZQsuHEZD2lVZ8T X-Received: by 2002:a05:6402:54f:: with SMTP id i15mr17125148edx.339.1622648829039; Wed, 02 Jun 2021 08:47:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622648829; cv=none; d=google.com; s=arc-20160816; b=zLL/9B0jao9mkUkqDLWdKr5iiZFDQ6MqypyFfGIHzyWcrgagNAivG1FGmR24uPRPcV gudpMT7m4qfWUmhz4O74EI14QpvjzJqfsA2k9GQzUc+NMKXKRZD5uT+t30kYzeRHX5+V Q7E/A6wyI5RNVo9cTTt3vKIxeeBEWU2acb1VFgs3JxRkm/mRfCToq03o6xDpHR1ne1iF Fdb+5c9R7yliBgqPT6WEia6iBEwCuvw+xObyTseKgE9Lg2Qa0pJcbCLsd2iBUF3WyoKI Xl9/1+s0yBf2kl74TEgOEcXs+7VleUuO+XBCWTvpc8cJ0c2E3EDuaeu4YRaLegms26dS o2bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature:dkim-filter; bh=MnGRRKvbqmuVLLBWpwwf/rFkG2bdE9Xa6VH1ZiplG8Q=; b=ncrag801JL5BdfPmUN3qSbtXotT7hi+PExpjgGNfolCNcK1fj8uvhjuy3IoKaFr+BO V9J8NNxIh7iqNrKAkGgQX57QOuPsL64Etw8XCPHjFxoH30dbLStTRChviPEews9uvlC1 QqNFv2i2MJ8PV/rOORBMCOMJXQP25ytmAX7qmvDz3SSr/ozpqnRDFdbppj5yCjsWn19F IUuXXo68JxmBGfL3C5SOnarIBPtwtj0EU0iAWgRrSk4f7eaapqI8LAYA2IKg642ng/NV QfKOksEbY09lbVTzGldc4nypJPDltjIntDe8KQ5jYa0n4+Z/7iK3axy2qQkYalnCZlqM ingA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=dWiag1R1; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s19si236157edd.347.2021.06.02.08.46.46; Wed, 02 Jun 2021 08:47:09 -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=@nifty.com header.s=dec2015msa header.b=dWiag1R1; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232289AbhFBPr2 (ORCPT + 99 others); Wed, 2 Jun 2021 11:47:28 -0400 Received: from conssluserg-06.nifty.com ([210.131.2.91]:42666 "EHLO conssluserg-06.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231837AbhFBPr2 (ORCPT ); Wed, 2 Jun 2021 11:47:28 -0400 Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) (authenticated) by conssluserg-06.nifty.com with ESMTP id 152FjPNp006288; Thu, 3 Jun 2021 00:45:26 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-06.nifty.com 152FjPNp006288 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1622648726; bh=MnGRRKvbqmuVLLBWpwwf/rFkG2bdE9Xa6VH1ZiplG8Q=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=dWiag1R1/kPIMviwRzD0KBKqGittAlI5LNgZjTlufYyXFoz+rUMHvp5CppR2G/Ip2 qLd5xGvFeHVrypCPDom6PnylViU1GiJWBfAoDNifdcIufxRV2hU3UHbmCtyJ9O9XB8 +T4zwpFgvSV7yXnET2pjX0jX8FCSJSmODy4sMrU6nYmyE3fo2u3uFmEF64TWnZuEhE EMYm94slRiUyREszBbun3yeXht49uPRjawfzNWfcgRRE7IBOsm5cw8jhOpo+MIcw06 WFPRtB0gefF+KN76DWwBbU6u+4kJIbhvTNYNY9GMujdfWzIgQeFT1xQnfnPZekZqv7 hZoddLEEuWinQ== X-Nifty-SrcIP: [209.85.214.171] Received: by mail-pl1-f171.google.com with SMTP id e1so1291980pld.13; Wed, 02 Jun 2021 08:45:26 -0700 (PDT) X-Gm-Message-State: AOAM531UYLV3xIbwRqxW0dD5nqsy1+ICU8vbeMhDOYThR4tuZWIia+WJ zPq2LU7wTYmw9K3r2261WUrMkMDZOglEQKtUm00= X-Received: by 2002:a17:903:22cf:b029:105:2b81:3915 with SMTP id y15-20020a17090322cfb02901052b813915mr15342294plg.71.1622648725367; Wed, 02 Jun 2021 08:45:25 -0700 (PDT) MIME-Version: 1.0 References: <20210526173855.5963-1-msuchanek@suse.de> <20210526202825.GB8544@kitsune.suse.cz> <20210529053512.GT8544@kitsune.suse.cz> <20210602100315.GL8544@kitsune.suse.cz> In-Reply-To: <20210602100315.GL8544@kitsune.suse.cz> From: Masahiro Yamada Date: Thu, 3 Jun 2021 00:44:48 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] Revert "kbuild: merge scripts/mkmakefile to top Makefile" To: =?UTF-8?Q?Michal_Such=C3=A1nek?= Cc: Linux Kbuild mailing list , Michal Marek , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 3, 2021 at 12:18 AM Michal Such=C3=A1nek wr= ote: > > On Wed, Jun 02, 2021 at 06:45:58PM +0900, Masahiro Yamada wrote: > > On Sat, May 29, 2021 at 2:35 PM Michal Such=C3=A1nek wrote: > > > > > > On Sat, May 29, 2021 at 02:15:55AM +0900, Masahiro Yamada wrote: > > > > On Thu, May 27, 2021 at 5:28 AM Michal Such=C3=A1nek wrote: > > > > > > > > > > On Thu, May 27, 2021 at 03:56:41AM +0900, Masahiro Yamada wrote: > > > > > > On Thu, May 27, 2021 at 2:39 AM Michal Suchanek wrote: > > > > > > > > > > > > > > This reverts commit 243b50c141d71fcf7b88e94474b3b9269f0b1f9d. > > > > > > > > > > > > > > When packaging the kernel it is built in different place from= the one in > > > > > > > which it will be installed. After build the makefile needs to= be > > > > > > > regenerated with the target location but with mkmakefile merg= ed into > > > > > > > Makefile tehre is no way to do that. > > > > > > > > > > > > > > Signed-off-by: Michal Suchanek > > > > > > > > > > > > My patch was not working as expected > > > > > > regardless of packaging. > > > > > > > > > > > > Does the following fix-up work for you? > > > > > > > > > > For the packaging I need some way to regenerate the Makefile and = fake > > > > > the directory where the Makefile will be on the user system (ie D= ESTDIR) > > > > > > > > > > Without the mkmakefile I do not see any way to do it. > > > > > > > > > > If the kernel makefile is no longer location dependent there is n= o need > > > > > any more, of course. > > > > > > > > > > Thanks > > > > > > > > > > Michal > > > > > > > > Sorry, I do not understand this. > > > > > > > > IIUC, this patch does not change any functionality. > > > > The generated Makefile is still the same. > > > > Why is it a problem? > > > > > > It cannot be regenerated. > > > > This is an issue regardless of your packaging. > > That is why I suggested a patch in my previous reply. > > > > https://lore.kernel.org/linux-kbuild/CAK7LNASEqKwQeLPXedyut+ykSJGPuq3CO= 1g_fS=3DsVDaZrwBPBQ@mail.gmail.com/ > > > > > > Anyway, please try next-20210602 > > and see if you still have a problem. > > Yes, I still have a problem. > > My packaging script calls mkmakefile which no longer exists. So, we are not talking about the functionality any more. What is important for you is, you have a separate file. You overwrite scripts/mkmakefile for doing whatever hacks you like. If the code is moved into the Makefile, it will be more difficult to insert hacks. This is what I understood from your statement. > > Regardless of whther the new code works correctly or not in the usual > case it removes the ability to regenearte the makefile for a specific > target location. > > Thanks > > Michal > > > > > > > During package build you have four directories > > > > > > - the source directory > > > - the build directory > > > - the staging directory where files are installed to be included in = the > > > package > > > - the target directory where files will be installed on the target > > > system once the package is installed by the user > > > > > > The makefile is generated for the build directory, not the target > > > directory. What is needed is a way to generate a makefile in the stag= ing > > > directory that will work when installed in the target directory. > > > When mkmakefile is folded into makefile the makefile can no longer be > > > regenerated because it is up-to-date, and it can no longer be specifi= ed > > > that it should be generated for the target directory, not the staging > > > directory. > > > > > > Thanks > > > > > > Michal > > > > > > > > -- > > Best Regards > > Masahiro Yamada --=20 Best Regards Masahiro Yamada