⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 configure.in

📁 针对于sa1100的bootloader。blob2.04是一个功能比较强大的bootloader
💻 IN
字号:
dnl Process this file with autoconf to produce a configure script. -*- m4 -*-dnldnl $Id: configure.in,v 1.4 2001/08/29 21:08:50 erikm Exp $dnlAC_REVISION([$Id: configure.in,v 1.4 2001/08/29 21:08:50 erikm Exp $])dnl Init autoconfAC_INIT(src/start.S)AC_CONFIG_AUX_DIR(tools)dnl Init automakePACKAGE=blobBLOB_MAJOR_VERSION=2BLOB_MINOR_VERSION=0BLOB_MICRO_VERSION=4BLOB_VERSION=$BLOB_MAJOR_VERSION.$BLOB_MINOR_VERSION.$BLOB_MICRO_VERSIONVERSION=$BLOB_VERSIONAM_INIT_AUTOMAKE($PACKAGE, $VERSION)AM_CONFIG_HEADER(include/config.h)dnl Init maintainer modeAM_MAINTAINER_MODEdnl Guess the host OSAC_CANONICAL_HOSTdnl Checks for programs.AC_PROG_CCif test "x$ac_cv_prog_gcc" != "xyes" ; then  AC_MSG_WARN("C compiler is not gcc. This may lead to problems!");  AC_MSG_WARN("Trying to continue with $CC ...");fiAC_CHECK_PROGS(OBJCOPY, arm-linux-objcopy objcopy, echo)AC_PROG_INSTALLAC_PROG_LN_Sdnl Checks for libraries.dnl Checks for header files.dnl Check board we want to build forAC_ARG_WITH(board, [  --with-board=NAME       Name of the target board],	board_name="$withval",	board_name="lart")AC_MSG_CHECKING(target board)case "$board_name" in    assabet)	AC_MSG_RESULT(Assabet)	AC_DEFINE(ASSABET)	AC_DEFINE(USE_SA1110)	AC_DEFINE(USE_SDRAM)	AC_DEFINE(USE_SERIAL1)	;;    brutus)	AC_MSG_RESULT(Brutus)	AC_DEFINE(BRUTUS)	AC_DEFINE(USE_SA1100)	AC_DEFINE(USE_EDODRAM)	AC_DEFINE(USE_SERIAL3)	;;    creditlart)	AC_MSG_RESULT(CreditLART)	AC_DEFINE(CLART)	AC_DEFINE(USE_SA1110)	AC_DEFINE(USE_SDRAM)	AC_DEFINE(USE_SERIAL3)	;;    lart)	AC_MSG_RESULT(LART)	AC_DEFINE(LART)	AC_DEFINE(USE_SA1100)	AC_DEFINE(USE_EDODRAM)	AC_DEFINE(USE_SERIAL3)	;;    nesa)	AC_MSG_RESULT(NESA)	AC_DEFINE(NESA)	AC_DEFINE(USE_SA1100)	AC_DEFINE(USE_EDODRAM)	AC_DEFINE(USE_SERIAL3)	;;    pleb)	AC_MSG_RESULT(PLEB)	AC_DEFINE(PLEB)	AC_DEFINE(USE_SA1100)	AC_DEFINE(USE_EDODRAM)	AC_DEFINE(USE_SERIAL3)	;;    shannon)	AC_MSG_RESULT(SHANNON)	AC_DEFINE(SHANNON)	AC_DEFINE(USE_SA1100)	AC_DEFINE(USE_EDODRAM)	AC_DEFINE(USE_SERIAL3)	;;    *)	AC_MSG_RESULT(unknown)	AC_MSG_WARN([Unknown board name, assuming SA1100 with EDO DRAM and serial 3])	AC_DEFINE(USE_SA1100)	AC_DEFINE(USE_EDODRAM)	AC_DEFINE(USE_SERIAL3)	;;esacdnl Find out where the Linux headers areAC_ARG_WITH(linux-prefix,[  --with-linux-prefix=PFX Prefix where the ArmLinux sources live],	linux_prefix="$withval",	linux_prefix="/usr/src/linux")CFLAGS=`echo $CFLAGS -I${linux_prefix}/include`dnl Check for extra debug infoAC_ARG_ENABLE(blob-debug,[  --enable-blob-debug     Enable run-time debug information],[blob_debug_flag=$enable_blob_debug],[blob_debug_flag=no])if test "x$blob_debug_flag" = "xyes" ; then  AC_DEFINE(BLOB_DEBUG)fidnl Checks for typedefs, structures, and compiler characteristics.AC_C_INLINEdnl Checks for library functions.dnl Add C flags to display more warningsAC_MSG_CHECKING(for C flags to get more warnings)ac_save_CFLAGS="$CFLAGS"AC_LANG_SAVEif test "x$ac_cv_prog_gcc" = "xyes" ; then  dnl gcc is the easiest C compiler  warning_CFLAGS="-Wall"else  dnl Vendor supplied C compilers are a bit tricky  case "$host_os" in    dnl SGI IRIX with the MipsPRO C compiler    irix*)      AC_LANG_C      CFLAGS="$CFLAGS -fullwarn"      AC_TRY_COMPILE([#include <stdio.h>],[printf("test");],        warning_CFLAGS="-fullwarn",)      ;;    dnl SunOS 4.x with the SparcWorks(?) acc compiler       sunos*)        if "$CC" = "acc" ; then	  AC_LANG_C          CFLAGS="$CFLAGS -vc"          AC_TRY_COMPILE([#include <stdio.h>],[printf("test");],            warning_CFLAGS="-vc",)        fi      ;;    dnl Unknown, do nothing    *)      warning_CFLAGS="none"      ;;  esacfiAC_LANG_RESTORECFLAGS="$ac_save_CFLAGS"if test "$warning_CFLAGS" = "none" ; then  AC_MSG_RESULT(none)else  CFLAGS="$CFLAGS $warning_CFLAGS"  AC_MSG_RESULT($warning_CFLAGS)fi  dnl Remove the "-g" flag from CFLAGS and LDFLAGSCFLAGS=`echo $CFLAGS | sed 's/\ *-g\ */\ /'`LDFLAGS=`echo $LDFLAGS | sed 's/\ *-g\ */\ /'`dnl Add some StrongARM specific flagsCFLAGS=`echo $CFLAGS -march=armv4 -mtune=strongarm1100 -fomit-frame-pointer -mapcs-32 -nostdinc`LDFLAGS=`echo $LDFLAGS -static -nostdlib`OCFLAGS="-O binary -R .note -R .comment -S"AC_SUBST(OCFLAGS)AC_OUTPUT(Makefileinclude/Makefilesrc/Makefiletools/Makefileutils/Makefileutils/build/Makefile)echo ""echo "Configuration"echo "------------------------------------------------------------------------"echo "Target board                ${board_name}"echo "C compiler                  ${CC}"echo "C flags                     ${CFLAGS}"echo "Linker flags                ${LDFLAGS}"echo "Objcopy tool                ${OBJCOPY}"echo "Objcopy flags               ${OCFLAGS}"echo "Run-time debug information  ${blob_debug_flag}"echo ""

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -