Browse Source

squashfs-tools: fixed to not patch the linux headers and kernel source anymore

Note: squashfs kernel stuff is included since linux version 2.6.29
user/karasz/next/updates
Christian Wiese 15 years ago
parent
commit
fc5a182ad7
  1. 16
      filesystem/squashfs-tools/pkg_linux-header_pre.conf
  2. 16
      filesystem/squashfs-tools/pkg_linux26_pre.conf
  3. 48
      filesystem/squashfs-tools/pkg_linux_pre.conf

16
filesystem/squashfs-tools/pkg_linux-header_pre.conf

@ -1,16 +0,0 @@
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../squashfs-tools/pkg_linux-header_pre.conf
# Copyright (C) 2004 - 2006 The T2 SDE Project
#
# More information can be found in the files COPYING and README.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- SDE-COPYRIGHT-NOTE-END ---
. $base/package/*/squashfs-tools/pkg_linux_pre.conf

16
filesystem/squashfs-tools/pkg_linux26_pre.conf

@ -1,16 +0,0 @@
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../squashfs-tools/pkg_linux26_pre.conf
# Copyright (C) 2004 - 2006 The T2 SDE Project
#
# More information can be found in the files COPYING and README.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- SDE-COPYRIGHT-NOTE-END ---
. $base/package/*/squashfs-tools/pkg_linux_pre.conf

48
filesystem/squashfs-tools/pkg_linux_pre.conf

@ -1,48 +0,0 @@
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../squashfs-tools/pkg_linux_pre.conf
# Copyright (C) 2006 - 2009 The OpenSDE Project
#
# More information can be found in the files COPYING and README.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- SDE-COPYRIGHT-NOTE-END ---
hook_add prepatch 5 'squashfs_patch'
squashfs_patch() {
local sqfs_ver=$( pkgdesc ver squashfs-tools )
local lx_ver= sqfs_patch= sqfs_patch_base=
local ver3=$(echo "$ver" | cut -d. -f1-3)
tar -v $taropt "$(match_source_file -p squashfs squashfs-tools)" -C "$builddir"
sqfs_patch_base="$builddir/squashfs${sqfs_ver}/kernel-patches/linux-"
# known mappings
case "$ver3" in
2.6.27) lx_ver="2.6.27-rc4" ;;
*) for lx_ver in $ver $ver3 ''; do
[ ! -d "${sqfs_patch_base}${lx_ver}/" ] || break
done
if [ -z "$lx_ver" ]; then
lx_ver=$(ls -1d "${sqfs_patch_base}$ver3"[-.]* |
sed -e "s,^${sqfs_patch_base},," |
sort -n | tail -n 1)
fi
;;
esac
if [ -z "$lx_ver" ]; then
echo_warning "SquashFS $sqfs_ver patch for $ver not found, skipping."
else
echo_status "SquashFS $sqfs_ver: using patch for Linux $lx_ver."
sqfs_patch="$builddir/squashfs-${sqfs_ver}-${lx_ver}.patch"
cp -v $(ls -1d "${sqfs_patch_base}$lx_ver"/squashfs*-patch) $sqfs_patch
var_append patchfiles ' ' "$sqfs_patch"
fi
}
Loading…
Cancel
Save