CVS: moonbase/kernel/linux BUILD.alpha, NONE, 1.1 CONFIGURE.alpha, NONE, 1.1 POST_INSTALL, 1.20, 1.21

Veerappan watryac04 at lunar-linux.org
Mon Dec 8 23:03:46 GMT 2003


Update of /var/cvs/lunar/moonbase/kernel/linux
In directory dbguin.lunar-linux.org:/tmp/cvs-serv19352

Modified Files:
	POST_INSTALL 
Added Files:
	BUILD.alpha CONFIGURE.alpha 
Log Message:
Added some stuff to make the DEC Alpha architecture able to use the nice 
little linux kernel module. Tested on an EV56 (Miata).


--- NEW FILE: BUILD.alpha ---
cd  /usr/src/linux

while
    case  $CONFIG_KERNEL in
        y|Y)

            case $CONFIG_METHOD in
                xconfig )
                    if [ "$DISPLAY" ]; then
                        make xconfig || make menuconfig || make config
                    else
                        make menuconfig || make config
                    fi ;;

                menuconfig )
                  make menuconfig || make config ;;

                config )
                  make config ;;
            esac

            if  query  "Repeat $CONFIG_METHOD?  "  n ; then
                CONFIG_KERNEL=y
            else
                CONFIG_KERNEL=n
            fi
            ;;

        *)
            false  ;;
    esac
do
  true
done

(

  yes  n  |  make  oldconfig
  cp .config $CONFIG_CACHE/.config
  rm -f arch/alpha/boot/vmlinux.gz

  # Because parallel make seems not to work, a hack

if [ "$CONFIG_AGGRESSIVE" == "y" ]; then
  EXTENSION="-aggressive"
else
  EXTENSION=""
fi

  optimize_make                                        &&
  KMAKES=${MAKES:=1}                                   &&
  make -j${KMAKES} dep                                 &&
  make -j${KMAKES} clean                               &&
  make -j${KMAKES} boot                                &&
  make -j${KMAKES} modules                             &&
  backup_mods_krnl  ${VERSION}-${PVERSION}${EXTENSION} &&
  prepare_install                                      &&
  make  modules_install                                &&

  cp    arch/alpha/boot/vmlinux.gz   /boot/${VERSION}-${PVERSION}
  
) > $C_FIFO 2>&1

--- NEW FILE: CONFIGURE.alpha ---
if  !  grep  -q  "BOOT_LOADER"  $MODULE_CONFIG;  then
  message  "The Linux Kernel requires a boot loader"
  message  "We're choosing aboot for now, Milo maybe in the future"
  BOOT_LOADER=aboot

  #if  query  "Use  LILO?"  y
    #then  BOOT_LOADER=lilo
    #else  BOOT_LOADER=grub
  #fi

  echo  "BOOT_LOADER=$BOOT_LOADER"  >>  $MODULE_CONFIG
fi

CONFIG_ABOOT="n"
CONFIG_MILO="n"

if    grep  -q  "BOOT_LOADER=aboot"  $MODULE_CONFIG  &&
      query  "Configure aboot?"  n
  then  CONFIG_ABOOT=y
fi

if    grep  -q  "BOOT_LOADER=milo"  $MODULE_CONFIG  &&
      query  "Configure milo?"  n
  then  CONFIG_MILO=y
fi


if  !  grep -q  "CONFIG_METHOD="  $MODULE_CONFIG; then
  if    query  "Do you prefer make menuconfig over make config"  y
    then  CONFIG_METHOD="menuconfig"
  else
    CONFIG_METHOD="config"
  fi
  echo  "CONFIG_METHOD=$CONFIG_METHOD"  >>  $MODULE_CONFIG
fi
                           

CONFIG_AGGRESSIVE="n"

if  !  grep  -q  "CONFIG_AGGRESSIVE=" $MODULE_CONFIG &&
       query  "Use Aggressive patchset?" n
  then  CONFIG_AGGRESSIVE="y"
else
  if grep -q "CONFIG_AGGRESSIVE=y"  $MODULE_CONFIG
    then  CONFIG_AGGRESSIVE="y"
  fi
fi
                                                             
if  [  !  -f $CONFIG_CACHE/.config  ];  then
  message  "Preparing to make menuconfig."
  CONFIG_KERNEL="y"
else
  message  "Reconfiguration is optional."
  if    query  "Configure linux kernel?"  n
    then CONFIG_KERNEL=y
  else
    CONFIG_KERNEL=n
  fi
fi

TEMP=$(grep  -v  "CONFIG_KERNEL="          $MODULE_CONFIG  |
       grep  -v  "CONFIG_ABOOT="                            |
       grep  -v  "CONFIG_MILO=")

echo  "$TEMP"                                >   $MODULE_CONFIG
echo  "CONFIG_AGGRESSIVE=$CONFIG_AGGRESSIVE" >>  $MODULE_CONFIG
echo  "CONFIG_KERNEL=$CONFIG_KERNEL"         >>  $MODULE_CONFIG
echo  "CONFIG_ABOOT=$CONFIG_ABOOT"            >>  $MODULE_CONFIG
echo  "CONFIG_MILO=$CONFIG_MILO"             >>  $MODULE_CONFIG

Index: POST_INSTALL
===================================================================
RCS file: /var/cvs/lunar/moonbase/kernel/linux/POST_INSTALL,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- POST_INSTALL	5 Dec 2003 11:08:04 -0000	1.20
+++ POST_INSTALL	8 Dec 2003 23:03:44 -0000	1.21
@@ -2,6 +2,7 @@
 case  $BOOT_LOADER  in
   lilo)  update_lilo ${VERSION}-${PVERSION} $VERSION ;;
   grub)  update_grub ${VERSION}-${PVERSION} $VERSION ;;
+  aboot) update_aboot ${VERSION}-${PVERSION} $VERSION ;;
 esac
 
 




More information about the Lunar-commits mailing list