GoboLinux Downloads Documentation Community Recipes Screenshots

GoboLinux Recipe & Package Search Tool

70 versions of Linux.

ProgramAgeSizeByWWWSummary
Linux 4.9.16-r3 86  100651 Luca...
The Linux Kernel.
view entry at GitHub | download recipe.bz2 file
01-gobohide.patch
02-apple-gmux.patch
03-macbook-suspend.patch
04-apple-poweroff-quirk-workaround.patch
05-gold_linker-relocation.patch
06-gold_linker-kbuild.patch
07-virtio_net-error.patch
Recipe
Resources/BuildDependencies
Resources/BuildInformation
Resources/Dependencies
Resources/Description
cell/02-memcpy-cell.patch
cell/Recipe
cell/dot-config
i686/Recipe
i686/dot-config
ppc/Recipe
ppc/dot-config
x86_64/Recipe
x86_64/WriteBoot64
x86_64/dot-config
# Recipe for version 4.9.16 by Lucas C. Villa Real <lucasvr@gobolinux.org>, on Sun \
Mar 19 00:13:29 BRT 2017
compile_version=1.8.5
url="https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.9.16.tar.xz"
file_size=93209124
file_md5=f006558ef9fdcc5d5b46b047d5c710f9
recipe_type=makefile
build_target="all"
install_target="modules_install"

install_variables=(
   INSTALL_FW_PATH="$target/lib/firmware"
)

unmanaged_files=(
   $goboBoot/
)

do_configuration() {
   if [ ! -f .config ]
   then
      if [ ! -f $goboStatus/config.gz ]
      then
         cp "$archsubdir"/dot-config .config
      else
         if Ask "Do you want to use a configuration based on the one from the running \
kernel?"
         then
            zcat $goboStatus/config.gz > .config
            yes "" | make oldconfig
         else
            Log_Normal "Using the kernel configuration shipped with the recipe"
            cp "$archsubdir"/dot-config .config
         fi
      fi
   fi

   # Sanity check to make sure patches are not trying to mess with the version id.
   local v=`grep "^VERSION =" Makefile | awk '{print $3}'`
   local p=`grep "^PATCHLEVEL" Makefile | awk '{print $3}'`
   local s=`grep "^SUBLEVEL" Makefile | awk '{print $3}'`
   local e=`grep "^EXTRAVERSION" Makefile | awk '{print $3}'`
   local reported="$v.$p.$s$e"
   if [ "$reported" != "$version" ]
   then Die "Reported version ($reported) does not match version ($version). Please \
fix recipe."
   fi

   make menuconfig || Die "'menuconfig' failed."
   [ -z "${SUDO_USER}" ] || chown ${SUDO_USER} .config

   # Build tools/objtool. Third-party modules may rely on it.
   if [ ! -e tools/objtool/objtool ]
   then make -C tools/objtool
   fi
}

do_install() {
   $sudo_exec mkdir -p "$target"/lib/firmware
   makefile_do_install "$@"
}

pre_link() {
   local simpleversion=`private__calculate_version`
   local fullversion=`private__calculate_full_version`

   # Copy arch-dependent results to the destination
   private__copy_kernel_image
   
   # Copy sanitized sources to $target/lib/build
   private__copy_kernel_source $simpleversion
   Log_Normal "Calculating kernel module dependencies..."
   depmod -b $target ${version}-Gobo
   # Create System.map and kernel symlinks
   private__link_at_system_kernel_boot $simpleversion $fullversion
}

private__calculate_version() {
   if grep -q "^CONFIG_LOCALVERSION=" .config
   then suffix=`grep "^CONFIG_LOCALVERSION=" .config | cut -d= -f2 | tr -d '"' | \
sed 's/-[0-9]*-//'`
   fi
   echo "$version$suffix"
}

private__calculate_full_version() {
   local simpleversion=`private__calculate_version`
   local newsuffix=""
   local count=`ls $goboBoot/kernel-$version-* 2> /dev/null | sort -n | wc -l | awk \
'{print $1}'`
   if [ "$count" -gt "0" ]
   then
      let count=$count+1
      newsuffix="-$count"
   fi
   echo "$simpleversion$newsuffix"
}

private__copy_kernel_source() {
   local simpleversion="$1"
   local moddir="${target}/lib/modules/${simpleversion}"
   mkdir -p "$moddir"
   rm -f "${moddir}/build"
   rm -f "${moddir}/source"
   # Copy modules.order and modules.builtin
   cp $dir/modules.order $dir/modules.builtin $moddir/
   # Copy sanitized sources to Resources/Unmanaged/Files/Compile/Sources/linux-<version>
   local dest="${target}/lib/modules/${simpleversion}/build"
   mkdir -p $dest
   ln -fs build "${target}/lib/modules/${simpleversion}/source"

   Log_Normal "Creating a working copy of the kernel sources tree..."
   Quiet pushd $dir
   mkdir -p $dest/tools
   mkdir -p $dest/arch/x86/boot
   cp -r tools/{objtool,build,lib} $dest/tools/
   cp -r arch/x86/{lib,tools,purgatory} $dest/arch/x86/
   cp arch/x86/boot/string.c $dest/arch/x86/boot/
   cp .version .config System.map Module.symvers Makefile Kbuild Kconfig $dest/
   ls | while read i
   do
      if [ -d "$i" -a "$i" = "scripts" ]
      then
         cp -an "$i" $dest/
      elif [ -d "$i" ]
      then
         dirlist=`find "$i" -type d`
         filelist=`find "$i" \( \
            -name "*.h" -or \
            -name "*.bc" -or \
            -name "*.sh" -or \
            -name "*.mak" -or \
            -name "*.tbl" -or \
            -name "*.conf" -or \
            -name "*.include" -or \
            -name "Makefile*" -or \
            -name "Kconfig*" -or \
            -name "Kbuild*" -or \
            -name "asm-offsets.c" -or \
            -name "asm-offsets_32.c" -or \
            -name "asm-offsets_64.c" -or \
            -name "bounds.c" \
         \)`
         for dir in $dirlist
         do mkdir -p "$dest/$dir"
         done
         for file in $filelist
         do cp -n "$file" "$dest/$file"
         done
         for dir in $dirlist
         do find "$dest/$dir" -type d 2> /dev/null | sort -r | xargs rmdir 2> /dev/null
         done
      fi
   done
   Quiet popd
   
   Quiet pushd $dest
   make prepare
   Quiet popd
}

private__link_at_system_kernel_boot() {
   local simpleversion="$1"
   local fullversion="$2"
   mkdir -p $target/lib/modules
   
   dest=$target/Resources/Unmanaged/$goboBoot
   ln -fs kernel-$fullversion $dest/kernel
   ln -fs System.map-$fullversion $dest/System.map
}
Linux 4.9.4-r5 142  99374 Luca...
The Linux Kernel.
Linux 4.8.2-r2 208  89394 Luca...
The Linux Kernel.
Linux 4.7.4-r1 278  82767 Luca...
The Linux Kernel.
Linux 4.7.0-r4 333  82585 Luca...
The Linux Kernel.
Linux 3.13.3-r1 1213  252629 Luca...
The Linux Kernel.
Linux 3.12.6-r1 1273  238949 Luca...
The Linux Kernel.
Linux 3.9.4-r2 1468  70048 Luca...
The Linux Kernel.
Linux 3.7.1-r2 1641  67579 Luca...
The Linux Kernel.
Linux 3.5.0-r1 1792  124391 Luca...
The Linux Kernel.
Linux 3.4.4-r1 1792  124348 Luca...
The Linux Kernel.
Linux 3.3.6-r1 1792  124410 Luca...
The Linux Kernel.
Linux 3.2.12-r2 1920  124345 Luca...
The Linux Kernel.
Linux 3.2.7-r1 1950  123550 Mich...
The Linux Kernel.
Linux 3.1.1-r1 2055  122907 Mich...
The Linux Kernel.
Linux 3.0.4-r4 2116  122754 Luca...
The Linux Kernel.
Linux 2.6.36.3-r1 2339  116087 Diog...
The Linux Kernel.
Linux 2.6.32.3-r1 2717  117990 Luca...
The Linux Kernel.
Linux 2.6.32-r1 2758  117751 Luca...
The Linux Kernel.
Linux 2.6.31.6-r3 2763  126499 Luca...
The Linux Kernel.
Linux 2.6.30.5-r1 2842  166102 Jona...
The Linux Kernel.
Linux 2.6.29.1-r1 2985  117500 Luca...
The Linux Kernel.
Linux 2.6.28.7-r1 3041  115518 Giam...
The Linux Kernel.
Linux 2.6.28.1-r1 3041  115487 Giam...
The Linux Kernel.
Linux 2.6.28-r1 3041  116681 Mich...
The Linux Kernel.
Linux 2.6.27.8-r1 3041  134160 Giam...
The Linux Kernel.
Linux 2.6.27.4-r3 3041  149529 Luca...
The Linux Kernel.
Linux 2.6.25.17-r1 3041  172834 Giam...
The Linux Kernel.
Linux 2.6.25.16-r1 3041  166500 Giam...
The Linux Kernel.
Linux 2.6.25.10-r2 3041  165320 Giam...
The Linux Kernel.
Linux 2.6.25.7-r1 3041  157294 Giam...
The Linux Kernel.
Linux 2.6.25.4-r1 3041  133017 Hopp...
The Linux Kernel.
Linux 2.6.25-r1 3041  133216 Luca...
The Linux Kernel.
Linux 2.6.24.4-r5 3041  150733
The Linux Kernel.
Linux 2.6.24.3-r5 3041  150221 Luca...
The Linux Kernel.
Linux 2.6.24.2-r3 3041  146488 Giam...
The Linux Kernel.
Linux 2.6.24.1-r1 3041  146454 Giam...
The Linux Kernel.
Linux 2.6.24-r1 3041  146428 Luca...
The Linux Kernel.
Linux 2.6.23.8-r4 3041  155842 Luca...
The Linux Kernel.
Linux 2.6.22.7-r4 3041  114727 Luca...
The Linux Kernel.
Linux 2.6.22.1-r1 3041  121391 Luca...
The Linux Kernel.
Linux 2.6.21.1-r3 3041  118854 Luca...
The Linux Kernel.
Linux 2.6.20.7-r1 3041  117945 Luca...
The Linux Kernel.
Linux 2.6.20.4-r3 3041  151150 Luca...
The Linux Kernel.
Linux 2.6.20-r1 3041  106429 Luca...
The Linux Kernel.
Linux 2.6.18.3-r2 3041  111124 Luca...
The Linux Kernel.
Linux 2.6.17.11-r1 3041  164053 Luca...
The Linux Kernel.
Linux 2.6.17.3-r1 3041  165067 Luca...
The Linux Kernel.
Linux 2.6.16.20-r1 3041  133625 Luca...
The Linux Kernel.
Linux 2.6.16.14-r1 3041  168270 Luca...
The Linux Kernel.
Linux 2.6.15.5-r1 3041  224686 Jona...
The Linux Kernel.
Linux 2.6.15.2-r1 3041  177165 Carl...
The Linux Kernel.
Linux 2.6.15.1-r1 3041  149219 Jona...
The Linux Kernel.
Linux 2.6.15-r1 3041  149214 Luca...
The Linux Kernel.
Linux 2.6.14.4-r1 3041  150166 Jona...
The Linux Kernel.
Linux 2.6.14.3-r1 3041  150060 Jona...
The Linux Kernel.
Linux 2.6.14.2-r1 3041  149791 Carl...
The Linux Kernel.
Linux 2.6.13.4-r1 3041  149559 Luca...
The Linux Kernel.
Linux 2.6.13.2-r1 3041  56611 Jona...
The Linux Kernel.
Linux 2.6.13.1-r1 3041  56378 Luca...
The Linux Kernel.
Linux 2.6.12.2-r1 3041  50355 Luca...
The Linux Kernel.
Linux 2.6.11.9-r1 3041  98969 Luca...
The Linux Kernel.
Linux 2.6.11.8-r1 3041  109424 Jona...
The Linux Kernel.
Linux 2.6.11-r1 3041  99032 Luca...
The Linux Kernel.
Linux 2.6.10-r1 3041  65969 Luca...
The Linux Kernel.
Linux 2.6.9-r1 3041  278461 Luca...
The Linux Kernel.
Linux 2.6.8.1-r1 3041  35576 Luca...
The Linux Kernel.
Linux 2.6.7-r1 3041  22610 Luca...
The Linux Kernel.
Linux 2.6.6-r1 3041  21958 Luca...
The Linux Kernel.
Linux 2.4.26-r1 3041  22359 Luca...
The Linux Kernel.