From 762814f9f86cf7a83670cad8188be5f2e0f4f28b Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 7 Apr 2009 00:30:46 +0000 Subject: [PATCH] binutils: add a separate package for objdump (useful for oprofile), remove dependency on x86 SVN-Revision: 15124 --- devel/binutils/Makefile | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/devel/binutils/Makefile b/devel/binutils/Makefile index ea39f63e50..dcd76d41ca 100644 --- a/devel/binutils/Makefile +++ b/devel/binutils/Makefile @@ -27,7 +27,14 @@ define Package/binutils SECTION:=devel CATEGORY:=Development TITLE:=binutils - DEPENDS:=@TARGET_x86 + DEPENDS:=+objdump +endef + +define Package/objdump + SECTION:=devel + CATEGORY:=Development + TITLE:=objdump + DEPENDS:=+zlib endef define Package/binutils/description @@ -62,10 +69,16 @@ define Build/Compile $(call Build/Compile/Default) endef +define Package/objdump/install + $(INSTALL_DIR) $(1)/usr/bin + $(CP) $(PKG_INSTALL_DIR)/usr/*-linux/bin/objdump $(1)/usr/bin/ +endef + define Package/binutils/install $(INSTALL_DIR) $(1)/usr $(CP) $(PKG_INSTALL_DIR)/usr/bin/ $(1)/usr/ $(CP) $(PKG_INSTALL_DIR)/usr/*-linux $(1)/usr + rm -f $(1)/usr/bin/objdump endef define Package/libbdf/install @@ -73,4 +86,5 @@ define Package/libbdf/install endef $(eval $(call BuildPackage,binutils)) +$(eval $(call BuildPackage,objdump)) $(eval $(call BuildPackage,libbfd)) -- 2.30.2