Date:2011-04-29 11:10:06 (12 years 10 months ago)
Author:Xiangfu Liu
Commit:2faacbcb6ef4d21126f213bc07794349e4242e74
Message:Add-gfortran-compiler-support-to-the-toolchain

Files: package/base-files/Makefile (5 diffs)
toolchain/gcc/Config.in (1 diff)
toolchain/gcc/common.mk (1 diff)

Change Details

package/base-files/Makefile
9999    endmenu
100100endef
101101
102
103102define Package/libssp
104103$(call Package/gcc/Default)
105104  DEPENDS+=@SSP_SUPPORT
...... 
246245endef
247246
248247
248define Package/libgfortran
249$(call Package/gcc/Default)
250  TITLE:=GFortran support library
251  DEPENDS+=@!(TARGET_avr32||TARGET_coldfire) @INSTALL_GFORTRAN
252endef
253
254define Package/libgfortran/config
255    menu "Configuration"
256        depends EXTERNAL_TOOLCHAIN && PACKAGE_libgfortran
257
258    config LIBGFORTRAN_ROOT_DIR
259        string
260        prompt "libgfortran shared library base directory"
261        depends EXTERNAL_TOOLCHAIN && PACKAGE_libgfortran
262        default TOOLCHAIN_ROOT if !NATIVE_TOOLCHAIN
263        default "/" if NATIVE_TOOLCHAIN
264
265    config LIBGFORTRAN_FILE_SPEC
266        string
267        prompt "libgcc shared library files (use wildcards)"
268        depends EXTERNAL_TOOLCHAIN && PACKAGE_libgfortran
269        default "./usr/lib/libgfortran.so.*"
270
271    endmenu
272endef
273
249274define Package/ldd
250275$(call Package/libc/Default)
251276  SECTION:=utils
...... 
465490    $(CP) $(PKG_BUILD_DIR)/libgcc_s.so.* $(1)/lib/
466491  endef
467492
493  define Package/libgfortran/install
494    $(INSTALL_DIR) $(1)/usr/lib
495    $(CP) $(TOOLCHAIN_DIR)/lib/libgfortran.so.* $(1)/usr/lib/
496  endef
497
468498  define Package/libssp/install
469499    $(INSTALL_DIR) $(1)/lib
470500    $(CP) $(TOOLCHAIN_DIR)/lib/libssp.so.* $(1)/lib/
...... 
580610    exit 0
581611  endef
582612
613  define Package/libgfortran/install
614    for file in $(call qstrip,$(CONFIG_LIBGFORTRAN_FILE_SPEC)); do \
615        dir=`dirname $$$$file` ; \
616        $(INSTALL_DIR) $(1)/$$$$dir ; \
617        $(CP) $(call qstrip,$(CONFIG_LIBGFORTRAN_ROOT_DIR))/$$$$file $(1)/$$$$dir/ ; \
618    done
619  endef
620
583621  define Package/libssp/install
584622    for file in $(call qstrip,$(CONFIG_LIBSSP_FILE_SPEC)); do \
585623        dir=`dirname $$$$file` ; \
...... 
656694$(eval $(call BuildPackage,libstdcpp))
657695$(eval $(call BuildPackage,libpthread))
658696$(eval $(call BuildPackage,librt))
697$(eval $(call BuildPackage,libgfortran))
659698$(eval $(call BuildPackage,ldd))
660699$(eval $(call BuildPackage,ldconfig))
toolchain/gcc/Config.in
8080    default n
8181    help
8282        Build/install java compiler and GNU classpath ?
83
84
85config INSTALL_GFORTRAN
86    bool
87    prompt "Build/install fortran compiler?" if TOOLCHAINOPTS
88    default n
89    help
90        Build/install GNU fortran compiler ?
toolchain/gcc/common.mk
8686HOST_STAMP_INSTALLED:=$(STAGING_DIR_HOST)/stamp/.gcc_$(GCC_VARIANT)_installed
8787
8888SEP:=,
89TARGET_LANGUAGES:="c$(if $(CONFIG_INSTALL_LIBSTDCPP),$(SEP)c++)$(if $(CONFIG_INSTALL_LIBGCJ),$(SEP)java)"
89TARGET_LANGUAGES:="c$(if $(CONFIG_INSTALL_LIBSTDCPP),$(SEP)c++)$(if $(CONFIG_INSTALL_LIBGCJ),$(SEP)java)$(if $(CONFIG_INSTALL_GFORTRAN),$(SEP)fortran)"
9090
9191export libgcc_cv_fixed_point=no
9292ifdef CONFIG_USE_UCLIBC

Archive Download the corresponding diff file



interactive