Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff -u A/PKGBUILD B/PKGBUILD
- --- A/PKGBUILD 2010-12-02 13:47:43.000000000 +0100
- +++ B/PKGBUILD 2010-12-05 00:10:21.000000000 +0100
- @@ -31,6 +31,11 @@
- _builddir="$srcdir/build/"
- _sourcedir="$srcdir/$_gitname/"
- +# Save config as $startdir/config.saved
- +_save_config="1"
- +
- +_menu_method="${1}config"
- +
- if [ "$_use_snapshot" = "y" ] && [ ! -d "$_sourcedir" ]; then
- source+=(http://downloads.zen-kernel.org/snapshots/zen-stable/linux-2.6-zen.v2.6.36-zen0-full-git.tar.gz)
- md5sums+=("2f8a8fe0ab79bf7cb2ebaff6d0a0b044")
- @@ -108,10 +113,22 @@
- return 1
- fi
- + cd "$_builddir"
- + case "$_menu_method" in
- + menuconfig|xconfig|gconfig)
- + msg2 "Running make $_menu_method..."
- + make $_menu_method
- + esac
- +
- + if [ "$_save_config" = "1" ]; then
- + msg "Saving configuration..."
- + msg2 "Saving ${_builddir}.config as config.saved.$CARCH"
- + cp .config ${startdir}/config.saved.$CARCH
- + fi
- +
- warning "Press ENTER if you want to build the kernel or CTRL+C to abort..."
- read
- - cd "$_builddir"
- msg2 "Building kernel..."; make bzImage
- msg2 "Building modules..."; make modules
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement