1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include ${ADK_TOPDIR}/rules.mk
5 include ${ADK_TOPDIR}/toolchain
/binutils
/Makefile.inc
8 PKG_DESCR
:= binary utilities
(nm
, objdump
, as, ..
)
9 PKG_SECTION
:= dev
/tools
14 PKG_SUBPKGS
:= BINUTILS LIBBFD
15 PKGSD_LIBBFD
:= binary file descriptor library
16 PKGSC_LIBBFD
:= libs
/misc
18 PKG_HOST_DEPENDS
:= !cygwin
20 include ${ADK_TOPDIR}/mk
/package.mk
22 $(eval
$(call PKG_template
,BINUTILS
,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
23 $(eval
$(call PKG_template
,LIBBFD
,libbfd
,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_LIBBFD},${PKGSD_LIBBFD},${PKGSC_LIBBFD},${PKG_OPTS}))
25 ifeq ($(ADK_TARGET_ARCH_BFIN
),y
)
26 TARGET_CFLAGS
:= $(subst Os
,O1
,$(TARGET_CFLAGS
))
27 TARGET_CXXFLAGS
:= $(subst Os
,O1
,$(TARGET_CFLAGS
))
31 CONFIGURE_ENV
+= ac_cv_prog_MAKEINFO
=missing
33 ifeq ($(ADK_TARGET_ARCH_SH
)$(ADK_TARGET_ARCH_X86_64
),)
34 CONFIGURE_ARGS
+= --disable-multilib
36 CONFIGURE_ARGS
+= --enable-multilib
38 CONFIGURE_ARGS
+= --disable-werror \
42 --disable-install-libiberty \
43 --host
=$(GNU_TARGET_NAME
) \
44 --target
=$(GNU_TARGET_NAME
)
47 ${INSTALL_DIR} ${IDIR_LIBBFD}/usr
/lib
48 $(CP
) ${WRKINST}/usr
/lib
/*.so
* ${IDIR_LIBBFD}/usr
/lib
50 ${INSTALL_DIR} ${STAGING_TARGET_DIR}/usr
/lib
/binutils
51 $(CP
) ${WRKBUILD}/libiberty
/libiberty.a \
52 ${STAGING_TARGET_DIR}/usr
/lib
/binutils
55 ${INSTALL_DIR} ${IDIR_BINUTILS}/usr
/bin
56 ${INSTALL_BIN} ${WRKINST}/usr
/bin
/{ar,as,ld,strip,strings
,size
,nm
} \
57 ${IDIR_BINUTILS}/usr
/bin
/
58 ${INSTALL_BIN} ${WRKINST}/usr
/bin
/{objcopy
,ranlib
,readelf
,objdump
} \
59 ${IDIR_BINUTILS}/usr
/bin
/
61 include ${ADK_TOPDIR}/mk
/pkg-bottom.mk