From patchwork Fri Oct 13 09:12:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 115717 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp500628qgn; Fri, 13 Oct 2017 02:15:03 -0700 (PDT) X-Google-Smtp-Source: AOwi7QAkvUM2pA3d00yO1s1iHNZ7nM3DHBpKAm1gM3t4X+cILyzrqoAEUYt0RFFLAbvn4Aj2g8FJ X-Received: by 10.80.151.22 with SMTP id c22mr1303660edb.247.1507886103104; Fri, 13 Oct 2017 02:15:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507886103; cv=none; d=google.com; s=arc-20160816; b=Pt63o19PpxdyXgAPHUj8uDGfS794MxKC2e9efPXw4okLxSIMtM32/DMKkoBFZ1i3z3 5++4AIbc7UMdrs62Llh0beIHtSk8hEOT1YOku2qcdshLh6xnzsG9+5/gDieK1ooRH5Z+ +5GOTrNqM5PoeR+NdzrMcc++6/rirADHklVxIU0/qrq58INtIrK2fkxmQ2BfzlHYGvRn J+VqUXuxCAsPPD5YjnEvyMlfSPoJWOjeNSbaPYmXSo9ID95DwHdqLWb0ken+cpaqf4+L lnPm2coDoABA48yC70aOlA5q9C21VuYYO9cEv6HBUda2uxgAKk/v/pkgLVqYnsbEG28v w7xg== 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=Fmg6CICREOXn4ibHK2tp9X8FQgYsAO0RUMNy0FIHnSo=; b=QZAyYGcng1keb5H4pjeypYjnb4wQIy/r61Zpvs7eT/o69pRABNPi3+VaWU7BQVzPfh wNhqxRMXO/MYzLEvd4EQLKNf0Ewf7pzdgO1gj8YMyFMLt2NvLIUcxhY+5TKbf4CTda3E 5hbP5lZzSk5L5Xh4rwve3FJhqm/ae10Q7DVuaKkgMpPUzUgxYYKRLJNCWkE8QaN/loRI D4CcrZzVdeABvK9/kbpUhEqaLa5QDrYWSH/58HPt9d2mShjRFBZ/Ir3pWg3Hk+Wk8nia KKebpXIKia15bE63dT2Au4zARnMbtKh+rOPPjsB07HJAukLdHP7SQrmqxGGxqCIogPON XqgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=KyUrYi2W; 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 s26si644955edd.251.2017.10.13.02.15.02; Fri, 13 Oct 2017 02:15:03 -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=KyUrYi2W; 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 9CD9FC21F5D; Fri, 13 Oct 2017 09:14:02 +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 3925DC21FC3; Fri, 13 Oct 2017 09:13:14 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 7C850C21EEF; Fri, 13 Oct 2017 09:13:10 +0000 (UTC) Received: from conuserg-08.nifty.com (conuserg-08.nifty.com [210.131.2.75]) by lists.denx.de (Postfix) with ESMTPS id 3DCA6C21EEF for ; Fri, 13 Oct 2017 09:13:07 +0000 (UTC) Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-08.nifty.com with ESMTP id v9D9CiH1002457; Fri, 13 Oct 2017 18:12:45 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com v9D9CiH1002457 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1507885965; bh=xpjPzP4cRfwBa29lXQ05uC1+cDBGODmhEyOnrjrnmzI=; h=From:To:Cc:Subject:Date:From; b=KyUrYi2WWwSXYDBSuI3uyHJAJFOy6RBV92jdNXhiEPHD5JpW1n8nq00CAdF7APf/5 pQs7C7e/5ohDoDRcf3kNNeicjfGNKb1aJnssIMyW6mz8RbqV10BGl4KqsnkJ1tn6Is gbUUu5Oqg61W1DlkCzoPQ+kRFX7bsVJZRY+qLyfdwCtmPVQ1atKDHtYtafl0n8kOU8 hGxBHi3ILB1RE6mpb1QWRGRd9XPKUTkSd+hKObUUAf+o7aaAoUqCcmsuZBR2yPXxXB XWlCDlmKav/duimcbhAgLZb3JsYg5wIZ8dddN9Vm4boz5QAqqSH2+gaYD4mtwMWFdh oOQG4GCn5cqPQ== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: u-boot@lists.denx.de Date: Fri, 13 Oct 2017 18:12:38 +0900 Message-Id: <1507885961-12665-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Cc: Tom Rini Subject: [U-Boot] [PATCH 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. 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(-)