Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp663517pxj; Wed, 2 Jun 2021 08:23:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz1j27+Zqh512A/CzTNm/BlfFlSJyyqd6AXGAIjYn50A7jwWr7iGTHrHB6g4fjkmDL8hSLD X-Received: by 2002:a17:906:76c6:: with SMTP id q6mr34963355ejn.387.1622647400601; Wed, 02 Jun 2021 08:23:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622647400; cv=none; d=google.com; s=arc-20160816; b=YLOt1ZjV/FmNOnC/LVgD5IenjOqX74NMRP2SUotK2KVuUQRMZQ+ZW/wb2uoH9NPtzz 9TAClmgV7Y2IhiYtvDHsOcJGb7Pa0lB8zYUdLtQi/KI2H8WtwI2TZ8NalsEAs9ZH9560 QZ1/UR2UYWPg6SDKxs0MZatwsmwrc7wfif2xno2uv32pKX5k2bsRp+l/+QkMfTBR+VcA ePNkdkYwFRhENa/4W/Y0tyqZyz+oaeODIxW+JJMpBpn651741cLDYho15n4MC6mawPl3 KSo4d8yR9sIqFiqg8xUdNlpq5/H7a+JqhbUfMKz2o7y4ZuN15fSGM0+sX6nL5DMwegrn fnkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-signature:dkim-signature :dkim-signature; bh=TVCY3kReO4aYtRrCdthZIKAAdWvyFm8FGABuqcsqSSo=; b=pR4ESbB4YThs82ajC5J4FZM3s5i148OUmpfyTwEUIvDEclUG2+CB+Fq1xOhtWC5xtd Sv2WGf+Vb1HHOGHDP6S4GY87ZYaf+jMIGk6wmfz8gyPkk6BkvO+zVF2EsUi4u5cBaRqF qlIUEbEkVj4WSjZzr7Y/dpUeIaRkKokS0zjKEpFluys4nyAgL0pgur8LsMidmr0SeQJ0 duf/ZH2GrgXjGxjxKXj1G70WOR0WoLWAztzzSK5PipLzZ3DTUfIl59rFCrPGd9H3I7nR PC/i+q2SoO7R2o2vG02NDEjizxhcgj/BCQGtGjgov3pxem1oK5kyY5jfvDbCtEObjLOp PiTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=ha7u5ub6; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=U64lAHj1; dkim=neutral (no key) header.i=@suse.de; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k16si134248edv.498.2021.06.02.08.22.56; Wed, 02 Jun 2021 08:23:20 -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=@suse.de header.s=susede2_rsa header.b=ha7u5ub6; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=U64lAHj1; dkim=neutral (no key) header.i=@suse.de; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231300AbhFBPUp (ORCPT + 99 others); Wed, 2 Jun 2021 11:20:45 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:59750 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232229AbhFBPUO (ORCPT ); Wed, 2 Jun 2021 11:20:14 -0400 Received: from imap.suse.de (imap-alt.suse-dmz.suse.de [192.168.254.47]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 9C68F22CE9; Wed, 2 Jun 2021 15:18:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1622647108; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=TVCY3kReO4aYtRrCdthZIKAAdWvyFm8FGABuqcsqSSo=; b=ha7u5ub6Q+29Xo8msEqsH3ITn86/03gesPm4HUhbK0E8sMtaSiHedtDdzfU9BR4N7AP3/T g15Z1om/+4MsmDCP7i6kLIgbjtMqNytjM2SCbwnHuASDq5eGB1ScFqbTjnXm3TELxI98rF svB0igQtk3lScqcUc8yGIX3f7pWw67c= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1622647108; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=TVCY3kReO4aYtRrCdthZIKAAdWvyFm8FGABuqcsqSSo=; b=D6AlQlqfvEm8M80qGRROcE9GeiHFPH47lierC2gAkoJYPyD0fDxJalxAJAvj6OXHxjp/mO gIcvo+NGUMI+CfDQ== Received: by imap.suse.de (Postfix, from userid 51) id 921C3118DD; Wed, 2 Jun 2021 16:20:03 +0000 (UTC) Received: from imap3-int (imap-alt.suse-dmz.suse.de [192.168.254.47]) by imap.suse.de (Postfix) with ESMTP id 3771F11D64; Wed, 2 Jun 2021 10:03:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1622628197; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=TVCY3kReO4aYtRrCdthZIKAAdWvyFm8FGABuqcsqSSo=; b=U64lAHj1uQBmhw0kd9i9udpIwprErn68zQMfwnVc1hwuQxnjfmpUcuzRM8rRWicXmM34y+ B6w27WeWjPvNxD/Q9IoiV+lYTumuwHIgbzo4wO+n0d/VJLA+IL0P1vxy8FyOZPqjLU93ab cwVQuZaT/992+L7HoS7tSsPyePVk/dY= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1622628197; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=TVCY3kReO4aYtRrCdthZIKAAdWvyFm8FGABuqcsqSSo=; b=pGgAcE4KnTbmqOE+hujpUum3zL/WKKjAZkhN3OXvVyZbfpzK1niSe/OXgAOh0kPT1NqzG6 fReRrtfkPrtM3KCg== Received: from director2.suse.de ([192.168.254.72]) by imap3-int with ESMTPSA id PvwVDWVXt2CxPAAALh3uQQ (envelope-from ); Wed, 02 Jun 2021 10:03:17 +0000 Date: Wed, 2 Jun 2021 12:03:16 +0200 From: Michal =?iso-8859-1?Q?Such=E1nek?= To: Masahiro Yamada Cc: Linux Kbuild mailing list , Michal Marek , Linux Kernel Mailing List Subject: Re: [PATCH] Revert "kbuild: merge scripts/mkmakefile to top Makefile" Message-ID: <20210602100315.GL8544@kitsune.suse.cz> References: <20210526173855.5963-1-msuchanek@suse.de> <20210526202825.GB8544@kitsune.suse.cz> <20210529053512.GT8544@kitsune.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 02, 2021 at 06:45:58PM +0900, Masahiro Yamada wrote: > On Sat, May 29, 2021 at 2:35 PM Michal Such?nek 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?nek 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 merged 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 DESTDIR) > > > > > > > > Without the mkmakefile I do not see any way to do it. > > > > > > > > If the kernel makefile is no longer location dependent there is no 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+ykSJGPuq3CO1g_fS=sVDaZrwBPBQ@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. 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 staging > > 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 specified > > that it should be generated for the target directory, not the staging > > directory. > > > > Thanks > > > > Michal > > > > -- > Best Regards > Masahiro Yamada