From patchwork Fri Oct 13 09:51:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 115723 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp530696qgn; Fri, 13 Oct 2017 02:53:32 -0700 (PDT) X-Google-Smtp-Source: AOwi7QAdNTTgoWn7uxEg7mbX+hlhBSvA2i49NsGNa5AgJi+1l3tm6OUGRikBq0rR74/bWLMjMNLV X-Received: by 10.80.134.226 with SMTP id 31mr1427798edu.129.1507888412615; Fri, 13 Oct 2017 02:53:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507888412; cv=none; d=google.com; s=arc-20160816; b=gA/RuUFNGbTPbc3WZmf2+a1TC4i6pkNDu92n7ndaS/2vrrjLSyZD8MpkiWoZ7yhREt MUHt9YBeOkRxDg8PlJ3oSKcuHLuDqH2ff0t6XhWsvTApuorAwGSedcxGDJ4vyoKgb016 QIKNOTeqU+gpP4SInEZpQfsMLDED5eT9KVYhclibPRhXNA1D8zV1b+NOZTY4G5esDgpT bnDuTafBpCXdFAlx0ZE8QJEXDn77QgrM28aANagF8B0QQ6h2l9PP2GCTUCGl1jmjAnBA uCn8j09up0k6a+TZhjnlnVbh4ppfvAoW0IKY+GEv2oszEjfrgo80OY7jvUncDfcZ6NXE yGRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:message-id:date:to:from :dkim-signature:dkim-filter:arc-authentication-results; bh=I/Qtb0ronVnCinnqQH69NEZhmKoPQNkEZuUSHFswcnw=; b=c56i4i7ogabx5y9LajbYBYOnypyadXZ7IgSIG1lF8yKoTVl8XqUmvO0q6zf4m17HL3 wHcQRnVt46fUt4qcMdHpEDn0OJ71IlfRfOSn/E4WXko/4F8VwvibXlvnY/008eswtTwB ebpODt9yZJ3pd6emdublhs2aQRCmv5Zj2cBVxtFuXGl2xJffFHYpFJb4vaKjHefo+rP3 ky1TmoeT9vSt3Bj75jIhfG1Y4CfZ2TBCa7bmxKdXlccZ+ap+c/518wwcYPSb7kGIXdZK TSdU5eUMVi0YyVYi5t7fRqxw+qkHbB5qjuht0zBmLwburyOxGWiCsStH9u/itF1VKlX0 kJbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=rjCnBg6V; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id g92si688559ede.406.2017.10.13.02.53.32; Fri, 13 Oct 2017 02:53:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=rjCnBg6V; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by lists.denx.de (Postfix, from userid 105) id 13C21C21D82; Fri, 13 Oct 2017 09:53:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 9A0B3C21F06; Fri, 13 Oct 2017 09:52:17 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id CE1EAC21C59; Fri, 13 Oct 2017 09:52:14 +0000 (UTC) Received: from conuserg-10.nifty.com (conuserg-10.nifty.com [210.131.2.77]) by lists.denx.de (Postfix) with ESMTPS id C06EBC21D99 for ; Fri, 13 Oct 2017 09:52:13 +0000 (UTC) Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-10.nifty.com with ESMTP id v9D9plP3031812; Fri, 13 Oct 2017 18:51:48 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-10.nifty.com v9D9plP3031812 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1507888308; bh=Jujsg1imhLfnpxSVHoz6o5HgEwbdFYmzoEYOIascVkw=; h=From:To:Cc:Subject:Date:From; b=rjCnBg6VjC8F5YFrjX6Q+uY/cAHrOJnt8EKY6cY6cBXjt+p1lHusOuqcJWd7iNWvi w4HJ+/LL9z38eFKK345GabtukN/GeEPFRJxQEIZhxl8gRptFOiw2GXnTXuksXzBq9j xm3fu6hDFtZqEfOnAlTD/B3GQEmJpfZhvxLbYfBaXy9NmNokTkgL7R/R/cigQWiMYF xZ4jCZq9l9V3ytTtwPCN63rcnyqeRH0KbxSBSB/+BdLKKJtrdtKX1gCCCg/3g4QZ7m gkx0xJcOdj/6TkG8FZJXktfVIQG9l5XISbv02Y1u5KAL86PAKDcNic5oX4/0fDjiIJ W91XpoStyDDlg== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: u-boot@lists.denx.de Date: Fri, 13 Oct 2017 18:51:42 +0900 Message-Id: <1507888305-20628-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Cc: Tom Rini Subject: [U-Boot] [PATCH v2 0/3] kbuild: always use relative path for __FILE__ X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" We discussed the __FILE__ problem when U-Boot is built out of tree. https://www.mail-archive.com/u-boot@lists.denx.de/msg242852.html The deeper your build directory is located, the larger your U-Boot image becomes. If your platform has memory footprint limit, this is a problem. Recently, I submitted the following patches to Kbuild ML. (no RFC, this time) https://patchwork.kernel.org/patch/10001419/ https://patchwork.kernel.org/patch/10001409/ I consider them for Linux 4.15 unless there is a strong objection or a problem report. This series is a port for U-Boot. If Tom wants to pick this up earlier, it is OK. If not in hurry, you can wait for the activity in Linux. Either will do. Changes in v2: - Rephrase comments for clarification - Fix a typo Masahiro Yamada (2): kbuild: add stringify helper to quote a string passed to C files kbuild: redefine __FILE__ as relative path from $(srctree) if possible Michal Marek (1): kbuild: Get rid of KBUILD_STR Makefile | 9 +++++++++ scripts/Kbuild.include | 4 ++++ scripts/Makefile.lib | 8 ++++---- 3 files changed, 17 insertions(+), 4 deletions(-)