summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2017-03-19 10:20:26 +0000
committerJustin Lecher <jlec@gentoo.org>2017-03-19 10:25:23 +0000
commit7131191b36bb86374fb9f5191c9ba5d2fc2f45e1 (patch)
tree9b649fbf5ee35e42e8945c39c329ba74899c4183 /eclass/kernel-2.eclass
parentsci-physics/herwig: fix bug 612906 (diff)
downloadgentoo-7131191b36bb86374fb9f5191c9ba5d2fc2f45e1.tar.gz
gentoo-7131191b36bb86374fb9f5191c9ba5d2fc2f45e1.tar.bz2
gentoo-7131191b36bb86374fb9f5191c9ba5d2fc2f45e1.zip
Drop trailing whitespaces
Signed-off-by: Justin Lecher <jlec@gentoo.org>
Diffstat (limited to 'eclass/kernel-2.eclass')
-rw-r--r--eclass/kernel-2.eclass144
1 files changed, 72 insertions, 72 deletions
diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass
index 478b6b8c0a01..264b0b426a2f 100644
--- a/eclass/kernel-2.eclass
+++ b/eclass/kernel-2.eclass
@@ -2,9 +2,9 @@
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: kernel-2.eclass
-# @MAINTAINER:
+# @MAINTAINER:
# Gentoo Kernel project <kernel@gentoo.org>
-# @AUTHOR:
+# @AUTHOR:
# John Mylchreest <johnm@gentoo.org>
# Mike Pagano <mpagano@gentoo.org>
# <so many, many others, please add yourself>
@@ -24,25 +24,25 @@
# this is useful for things like wolk. IE:
# EXTRAVERSION would be something like : -wolk-4.19-r1
-# @ECLASS-VARIABLE: K_NOSETEXTRAVERSION
+# @ECLASS-VARIABLE: K_NOSETEXTRAVERSION
# @DEFAULT_UNSET
# @DESCRIPTION:
# if this is set then EXTRAVERSION will not be
# automatically set within the kernel Makefile
-# @ECLASS-VARIABLE: K_NOUSENAME
+# @ECLASS-VARIABLE: K_NOUSENAME
# @DEFAULT_UNSET
# @DESCRIPTION:
# if this is set then EXTRAVERSION will not include the
# first part of ${PN} in EXTRAVERSION
-# @ECLASS-VARIABLE: K_NOUSEPR
+# @ECLASS-VARIABLE: K_NOUSEPR
# @DEFAULT_UNSET
# @DESCRIPTION:
# if this is set then EXTRAVERSION will not include the
# anything based on ${PR}.
-# @ECLASS-VARIABLE: K_PREPATCHED
+# @ECLASS-VARIABLE: K_PREPATCHED
# @DEFAULT_UNSET
# @DESCRIPTION:
# if the patchset is prepatched (ie: mm-sources,
@@ -50,72 +50,72 @@
# the patchset version for
# and not use it as a true package revision
-# @ECLASS-VARIABLE: K_EXTRAEINFO
+# @ECLASS-VARIABLE: K_EXTRAEINFO
# @DEFAULT_UNSET
# @DESCRIPTION:
# this is a new-line seperated list of einfo displays in
# postinst and can be used to carry additional postinst
# messages
-# @ECLASS-VARIABLE: K_EXTRAELOG
+# @ECLASS-VARIABLE: K_EXTRAELOG
# @DEFAULT_UNSET
# @DESCRIPTION:
# same as K_EXTRAEINFO except using elog instead of einfo
-# @ECLASS-VARIABLE: K_EXTRAEWARN
+# @ECLASS-VARIABLE: K_EXTRAEWARN
# @DEFAULT_UNSET
# @DESCRIPTION:
# same as K_EXTRAEINFO except using ewarn instead of einfo
-# @ECLASS-VARIABLE: K_SYMLINK
+# @ECLASS-VARIABLE: K_SYMLINK
# @DEFAULT_UNSET
# @DESCRIPTION:
# if this is set, then forcably create symlink anyway
-# @ECLASS-VARIABLE: K_BASE_VER
+# @ECLASS-VARIABLE: K_BASE_VER
# @DEFAULT_UNSET
# @DESCRIPTION:
# for git-sources, declare the base version this patch is
# based off of.
-# @ECLASS-VARIABLE: K_DEFCONFIG
+# @ECLASS-VARIABLE: K_DEFCONFIG
# @DEFAULT_UNSET
# @DESCRIPTION:
# Allow specifying a different defconfig target.
# If length zero, defaults to "defconfig".
-# @ECLASS-VARIABLE: K_WANT_GENPATCHES
+# @ECLASS-VARIABLE: K_WANT_GENPATCHES
# @DEFAULT_UNSET
# @DESCRIPTION:
# Apply genpatches to kernel source. Provide any
# combination of "base", "extras" or "experimental".
-# @ECLASS-VARIABLE: K_EXP_GENPATCHES_PULL
+# @ECLASS-VARIABLE: K_EXP_GENPATCHES_PULL
# @DEFAULT_UNSET
# @DESCRIPTION:
# If set, we pull "experimental" regardless of the USE FLAG
# but expect the ebuild maintainer to use K_EXP_GENPATCHES_LIST.
-# @ECLASS-VARIABLE: K_EXP_GENPATCHES_NOUSE
+# @ECLASS-VARIABLE: K_EXP_GENPATCHES_NOUSE
# @DEFAULT_UNSET
# @DESCRIPTION:
# If set, no USE flag will be provided for "experimental";
# as a result the user cannot choose to apply those patches.
-# @ECLASS-VARIABLE: K_EXP_GENPATCHES_LIST
+# @ECLASS-VARIABLE: K_EXP_GENPATCHES_LIST
# @DEFAULT_UNSET
# @DESCRIPTION:
# A list of patches to pick from "experimental" to apply when
# the USE flag is unset and K_EXP_GENPATCHES_PULL is set.
-# @ECLASS-VARIABLE: K_FROM_GIT
+# @ECLASS-VARIABLE: K_FROM_GIT
# @DEFAULT_UNSET
# @DESCRIPTION:
-# If set, this variable signals that the kernel sources derives
-# from a git tree and special handling will be applied so that
+# If set, this variable signals that the kernel sources derives
+# from a git tree and special handling will be applied so that
# any patches that are applied will actually apply.
-# @ECLASS-VARIABLE: K_GENPATCHES_VER
+# @ECLASS-VARIABLE: K_GENPATCHES_VER
# @DEFAULT_UNSET
# @DESCRIPTION:
# The version of the genpatches tarball(s) to apply.
@@ -128,45 +128,45 @@
# If set, this kernel is unsupported by Gentoo Security
# to the current eclass maintainer :)
-# @ECLASS-VARIABLE: K_DEBLOB_AVAILABLE
+# @ECLASS-VARIABLE: K_DEBLOB_AVAILABLE
# @DEFAULT_UNSET
# @DESCRIPTION:
# A value of "0" will disable all of the optional deblob
# code. If empty, will be set to "1" if deblobbing is
# possible. Test ONLY for "1".
-# @ECLASS-VARIABLE: K_DEBLOB_TAG
+# @ECLASS-VARIABLE: K_DEBLOB_TAG
# @DEFAULT_UNSET
# @DESCRIPTION:
# This will be the version of deblob script. It's a upstream SVN tag
# such asw -gnu or -gnu1.
-# @ECLASS-VARIABLE: K_PREDEBLOBBED
+# @ECLASS-VARIABLE: K_PREDEBLOBBED
# @DEFAULT_UNSET
# @DESCRIPTION:
# This kernel was already deblobbed elsewhere.
# If false, either optional deblobbing will be available
# or the license will note the inclusion of freedist code.
-# @ECLASS-VARIABLE: K_LONGTERM
+# @ECLASS-VARIABLE: K_LONGTERM
# @DEFAULT_UNSET
# @DESCRIPTION:
# If set, the eclass will search for the kernel source
# in the long term directories on the upstream servers
# as the location has been changed by upstream
-# @ECLASS-VARIABLE: H_SUPPORTEDARCH
+# @ECLASS-VARIABLE: H_SUPPORTEDARCH
# @DEFAULT_UNSET
# @DESCRIPTION:
# this should be a space separated list of ARCH's which
# can be supported by the headers ebuild
-# @ECLASS-VARIABLE: UNIPATCH_LIST
+# @ECLASS-VARIABLE: UNIPATCH_LIST
# @DEFAULT_UNSET
# @DESCRIPTION:
# space delimetered list of patches to be applied to the kernel
-# @ECLASS-VARIABLE: UNIPATCH_EXCLUDE
+# @ECLASS-VARIABLE: UNIPATCH_EXCLUDE
# @DEFAULT_UNSET
# @DESCRIPTION:
# An addition var to support exlusion based completely
@@ -174,13 +174,13 @@
# this should _NOT_ be used from the ebuild as this is
# reserved for end users passing excludes from the cli
-# @ECLASS-VARIABLE: UNIPATCH_DOCS
+# @ECLASS-VARIABLE: UNIPATCH_DOCS
# @DEFAULT_UNSET
# @DESCRIPTION:
# space delimemeted list of docs to be installed to
# the doc dir
-# @ECLASS-VARIABLE: UNIPATCH_STRICTORDER
+# @ECLASS-VARIABLE: UNIPATCH_STRICTORDER
# @DEFAULT_UNSET
# @DESCRIPTION:
# if this is set places patches into directories of
@@ -232,7 +232,7 @@ RESTRICT="binchecks strip"
# @FUNCTION: debug-print-kernel2-variables
# @USAGE:
-# @DESCRIPTION:
+# @DESCRIPTION:
# this function exists only to help debug kernel-2.eclass
# if you are adding new functionality in, put a call to it
# at the start of src_unpack, or during SRC_URI/dep generation.
@@ -305,7 +305,7 @@ handle_genpatches() {
# @FUNCTION: detect_version
# @USAGE:
-# @DESCRIPTION:
+# @DESCRIPTION:
# this function will detect and set
# - OKV: Original Kernel Version (2.6.0/2.6.0-test11)
# - KV: Kernel Version (2.6.0-gentoo/2.6.0-test11-gentoo-r1)
@@ -537,7 +537,7 @@ detect_version() {
# @FUNCTION: kernel_is
# @USAGE: <conditional version | version>
-# @DESCRIPTION:
+# @DESCRIPTION:
# user for comparing kernel versions
# or just identifying a version
# e.g kernel_is 2 4
@@ -571,16 +571,16 @@ kernel_is() {
# @FUNCTION: kernel_is_2_4
# @USAGE:
-# @DESCRIPTION:
-# return true if kernel is version 2.4
+# @DESCRIPTION:
+# return true if kernel is version 2.4
kernel_is_2_4() {
kernel_is 2 4
}
# @FUNCTION: kernel_is_2_6
# @USAGE:
-# @DESCRIPTION:
-# return true if kernel is version 2.6
+# @DESCRIPTION:
+# return true if kernel is version 2.6
kernel_is_2_6() {
kernel_is 2 6 || kernel_is 2 5
}
@@ -670,7 +670,7 @@ fi
# @FUNCTION: kernel_header_destdir
# @USAGE:
-# @DESCRIPTION:
+# @DESCRIPTION:
# return header destination directory
kernel_header_destdir() {
[[ ${CTARGET} == ${CHOST} ]] \
@@ -680,15 +680,15 @@ kernel_header_destdir() {
# @FUNCTION: cross_pre_c_headers
# @USAGE:
-# @DESCRIPTION:
-# set use if necessary for cross compile support
+# @DESCRIPTION:
+# set use if necessary for cross compile support
cross_pre_c_headers() {
use crosscompile_opts_headers-only && [[ ${CHOST} != ${CTARGET} ]]
}
# @FUNCTION: env_setup_xmakeopts
# @USAGE:
-# @DESCRIPTION:
+# @DESCRIPTION:
# set the ARCH/CROSS_COMPILE when cross compiling
env_setup_xmakeopts() {
@@ -708,7 +708,7 @@ env_setup_xmakeopts() {
# @FUNCTION: unpack_2_4
# @USAGE:
-# @DESCRIPTION:
+# @DESCRIPTION:
# unpack and generate .config for 2.4 kernels
unpack_2_4() {
@@ -722,7 +722,7 @@ unpack_2_4() {
# @FUNCTION: unpack_2_6
# @USAGE:
-# @DESCRIPTION:
+# @DESCRIPTION:
# unpack and generate .config for 2.6 kernels
unpack_2_6() {
@@ -748,8 +748,8 @@ unpack_2_6() {
# @FUNCTION: universal_unpack
# @USAGE:
-# @DESCRIPTION:
-# unpack kernel sources
+# @DESCRIPTION:
+# unpack kernel sources
universal_unpack() {
debug-print "Inside universal_unpack"
@@ -792,8 +792,8 @@ universal_unpack() {
# @FUNCTION: unpack_set_extraversion
# @USAGE:
-# @DESCRIPTION:
-# handle EXTRAVERSION
+# @DESCRIPTION:
+# handle EXTRAVERSION
unpack_set_extraversion() {
cd "${S}"
@@ -803,7 +803,7 @@ unpack_set_extraversion() {
# @FUNCTION: unpack_fix_install_path
# @USAGE:
-# @DESCRIPTION:
+# @DESCRIPTION:
# Should be done after patches have been applied
# Otherwise patches that modify the same area of Makefile will fail
@@ -816,7 +816,7 @@ unpack_fix_install_path() {
# @FUNCTION: compile_headers
# @USAGE:
-# @DESCRIPTION:
+# @DESCRIPTION:
# header compilation
compile_headers() {
@@ -873,7 +873,7 @@ compile_headers() {
# @FUNCTION: compile_headers_tweak_config
# @USAGE:
-# @DESCRIPTION:
+# @DESCRIPTION:
# some targets can be very very picky, so let's finesse the
# .config based upon any info we may have
@@ -893,7 +893,7 @@ compile_headers_tweak_config() {
# @FUNCTION: install_universal
# @USAGE:
-# @DESCRIPTION:
+# @DESCRIPTION:
# Fix permissions in tarball
install_universal() {
@@ -905,8 +905,8 @@ install_universal() {
# @FUNCTION: install_headers
# @USAGE:
-# @DESCRIPTION:
-# Install headers
+# @DESCRIPTION:
+# Install headers
install_headers() {
local ddir=$(kernel_header_destdir)
@@ -945,8 +945,8 @@ install_headers() {
# @FUNCTION: install_sources
# @USAGE:
-# @DESCRIPTION:
-# Install sources
+# @DESCRIPTION:
+# Install sources
install_sources() {
local file
@@ -977,8 +977,8 @@ install_sources() {
# @FUNCTION: preinst_headers
# @USAGE:
-# @DESCRIPTION:
-# Headers preinst steps
+# @DESCRIPTION:
+# Headers preinst steps
preinst_headers() {
local ddir=$(kernel_header_destdir)
@@ -988,7 +988,7 @@ preinst_headers() {
# @FUNCTION: postinst_sources
# @USAGE:
-# @DESCRIPTION:
+# @DESCRIPTION:
# Sources post installation function.
# see inline comments
@@ -1089,7 +1089,7 @@ postinst_sources() {
# @FUNCTION: setup_headers
# @USAGE:
-# @DESCRIPTION:
+# @DESCRIPTION:
# Determine if ${PN} supports arch
setup_headers() {
@@ -1109,8 +1109,8 @@ setup_headers() {
# @FUNCTION: unipatch
# @USAGE: <list of patches to apply>
-# @DESCRIPTION:
-# Universal function that will apply patches to source
+# @DESCRIPTION:
+# Universal function that will apply patches to source
unipatch() {
local i x y z extention PIPE_CMD UNIPATCH_DROP KPATCH_DIR PATCH_DEPTH ELINE
@@ -1128,7 +1128,7 @@ unipatch() {
# We're gonna need it when doing patches with a predefined patchlevel
eshopts_push -s extglob
- # This function will unpack all passed tarballs, add any passed patches,
+ # This function will unpack all passed tarballs, add any passed patches,
# and remove any passed patchnumbers
# usage can be either via an env var or by params
# although due to the nature we pass this within this eclass
@@ -1366,7 +1366,7 @@ unipatch() {
# @FUNCTION: getfilevar
# @USAGE: <variable> <configfile>
-# @DESCRIPTION:
+# @DESCRIPTION:
# pulled from linux-info
getfilevar() {
@@ -1393,7 +1393,7 @@ getfilevar() {
# @FUNCTION: detect_arch
# @USAGE:
-# @DESCRIPTION:
+# @DESCRIPTION:
# This function sets ARCH_URI and ARCH_PATCH
# with the neccessary info for the arch sepecific compatibility
# patchsets.
@@ -1427,7 +1427,7 @@ detect_arch() {
# @FUNCTION: headers___fix
# @USAGE:
-# @DESCRIPTION:
+# @DESCRIPTION:
# Voodoo to partially fix broken upstream headers.
# note: do not put inline/asm/volatile together (breaks "inline asm volatile")
@@ -1441,10 +1441,10 @@ headers___fix() {
"$@"
}
-# @FUNCTION: kernel-2_src_unpack()
+# @FUNCTION: kernel-2_src_unpack()
# @USAGE:
-# @DESCRIPTION:
-# unpack sources, handle genpatches, deblob
+# @DESCRIPTION:
+# unpack sources, handle genpatches, deblob
kernel-2_src_unpack() {
universal_unpack
@@ -1506,7 +1506,7 @@ kernel-2_src_unpack() {
# @FUNCTION: kernel-2_src_prepare
# @USAGE:
# @DESCRIPTION:
-# Apply any user patches
+# Apply any user patches
kernel-2_src_prepare() {
@@ -1522,7 +1522,7 @@ kernel-2_src_prepare() {
# @FUNCTION: kernel-2_src_compile
# @USAGE:
# @DESCRIPTION:
-# conpile headers or run deblob script
+# conpile headers or run deblob script
kernel-2_src_compile() {
cd "${S}"
@@ -1548,7 +1548,7 @@ kernel-2_src_test() { :; }
# @FUNCTION: kernel-2_pkg_preinst
# @DESCRIPTION:
-# if ETYPE = headers, call preinst_headers
+# if ETYPE = headers, call preinst_headers
kernel-2_pkg_preinst() {
[[ ${ETYPE} == headers ]] && preinst_headers
@@ -1568,7 +1568,7 @@ kernel-2_src_install() {
# @FUNCTION: kernel-2_pkg_postinst
# @USAGE:
# @DESCRIPTION:
-# call postinst_sources for ETYPE = sources
+# call postinst_sources for ETYPE = sources
kernel-2_pkg_postinst() {
[[ ${ETYPE} == sources ]] && postinst_sources
@@ -1578,7 +1578,7 @@ kernel-2_pkg_postinst() {
# @USAGE:
# @DESCRIPTION:
# check for supported kernel version, die if ETYPE is unknown, call setup_headers
-# if necessary
+# if necessary
kernel-2_pkg_setup() {
if kernel_is 2 4; then