From patchwork Wed Dec 17 13:37:02 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Golle X-Patchwork-Id: 422262 X-Patchwork-Delegate: nbd@openwrt.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 6AB891401AF for ; Thu, 18 Dec 2014 00:36:39 +1100 (AEDT) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 156DF2890DA; Wed, 17 Dec 2014 14:34:28 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00, T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 9E58B2800B8 for ; Wed, 17 Dec 2014 14:34:19 +0100 (CET) X-policyd-weight: using cached result; rate: -7.6 Received: from fudo.makrotopia.org (fudo.makrotopia.org [5.135.190.93]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Wed, 17 Dec 2014 14:34:19 +0100 (CET) Received: from local by fudo.makrotopia.org with esmtpsa (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.84) (envelope-from ) id 1Y1Elp-0004Ju-MN; Wed, 17 Dec 2014 14:36:05 +0100 Date: Wed, 17 Dec 2014 14:37:02 +0100 From: Daniel Golle To: openwrt-devel@lists.openwrt.org Message-ID: <20141217133655.GA1050@makrotopia.org> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) Subject: [OpenWrt-Devel] [PATCH] binutils: break-out libbfd, libopcodes and ar X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" Package libbfd, libopcodes and ar seperately. Signed-off-by: Daniel Golle --- package/devel/binutils/Makefile | 50 ++++++++++++++++++++++++++++++++++++----- 1 file changed, 44 insertions(+), 6 deletions(-) diff --git a/package/devel/binutils/Makefile b/package/devel/binutils/Makefile index ff968b9..cf77690 100644 --- a/package/devel/binutils/Makefile +++ b/package/devel/binutils/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=binutils PKG_VERSION:=2.24 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE_URL:=@GNU/binutils PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 @@ -27,18 +27,39 @@ PKG_BUILD_PARALLEL:=1 include $(INCLUDE_DIR)/package.mk +define Package/libbfd + SECTION:=libs + CATEGORY:=Libraries + TITLE:=libbfd + DEPENDS:=+zlib +endef + +define Package/libopcodes + SECTION:=libs + CATEGORY:=Libraries + TITLE:=libbfd + DEPENDS:=+libbfd +endef + define Package/binutils SECTION:=devel CATEGORY:=Development TITLE:=binutils - DEPENDS:=+objdump + DEPENDS:=+objdump +ar endef define Package/objdump SECTION:=devel CATEGORY:=Development TITLE:=objdump - DEPENDS:=+zlib + DEPENDS:=+libopcodes +endef + +define Package/ar + SECTION:=devel + CATEGORY:=Development + TITLE:=ar + DEPENDS:=+zlib +libbfd endef define Package/binutils/description @@ -65,11 +86,24 @@ define Build/InstallDev $(CP) $(PKG_INSTALL_DIR)/* $(1)/ endef +define Package/libbfd/install + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libbfd*.so $(1)/usr/lib/ +endef + +define Package/libopcodes/install + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libopcodes*.so $(1)/usr/lib/ +endef + define Package/objdump/install - $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib + $(INSTALL_DIR) $(1)/usr/bin $(CP) $(PKG_INSTALL_DIR)/usr/bin/objdump $(1)/usr/bin/ - $(CP) $(PKG_INSTALL_DIR)/usr/lib/libopcodes*.so $(1)/usr/lib/ - $(CP) $(PKG_INSTALL_DIR)/usr/lib/libbfd*.so $(1)/usr/lib/ +endef + +define Package/ar/install + $(INSTALL_DIR) $(1)/usr/bin + $(CP) $(PKG_INSTALL_DIR)/usr/bin/ar $(1)/usr/bin/ endef define Package/binutils/install @@ -77,7 +111,11 @@ define Package/binutils/install $(CP) $(PKG_INSTALL_DIR)/usr/bin/ $(1)/usr/ mv $(1)/usr/bin/strings $(1)/bin/strings rm -f $(1)/usr/bin/objdump + rm -f $(1)/usr/bin/ar endef +$(eval $(call BuildPackage,libbfd)) +$(eval $(call BuildPackage,libopcodes)) $(eval $(call BuildPackage,binutils)) $(eval $(call BuildPackage,objdump)) +$(eval $(call BuildPackage,ar))