binutils: add a separate package for objdump (useful for oprofile), remove dependency on x86

git-svn-id: svn://svn.openwrt.org/openwrt/packages@15124 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2009-04-07 00:30:46 +00:00
parent 1cdd6e7833
commit 587347c6d5

View File

@ -27,7 +27,14 @@ define Package/binutils
SECTION:=devel SECTION:=devel
CATEGORY:=Development CATEGORY:=Development
TITLE:=binutils TITLE:=binutils
DEPENDS:=@TARGET_x86 DEPENDS:=+objdump
endef
define Package/objdump
SECTION:=devel
CATEGORY:=Development
TITLE:=objdump
DEPENDS:=+zlib
endef endef
define Package/binutils/description define Package/binutils/description
@ -62,10 +69,16 @@ define Build/Compile
$(call Build/Compile/Default) $(call Build/Compile/Default)
endef 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 define Package/binutils/install
$(INSTALL_DIR) $(1)/usr $(INSTALL_DIR) $(1)/usr
$(CP) $(PKG_INSTALL_DIR)/usr/bin/ $(1)/usr/ $(CP) $(PKG_INSTALL_DIR)/usr/bin/ $(1)/usr/
$(CP) $(PKG_INSTALL_DIR)/usr/*-linux $(1)/usr $(CP) $(PKG_INSTALL_DIR)/usr/*-linux $(1)/usr
rm -f $(1)/usr/bin/objdump
endef endef
define Package/libbdf/install define Package/libbdf/install
@ -73,4 +86,5 @@ define Package/libbdf/install
endef endef
$(eval $(call BuildPackage,binutils)) $(eval $(call BuildPackage,binutils))
$(eval $(call BuildPackage,objdump))
$(eval $(call BuildPackage,libbfd)) $(eval $(call BuildPackage,libbfd))