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: 888646 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=socionext.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=nifty.com header.i=@nifty.com header.b="g3aqdDB7"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 405kRl5sYxz9s0v for ; Wed, 21 Mar 2018 20:05:55 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 8255FC21DF9; 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