From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from 1wt.eu (ded1.1wt.eu [163.172.96.212]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CD923165F13 for ; Fri, 27 Jun 2025 05:46:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=163.172.96.212 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751003191; cv=none; b=DtZolHiuxkIk2sgPK6pLiq5JpmVehRlo7dvZxqifpKvwg2JlCuDkSbFkI8mfyIm54OHDStcd9LJwFYfrDaZUe/eLeOkOU13PsKK6kkalKm57wfHUY7W13JodLS/DdCFvz9ThpzXRT4i1mpUdMgTzeyjQIcWYkubB+LMLbbHB8AY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751003191; c=relaxed/simple; bh=3cwPAuT/GBOjsOhU3h6oBD1dITjG5pglG/5gH09gX7A=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=CaW8BtXvfMeBvvweZd3CB2B7e6WdD4H2mOP0tW2TamAfBSEgCHwa/bh8Em9uKBiS4TuedlAX0Hs/KjaaGB6xf+xqpXv0WxxjMEdjXSmwU+AT05yGWVgH9xEk2E4OCt+bBGp0YiCdv7AjIqpSaIj9SiFUyCFK/YBYxaK0ToJcbsI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=1wt.eu; spf=pass smtp.mailfrom=1wt.eu; arc=none smtp.client-ip=163.172.96.212 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=1wt.eu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=1wt.eu Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id 55R5kIb2004544; Fri, 27 Jun 2025 07:46:18 +0200 Date: Fri, 27 Jun 2025 07:46:18 +0200 From: Willy Tarreau To: Thomas =?iso-8859-1?Q?Wei=DFschuh?= Cc: Arnd Bergmann , Thomas =?iso-8859-1?Q?Wei=DFschuh?= , linux-kernel@vger.kernel.org, Masahiro Yamada Subject: Re: [RFC PATCH 3/3] tools/nolibc: add a new "install_all_archs" target Message-ID: <20250627054618.GA4540@1wt.eu> References: <20250620103705.10208-1-w@1wt.eu> <20250620103705.10208-4-w@1wt.eu> <92eda9ff-116e-4ec1-930c-7474da9652fc@t-8ch.de> <89a2e713-edfd-4556-b321-cdccc3437a43@t-8ch.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <89a2e713-edfd-4556-b321-cdccc3437a43@t-8ch.de> User-Agent: Mutt/1.10.1 (2018-07-13) On Fri, Jun 27, 2025 at 07:11:45AM +0200, Thomas Weißschuh wrote: > On 2025-06-26 23:15:07+0200, Arnd Bergmann wrote: (...) > With the symlink, a given generic UAPI tree can be specialized to one > specific architecture. But here we want to create a full sysroot that works > for all architectures *at the same time*. So a symlink would not be enough. Exactly! > > If it's indeed possible to concatenate the path name (I couldn't > > figure that out either), that could also be done in place of the > > symlink but simpler than the #if/#elif/#elif/... block, like > > > > #include // defines ARCH_PREFIX > > #include CONCAT(ARCH_PREFIX, ioctl.h) > > If we can't get it to work like this I would still prefer to have a > template header file which gets specialized with sed instead of the > Makefile loop. The thing is that it's not a single header, it's for each header file present in asm/. And we can't request that anyone adding anything into asm would also have to maintain one extra template for each of them. Or I'm simply not getting how you would envision it maybe. Willy