You are not logged in.

#1 2005-08-26 09:01:51

jrbeire
Member
From: Dublin, Ireland
Registered: 2004-09-29
Posts: 15
Website

Seeking kernel26archck PKGBUILD

Hi all,

Looking for the kernel26archck PKGBUILD (want to make it more user-friendly by prompting user for kernel configuration as per kernel26mm).

Have searched the AUR using the php search function, the AUR manually (no ../packages/kernel26archck), the BBS, and dibblethewrecker's repositories.

Could someone point me in the right direction please?

John.

Offline

#2 2005-08-26 09:14:09

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Seeking kernel26archck PKGBUILD

It's in CVS jrbeire - have a look here.

Good to see another Irish Archer around..... smile

Offline

#3 2005-08-26 09:21:13

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: Seeking kernel26archck PKGBUILD

want to make it more user-friendly by prompting user for kernel configuration as per kernel26mm

Hmmm - I'm offended - it's not user unfriendly, it's unambiguous...

Offline

#4 2005-08-26 10:24:44

jrbeire
Member
From: Dublin, Ireland
Registered: 2004-09-29
Posts: 15
Website

Re: Seeking kernel26archck PKGBUILD

Tomk: thanks for the location.

dibblethewrecker: no offence intended  smile

For anyone else who wants to do this:

Replace

# load configuration
  yes "" | make config

with (from kernel26mm PKGBUILD):

 # load configuration - prompt user as per kernel26mm
  echo "==> "
  echo "==> How do you want to configure the kernel:"
  echo "==> ----------------------------------------"
  echo "==> (for ArchLinux defaults, use 'not_at_all (1)')"
  echo "==> "
  AUSWAHL="not_at_all menuconfig xconfig oldconfig config"
           select opt in $AUSWAHL; do
               if [ "$opt" = "not_at_all" ]; then
                yes "" | make config || return 1
                mv $startdir/config.orig $startdir/config
                break
               elif [ "$opt" = "menuconfig" ]; then
                make menuconfig || return 1
                cp .config $startdir/config && echo "==> your config was saved to $startdir/config"
                break
               elif [ "$opt" = "xconfig" ]; then
                make xconfig || return 1
                cp .config $startdir/config && echo "==> your config was saved to $startdir/config"
                break
               elif [ "$opt" = "config" ]; then
                make config || return 1
                cp .config $startdir/config && echo "==> your config was saved to $startdir/config"
                break
               elif [ "$opt" = "oldconfig" ]; then
                make oldconfig || return 1
                cp .config $startdir/config && echo "==> your config was saved to $startdir/config"
                break
               else
                clear
                echo "==> I don't understand (bad option) ... assuming you don't want "
                echo "==> to configure and use the defaults."
                sleep 1
                echo "==> 3..."
                sleep 1
                echo "==> 2..."
                sleep 1
                echo "==> 1..."
                sleep 1
                echo "==> 0: GO! --------------------------- :-)"
                yes "" | make config || return 1
                mv $startdir/config.orig $startdir/config
                break
               fi
           done

  echo ""
  echo "==> Building the kernel $kernelver will start in 2s ! "
  echo "==> Happy compiling and good luck :-)"
  echo ""
  sleep 2

  

Offline

#5 2005-08-26 10:57:57

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: Seeking kernel26archck PKGBUILD

roll I am amazed dp puts that stuff in his PKGBUILDs.   I never seen such pointless bloat in an official Arch pkg. You can quite simply replace the

# load configuration
  yes "" | make config

with

  #yes "" | make config
  #make oldconfig || return 1
  #make menuconfig
  #make xconfig
  make gconfig

an uncomment the one you prefer or just replace it with one of the above.

Offline

#6 2005-08-26 15:17:54

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Seeking kernel26archck PKGBUILD

I agree with dibble - PKGBUILDs shouldn't be interactive...

Offline

#7 2005-08-26 15:49:45

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: Seeking kernel26archck PKGBUILD

precisely

Offline

Board footer

Powered by FluxBB