Mercurial > hg > aboriginal
changeset 1123:075c7e067ccd
Scripts generally say thing-thing not thing_thing, so rename migrate_kernel.
author | Rob Landley <rob@landley.net> |
---|---|
date | Fri, 18 Jun 2010 15:48:14 -0500 |
parents | 481386888ace |
children | 87a8efd61d54 |
files | sources/more/migrate-kernel.sh sources/more/migrate_kernel.sh |
diffstat | 2 files changed, 48 insertions(+), 48 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sources/more/migrate-kernel.sh Fri Jun 18 15:48:14 2010 -0500 @@ -0,0 +1,48 @@ +#!/bin/bash + +# Calculate new config for UNSTABLE kernel based on stable kernel config. +# I.E. calculate miniconfig-alt-linux based on miniconfig-linux for a target. + +# Expand miniconfig with the old kernel, copy .config to new kernel, run +# make oldconfig, compress to miniconfig, copy to sources/targets/$TARGET + +. sources/include.sh + +read_arch_dir "$1" + +blank_tempdir "$WORK" + +[ -z "$BOOT_KARCH" ] && BOOT_KARCH="$KARCH" + +# Expand config against current kernel + +USE_UNSTABLE= + +setupfor linux + +cp "$(getconfig linux)" mini.conf || dienow +[ "$SYSIMAGE_TYPE" == "initramfs" ] && + (echo "CONFIG_BLK_DEV_INITRD=y" >> mini.conf || dienow) +make ARCH="$BOOT_KARCH" KCONFIG_ALLCONFIG=mini.conf $LINUX_FLAGS \ + allnoconfig > /dev/null && +cp .config "$WORK" + +cleanup + +USE_UNSTABLE=linux + +setupfor linux + +cp "$WORK/.config" . && +yes "" | make ARCH="$BOOT_KARCH" oldconfig && +mv .config walrus && +ARCH="${BOOT_KARCH}" "$SOURCES/toys/miniconfig.sh" walrus || dienow + +CFG="$CONFIG_DIR/$ARCH_NAME/miniconfig-alt-linux" +if [ -e "$CFG" ] && ! cmp mini.config "$CFG" +then + mv "$CFG" "${CFG}.bak" || dienow +fi +mv mini.config "$CFG" + +cleanup
--- a/sources/more/migrate_kernel.sh Wed Jun 16 20:49:35 2010 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,48 +0,0 @@ -#!/bin/bash - -# Calculate new config for UNSTABLE kernel based on stable kernel config. -# I.E. calculate miniconfig-alt-linux based on miniconfig-linux for a target. - -# Expand miniconfig with the old kernel, copy .config to new kernel, run -# make oldconfig, compress to miniconfig, copy to sources/targets/$TARGET - -. sources/include.sh - -read_arch_dir "$1" - -blank_tempdir "$WORK" - -[ -z "$BOOT_KARCH" ] && BOOT_KARCH="$KARCH" - -# Expand config against current kernel - -USE_UNSTABLE= - -setupfor linux - -cp "$(getconfig linux)" mini.conf || dienow -[ "$SYSIMAGE_TYPE" == "initramfs" ] && - (echo "CONFIG_BLK_DEV_INITRD=y" >> mini.conf || dienow) -make ARCH="$BOOT_KARCH" KCONFIG_ALLCONFIG=mini.conf $LINUX_FLAGS \ - allnoconfig > /dev/null && -cp .config "$WORK" - -cleanup - -USE_UNSTABLE=linux - -setupfor linux - -cp "$WORK/.config" . && -yes "" | make ARCH="$BOOT_KARCH" oldconfig && -mv .config walrus && -ARCH="${BOOT_KARCH}" "$SOURCES/toys/miniconfig.sh" walrus || dienow - -CFG="$CONFIG_DIR/$ARCH_NAME/miniconfig-alt-linux" -if [ -e "$CFG" ] && ! cmp mini.config "$CFG" -then - mv "$CFG" "${CFG}.bak" || dienow -fi -mv mini.config "$CFG" - -cleanup