Date:2011-01-02 16:23:55 (13 years 2 months ago)
Author:David Kühling
Commit:57daa057d0aab49f8ebaae5ba6a0205dc45b0535
Message:Add gfortran compiler support to the toolchain

Files: package/base-files/Makefile (5 diffs)
toolchain/gcc/Config.in (1 diff)
toolchain/gcc/Makefile (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)
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
...... 
402427    $(CP) $(TOOLCHAIN_DIR)/lib/libgcc_s.so.* $(1)/lib/
403428  endef
404429
430  define Package/libgfortran/install
431    $(INSTALL_DIR) $(1)/usr/lib
432    $(CP) $(TOOLCHAIN_DIR)/usr/lib/libgfortran.so.* $(1)/usr/lib/
433  endef
434
405435  define Package/libssp/install
406436    $(INSTALL_DIR) $(1)/lib
407437    $(CP) $(TOOLCHAIN_DIR)/lib/libssp.so.* $(1)/lib/
...... 
497527    done
498528  endef
499529
530  define Package/libgfortran/install
531    for file in $(call qstrip,$(CONFIG_LIBGFORTRAN_FILE_SPEC)); do \
532        dir=`dirname $$$$file` ; \
533        $(INSTALL_DIR) $(1)/$$$$dir ; \
534        $(CP) $(call qstrip,$(CONFIG_LIBGFORTRAN_ROOT_DIR))/$$$$file $(1)/$$$$dir/ ; \
535    done
536  endef
537
500538  define Package/libssp/install
501539    for file in $(call qstrip,$(CONFIG_LIBSSP_FILE_SPEC)); do \
502540        dir=`dirname $$$$file` ; \
...... 
566604$(eval $(call BuildPackage,libstdcpp))
567605$(eval $(call BuildPackage,libpthread))
568606$(eval $(call BuildPackage,librt))
607$(eval $(call BuildPackage,libgfortran))
569608$(eval $(call BuildPackage,ldd))
570609$(eval $(call BuildPackage,ldconfig))
toolchain/gcc/Config.in
102102    default n
103103    help
104104        Build/install java compiler and GNU classpath ?
105
106
107config INSTALL_GFORTRAN
108    bool
109    prompt "Build/install fortran compiler?" if TOOLCHAINOPTS
110    default n
111    help
112        Build/install GNU fortran compiler ?
toolchain/gcc/Makefile
7676HOST_BUILD_DIR2:=$(HOST_BUILD_DIR)-final
7777
7878SEP:=,
79TARGET_LANGUAGES:="c$(if $(CONFIG_INSTALL_LIBSTDCPP),$(SEP)c++)$(if $(CONFIG_INSTALL_LIBGCJ),$(SEP)java)"
79TARGET_LANGUAGES:="c$(if $(CONFIG_INSTALL_LIBSTDCPP),$(SEP)c++)$(if $(CONFIG_INSTALL_LIBGCJ),$(SEP)java)$(if $(CONFIG_INSTALL_GFORTRAN),$(SEP)fortran)"
8080
8181export libgcc_cv_fixed_point=no
8282

Archive Download the corresponding diff file



interactive