Changeset 9bbf240


Ignore:
Timestamp:
02/15/2007 07:15:05 PM (17 years ago)
Author:
George Boudreau <georgeb@…>
Branches:
2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
Children:
0c2d20a
Parents:
a9ca77f
Message:

Added WRT scripts to CLFS-Embedded

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • CLFS3/master.sh

    ra9ca77f r9bbf240  
    119119}
    120120
     121#-----------------------------#
     122systemprep_Makefiles() {      #
     123#-----------------------------#
     124  echo "${tab_}${GREEN}Processing... ${L_arrow}system prep tools     ( LUSER ) ${R_arrow}"
     125 
     126  for file in systemprep/* ; do       
     127    # Keep the script file name
     128    this_script=`basename $file`
     129
     130    # Set the dependency for the first target.
     131    if [ -z $PREV ] ; then PREV=028-creating-sysfile ; fi
     132
     133    # First append each name of the script files to a list (this will become
     134    # the names of the targets in the Makefile)
     135    cross_tools="$cross_tools $this_script"
     136
     137    # Grab the name of the target (minus the -headers or -cross in the case of gcc
     138    # and binutils in chapter 5)
     139    name=`echo $this_script | sed -e 's@[0-9]\{3\}-@@'`
     140
     141    pkg_tarball=$(get_package_tarball_name $name)
     142    #--------------------------------------------------------------------#
     143    #         >>>>>>>> START BUILDING A Makefile ENTRY <<<<<<<<          #
     144    #--------------------------------------------------------------------#
     145    #
     146    # Drop in the name of the target on a new line, and the previous target
     147    # as a dependency. Also call the echo_message function.
     148    LUSER_wrt_target "${this_script}" "$PREV"
     149    #
     150    # If $pkg_tarball isn't empty, we've got a package...
     151    if [ "$pkg_tarball" != "" ] ; then
     152       LUSER_wrt_unpack "$pkg_tarball"
     153    fi
     154    #
     155    LUSER_wrt_RunAsUser "${file}"
     156    #
     157    [[ "$pkg_tarball" != "" ]] && LUSER_RemoveBuildDirs "${name}"
     158    #
     159    # Include a touch of the target name so make can check if it's already been made.
     160    wrt_touch
     161    #
     162    #--------------------------------------------------------------------#
     163    #              >>>>>>>> END OF Makefile ENTRY <<<<<<<<               #
     164    #--------------------------------------------------------------------#
     165    #
     166    # Keep the script file name for Makefile dependencies.
     167    PREV=$this_script
     168
     169  done # for file in ....
     170}
     171
    121172
    122173#-----------------------------#
     
    124175#-----------------------------#
    125176  echo "${tab_}${GREEN}Processing... ${L_arrow}cross tools     ( LUSER ) ${R_arrow}"
    126 
    127   for file in cross-tools/* ; do
     177 
     178  for file in cross-tools/* ; do       
    128179    # Keep the script file name
    129180    this_script=`basename $file`
     
    408459
    409460  host_prep_Makefiles
     461  [[ "${PLATFORM% -*}" = "WRT" ]] && systemprep_Makefiles # $cross_tools
    410462  cross_tools_Makefiles            # $cross_tools
    411463  final_system_Makefiles           # $basicsystem
  • Config.in

    ra9ca77f r9bbf240  
    111111
    112112        choice
     113                prompt  "Hardware Platform"
     114                depends BOOK_CLFS3 && ARCH_MIPS
     115                default PLATFORM_GENERIC
     116                help
     117                        # Chose a destination platform
     118                        # Platform specific files will be included
     119
     120                config  PLATFORM_GENERIC
     121                        bool    "Generic platform"
     122                       
     123                config  PLATFORM_WRT
     124                        bool    "WRT - MIPS based wireless router" if ARCH_MIPS
     125        endchoice
     126       
     127        choice
    113128                prompt  "Library"
    114129                depends (BOOK_CLFS && !ARCH_ALPHA) || (BOOK_CLFS3 && ARCH_MIPS)
     
    124139
    125140                config  DATA_MULTI
    126                         bool    "multilib"      if !(BOOK_CLFS3 && ARCH_MIPS)
     141                        bool    "multilib"      if !(BOOK_CLFS3 && ARCH_MIPS )
    127142        endchoice
    128143
     
    219234                default "powerpc-unknown-linux-gnu"     if ARCH_PPC
    220235
     236        config  PLATFORM
     237                string
     238                default "GENERIC"                       if (!BOOK_CLFS3) || PLATFORM_GENERIC
     239                default "WRT - Wireless Router"         if PLATFORM_WRT
     240
    221241        config  ARCH
    222242                string
     
    225245                default "x86_64-64"     if ARCH_X86   && DATA_64
    226246
     247                default "wrt"           if PLATFORM_WRT && BOOK_CLFS3
     248
    227249                default "mips"          if ARCH_MIPS  && (DATA_32 || BOOK_CLFS3)
    228250                default "mips64"        if ARCH_MIPS  && DATA_MULTI
    229251                default "mips64-64"     if ARCH_MIPS  && DATA_64 && BOOK_CLFS
    230252
     253
    231254                default "ppc"           if ARCH_PPC   && DATA_32
    232255                default "ppc64"         if ARCH_PPC   && DATA_MULTI
     
    239262                default "arm"           if ARCH_ARM
    240263                default "hppa"          if ARCH_HPPA
    241 
     264               
     265        config  PLATFORM
     266                string
     267                default "WRT - Wireless Router" if PLATFORM_WRT
     268                default "GENERIC"       if PLATFORM_GENERIC
     269               
    242270        config  MIPS_LEVEL
    243271                string
  • common/libs/func_validate_configs.sh

    ra9ca77f r9bbf240  
    2424  local -r  clfs_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE GETPKG RUNMAKE METHOD ARCH TARGET TARGET32   TEST BOMB_TEST OPTIMIZE REPORT COMPARE RUN_ICA RUN_FARCE ITERATIONS STRIP FSTAB BOOT_CONFIG CONFIG GETKERNEL VIMLANG PAGE TIMEZONE LANG        LUSER LGROUP BLFS_TOOL CUSTOM_TOOLS REBUILD_MAKEFILE"
    2525  local -r clfs2_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE GETPKG RUNMAKE        ARCH TARGET                                    REPORT                                      STRIP FSTAB             CONFIG GETKERNEL VIMLANG PAGE TIMEZONE LANG        LUSER LGROUP BLFS_TOOL CUSTOM_TOOLS REBUILD_MAKEFILE"
    26   local -r clfs3_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE GETPKG RUNMAKE        ARCH TARGET MIPS_LEVEL                         REPORT                                      STRIP FSTAB             CONFIG GETKERNEL VIMLANG PAGE TIMEZONE LANG        LUSER LGROUP           CUSTOM_TOOLS REBUILD_MAKEFILE"
     26  local -r clfs3_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE GETPKG RUNMAKE        ARCH PLATFORM TARGET MIPS_LEVEL                         REPORT                                      STRIP FSTAB             CONFIG GETKERNEL VIMLANG PAGE TIMEZONE LANG        LUSER LGROUP           CUSTOM_TOOLS REBUILD_MAKEFILE"
    2727  local -r   lfs_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE GETPKG RUNMAKE                               TEST BOMB_TEST OPTIMIZE REPORT COMPARE RUN_ICA RUN_FARCE ITERATIONS STRIP FSTAB             CONFIG GETKERNEL VIMLANG PAGE TIMEZONE LANG        LUSER LGROUP BLFS_TOOL CUSTOM_TOOLS REBUILD_MAKEFILE"
    2828  local -r  blfs_PARAM_LIST="BRANCH_ID BLFS_ROOT BLFS_XML TRACKING_DIR"
     
    110110      METHOD          | \
    111111      ARCH            | \
     112      PLATFORM        | \
    112113      TARGET          | \
    113114      GRSECURITY_HOST | \
Note: See TracChangeset for help on using the changeset viewer.