From patchwork Wed Mar 21 09:03:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 132196 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp1889677ljb; Wed, 21 Mar 2018 02:06:34 -0700 (PDT) X-Google-Smtp-Source: AG47ELuNRV1+GUuQeGCkbPawXMQqA2Sov6OFFmnGpJt/IQxuqt+vzRc6iXylp08f04jkzfV+kc9v X-Received: by 10.80.137.245 with SMTP id h50mr21162865edh.39.1521623194406; Wed, 21 Mar 2018 02:06:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521623194; cv=none; d=google.com; s=arc-20160816; b=ZZeWwqnwEsQHs5GmUVyVuVWpnt0nrq/Gkfda7OTlr79+1GNWmk/KcgP1KHCCuIo96p ACWovc0SHbmUzY9809X+sCksRqZdmyrHswY+BkLcSoHflPSRSP+zEaEk/3E5Hy8u6fxH oARj3y/aUGRELUgsUQHvPG2CXuWDGCB1VEFE/iA0cA7IT6mGz3gpmBxQGG8s1vaheF2Q 6NWjWOxUgMcgYpRmlukQsbYkDA361RSn3N/FwJJX6ahWvkjqjZ2gqD0+uHiHzWxyZW+X MS2p0pOhK2DFmE7HeqkEPGhW2esp+l0ycHsRcoEs2p6mgfvCZuL2Aa/jcGDIJYHHQjo4 fDkA== 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=cJtipo4TPb7LqrLuXrGZ3zrTkHKNi5KUJaaireiOACQ=; b=FXXcqTRMhw26SkGYdRpwSrGkBupss7zjxFuTPHQbhttIo/Q7aV04XMvX01kJc6MfzV +Ea/kHONtlNrq3PruqdJu8odDlVfbOanUytRICS0ze2Wam91RTJTsPBxnfOAs3AQb/JM qc+wTrJACTt7HIw4mAQ2+yA7NVfLruq4WnchtikMKn7bcBM/LyQZCPS6wOJR2mm7g5jk 5xJIpI2GkMmhJ3cyJdeJQ6ajPQnOYMPX8CdiOrwP5e355dFxD/9XNlmY2QPcknb9EuSi k3gt7uEj6zRfCReg5omqpMs2oarM1N1PsKzBe1gtORo7zwlrXJjxMy42Z6MQ7o5WsQzf oyzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=g3aqdDB7; 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 c2si3419894eda.147.2018.03.21.02.06.34; Wed, 21 Mar 2018 02:06:34 -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=g3aqdDB7; 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 D9E5EC21C29; Wed, 21 Mar 2018 09:04:32 +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 D5C21C21E26; Wed, 21 Mar 2018 09:04:30 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 14035C21C6A; Wed, 21 Mar 2018 09:04:15 +0000 (UTC) Received: from conuserg-12.nifty.com (conuserg-12.nifty.com [210.131.2.79]) by lists.denx.de (Postfix) with ESMTPS id 84BDDC21DAF for ; Wed, 21 Mar 2018 09:04:14 +0000 (UTC) Received: from grover.sesame (FL1-125-199-20-195.osk.mesh.ad.jp [125.199.20.195]) (authenticated) by conuserg-12.nifty.com with ESMTP id w2L93irG027481; Wed, 21 Mar 2018 18:03:44 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-12.nifty.com w2L93irG027481 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1521623024; bh=rFuX20fx7Ek9lEg3UtMwSB7GshVX+OboWpWqPnkak6Q=; h=From:To:Cc:Subject:Date:From; b=g3aqdDB7MZny8Fv9vaFlGkgg95LJBS7jJG+69B0yJUZ24QESrd6sNXe1T+ldCwIhC IXChfYNjH1Pw6mw83S4wrClYxmrBp8UKn/uWLTQaVHPNZ5cZVDiOoNhABy6bE89x88 N6kiAAfw8KVN1rA+iAYJRQqP6nxdwPIjejBW4hvQnIEsmUlJPwyRa5vyymZY6bbAcI hQrmTUNEat8bq/I9X9uhrlxpMj5yvnfRgEUTWhTPk7donl9QK0z1/J6/ZRYdQjxxDm FLDVdgbTvYnGmqzsV3D5SDQrYP526uQpXdt5ZmlA1JNKYwglsH96Zr5ZzxGDSQf48I Axzn1Ilo75OyQ== X-Nifty-SrcIP: [125.199.20.195] From: Masahiro Yamada To: u-boot@lists.denx.de Date: Wed, 21 Mar 2018 18:03:32 +0900 Message-Id: <1521623017-29312-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Cc: Tom Rini Subject: [U-Boot] [PATCH 0/5] libfdt: make lib/libfdt/ more synced with scripts/dtc/libfdt/ 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" My goal is to make lib/libfdt/ only contain wrapper files to scripts/dtc/libfdt/. This will ease to pull-in improvement from the upstream. Linux also does this; scripts/dtc/ is the mirror to the upstream DTC. U-Boot has lib/libfdt/fdt_region.c, but it is not a part of libfdt. I want to move it out of lib/libfdt/ directory. Masahiro Yamada (5): libfdt: move FDT_RAMDISK_OVERHEAD to image-fdt.c fdt_region: remove unneeded fdt_internal.h inclusion image.h: add forward declaration of struct fdt_region fdt_region: move fdt_region.c to common/ from lib/libfdt/ libfdt: split fdt_region declarations out to common/Makefile | 2 + {lib/libfdt => common}/fdt_region.c | 3 +- common/image-fdt.c | 3 + common/image-sig.c | 1 + include/fdt_region.h | 303 ++++++++++++++++++++++++++++++++++++ include/image.h | 1 + include/linux/libfdt.h | 302 ----------------------------------- lib/libfdt/Makefile | 3 - tools/Makefile | 5 +- tools/fdtgrep.c | 1 + tools/image-host.c | 1 + 11 files changed, 316 insertions(+), 309 deletions(-) rename {lib/libfdt => common}/fdt_region.c (99%) create mode 100644 include/fdt_region.h