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:
parent
1cdd6e7833
commit
587347c6d5
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user