Date:2011-04-29 11:10:06 (7 years 11 months ago)
Author:Xiangfu Liu
Commit:5d89d8a6695bb342b47da41c538b8aa2f9bcd66d
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
100100    endmenu
101101endef
102102
103
104103define Package/libssp
105104$(call Package/gcc/Default)
106105  DEPENDS+=@SSP_SUPPORT
...... 
247246endef
248247
249248
249define Package/libgfortran
250$(call Package/gcc/Default)
251  TITLE:=GFortran support library
252  DEPENDS+=@!(TARGET_avr32||TARGET_coldfire) @INSTALL_GFORTRAN
253endef
254
255define Package/libgfortran/config
256    menu "Configuration"
257        depends EXTERNAL_TOOLCHAIN && PACKAGE_libgfortran
258
259    config LIBGFORTRAN_ROOT_DIR
260        string
261        prompt "libgfortran shared library base directory"
262        depends EXTERNAL_TOOLCHAIN && PACKAGE_libgfortran
263        default TOOLCHAIN_ROOT if !NATIVE_TOOLCHAIN
264        default "/" if NATIVE_TOOLCHAIN
265
266    config LIBGFORTRAN_FILE_SPEC
267        string
268        prompt "libgcc shared library files (use wildcards)"
269        depends EXTERNAL_TOOLCHAIN && PACKAGE_libgfortran
270        default "./usr/lib/libgfortran.so.*"
271
272    endmenu
273endef
274
250275define Package/ldd
251276$(call Package/libc/Default)
252277  SECTION:=utils
...... 
466491    $(CP) $(PKG_BUILD_DIR)/libgcc_s.so.* $(1)/lib/
467492  endef
468493
494  define Package/libgfortran/install
495    $(INSTALL_DIR) $(1)/usr/lib
496    $(CP) $(TOOLCHAIN_DIR)/lib/libgfortran.so.* $(1)/usr/lib/
497  endef
498
469499  define Package/libssp/install
470500    $(INSTALL_DIR) $(1)/lib
471501    $(CP) $(TOOLCHAIN_DIR)/lib/libssp.so.* $(1)/lib/
...... 
581611    exit 0
582612  endef
583613
614  define Package/libgfortran/install
615    for file in $(call qstrip,$(CONFIG_LIBGFORTRAN_FILE_SPEC)); do \
616        dir=`dirname $$$$file` ; \
617        $(INSTALL_DIR) $(1)/$$$$dir ; \
618        $(CP) $(call qstrip,$(CONFIG_LIBGFORTRAN_ROOT_DIR))/$$$$file $(1)/$$$$dir/ ; \
619    done
620  endef
621
584622  define Package/libssp/install
585623    for file in $(call qstrip,$(CONFIG_LIBSSP_FILE_SPEC)); do \
586624        dir=`dirname $$$$file` ; \
...... 
657695$(eval $(call BuildPackage,libstdcpp))
658696$(eval $(call BuildPackage,libpthread))
659697$(eval $(call BuildPackage,librt))
698$(eval $(call BuildPackage,libgfortran))
660699$(eval $(call BuildPackage,ldd))
661700$(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