From patchwork Thu May 26 15:30:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandru Elisei X-Patchwork-Id: 12862516 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id AB191C433FE for ; Thu, 26 May 2022 15:32:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=iu+rtIcX08JlAXHi0Xym8yYdK02+E7MZIJCRvzOR6qY=; b=mjexuyyPOtg99z xPV0Il9LmT2AHobXu8rDoPUKCKLfmk8zKYtS4QguNrCX4jtZTK/IkjX1BK5896ZIDQXSssGnjjUS1 X+8MvVkeRjcCgHVy0sqKbFWJ+Z/KgU1dJ/cYfSpIEhO0QupxiQRBqPFxqwiWrpNnVJhEzeBGudmUK Mz7xjgYlMBA5GL6Qmk5QKwK/fWCvN8F0TctQnZtBrstFtx3TbpJImdX8GItSg16ZZlM2B1Cj2ue9K n3FUQc8EeIFebUL05mafZ2I6o4Kfpu6oiNoY8A8WF5nmqXew6gBhTNd4eDX3uqjoI6ZFORyvUIGpS s3gut18n7Y9WexDj3toQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nuFS5-00FJuL-Cg; Thu, 26 May 2022 15:31:05 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nuFRy-00FJsz-AA for linux-arm-kernel@lists.infradead.org; Thu, 26 May 2022 15:30:59 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 489E01688; Thu, 26 May 2022 08:30:56 -0700 (PDT) Received: from monolith.localdoman (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 7B00D3F66F; Thu, 26 May 2022 08:30:54 -0700 (PDT) From: Alexandru Elisei To: will@kernel.org, julien.thierry.kdev@gmail.com, maz@kernel.org, andre.przywara@arm.com, suzuki.poulose@arm.com, james.morse@arm.com, vladimir.murzin@arm.com, anup@brainfault.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu Subject: [PATCH kvmtool 2/2] INSTALL: Remove all mentions of libfdt Date: Thu, 26 May 2022 16:30:58 +0100 Message-Id: <20220526153058.123290-3-alexandru.elisei@arm.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220526153058.123290-1-alexandru.elisei@arm.com> References: <20220526153058.123290-1-alexandru.elisei@arm.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220526_083058_486371_5E15BBC0 X-CRM114-Status: GOOD ( 10.98 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org kvmtool doesn't have a dependency on the external libfdt library anymore, remove the instructions to compile and install it. Signed-off-by: Alexandru Elisei --- INSTALL | 27 +-------------------------- 1 file changed, 1 insertion(+), 26 deletions(-) diff --git a/INSTALL b/INSTALL index 951b12339887..db51c0fa8db6 100644 --- a/INSTALL +++ b/INSTALL @@ -26,11 +26,6 @@ For Fedora based systems: For OpenSUSE based systems: # zypper install glibc-devel-static -Architectures which require device tree (PowerPC, ARM, ARM64, RISC-V) also -require libfdt. - deb: $ sudo apt-get install libfdt-dev - Fedora: # yum install libfdt-devel - OpenSUSE: # zypper install libfdt1-devel Also see "Cross compiling" below. Optional libraries @@ -77,24 +72,4 @@ Missing libraries when cross-compiling The cross-compiler will look for target libraries in its SYSROOT directory, so you need to put the header and library files (.so) there. While most cross compiler packages come with the target's glibc already -installed, optional libraries (or libfdt) maybe not. -On multiarch system you should be able to install those be appending -the architecture name after the package (example for ARM64): -$ sudo apt-get install libfdt-dev:arm64 - -PowerPC, ARM/ARM64 and RISC-V require libfdt to be installed. If you cannot use -precompiled mulitarch packages, you could either copy the required header and -library files from an installed target system into the SYSROOT (you will need -/usr/include/*fdt*.h and /usr/lib64/libfdt-v.v.v.so and its symlinks), or you -can cross-compile the libfdt library yourself: - -$ git clone git://git.kernel.org/pub/scm/utils/dtc/dtc.git -$ cd dtc -$ export CC=${CROSS_COMPILE}gcc -$ TRIPLET=$($CC -dumpmachine) -$ SYSROOT=$($CC -print-sysroot) -$ make libfdt -$ sudo make DESTDIR=$SYSROOT PREFIX=/usr LIBDIR=/usr/lib/$TRIPLET install-lib install-includes - -This assumes a multiarch-enabled system, if there is no per-arch directory for -libraries, replace the LIBDIR paths above with LIBDIR=/usr/lib or /usr/lib64. +installed, optional libraries may not be present.