summaryrefslogtreecommitdiff
path: root/package/binutils
diff options
context:
space:
mode:
Diffstat (limited to 'package/binutils')
-rw-r--r--package/binutils/Makefile29
1 files changed, 15 insertions, 14 deletions
diff --git a/package/binutils/Makefile b/package/binutils/Makefile
index 3d54ff6ea..cd33d5ac7 100644
--- a/package/binutils/Makefile
+++ b/package/binutils/Makefile
@@ -4,13 +4,20 @@
include ${TOPDIR}/rules.mk
include ${TOPDIR}/toolchain/binutils/Makefile.inc
-PKG_DESCR:= binary utilities (nm, objdump, ar, as, ..)
-PKG_SECTION:= comp
+PKG_DESCR:= binary utilities (nm, objdump, as, ..)
+PKG_SECTION:= lang
+
+# subpackage
+PKG_NAME_LIBBFD:= libbfd
+PKG_DESCR_LIBBFD:= bfd library
+PKG_SECTION_LIBBFD:= libs
+
PKG_HOST_DEPENDS:= !cygwin
include ${TOPDIR}/mk/package.mk
$(eval $(call PKG_template,BINUTILS,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+$(eval $(call PKG_template,LIBBFD,${PKG_NAME_LIBBFD},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR_LIBBFD},${PKG_SECTION_LIBBFD}))
TCFLAGS+= -fPIC
CONFIGURE_ARGS+= --disable-werror \
@@ -18,18 +25,12 @@ CONFIGURE_ARGS+= --disable-werror \
--target=$(REAL_GNU_TARGET_NAME)
post-install:
- ${INSTALL_DIR} ${IDIR_BINUTILS}/usr/lib
- $(CP) ${WRKINST}/usr/lib/*.so ${IDIR_BINUTILS}/usr/lib
+ ${INSTALL_DIR} ${IDIR_LIBBFD}/usr/lib
+ $(CP) ${WRKINST}/usr/lib/*.so ${IDIR_LIBBFD}/usr/lib
${INSTALL_DIR} ${IDIR_BINUTILS}/usr/bin
- ${INSTALL_BIN} ${WRKINST}/usr/bin/nm ${IDIR_BINUTILS}/usr/bin/
- ${INSTALL_BIN} ${WRKINST}/usr/bin/size ${IDIR_BINUTILS}/usr/bin/
- ${INSTALL_BIN} ${WRKINST}/usr/bin/ar ${IDIR_BINUTILS}/usr/bin/
- ${INSTALL_BIN} ${WRKINST}/usr/bin/as ${IDIR_BINUTILS}/usr/bin/
- ${INSTALL_BIN} ${WRKINST}/usr/bin/ld ${IDIR_BINUTILS}/usr/bin/
- ${INSTALL_BIN} ${WRKINST}/usr/bin/strip ${IDIR_BINUTILS}/usr/bin/
- ${INSTALL_BIN} ${WRKINST}/usr/bin/objdump ${IDIR_BINUTILS}/usr/bin/
- ${INSTALL_BIN} ${WRKINST}/usr/bin/objcopy ${IDIR_BINUTILS}/usr/bin/
- ${INSTALL_BIN} ${WRKINST}/usr/bin/ranlib ${IDIR_BINUTILS}/usr/bin/
- ${INSTALL_BIN} ${WRKINST}/usr/bin/readelf ${IDIR_BINUTILS}/usr/bin/
+ ${INSTALL_BIN} ${WRKINST}/usr/bin/{ar,as,ld,strip,size,nm} \
+ ${IDIR_BINUTILS}/usr/bin/
+ ${INSTALL_BIN} ${WRKINST}/usr/bin/{objcopy,ranlib,readelf,objdump} \
+ ${IDIR_BINUTILS}/usr/bin/
include ${TOPDIR}/mk/pkg-bottom.mk