2 |
# $Id$ |
# $Id$ |
3 |
|
|
4 |
# needed extra vars: |
# needed extra vars: |
5 |
# ${KERNEL_TYPE}: needed, 'sources', 'headers' or 'image' |
# ${KERNEL_TYPE}: needed, 'sources', 'headers' or 'image' |
6 |
# ${BRANCH}: needed, style branch of the kernel |
# ${BRANCH}: needed, style branch of the kernel |
7 |
# ${KERNEL_CONFIG}: optional, needed if you want to override the default |
# ${KERNEL_CONFIG}: optional, needed if you want to override the default |
8 |
# searchpath ${SOURCEDIR}/${PNAME}/config-${PVER}-${BRANCH}-${PBUILD} |
# searchpath ${SOURCEDIR}/${PNAME}/config-${PVER}-${BRANCH}-${PBUILD} |
9 |
|
# |
10 |
|
# ${PSUBVER}: optional, only needed for 2.6.x.x naming scheme |
11 |
|
# ${EXTRAVERSION}: optinal, extra version for the kernel name |
12 |
|
# default setting is ${PSUBVER}-${BRANCH}-${PBUILD} |
13 |
|
# ${KERNEL_IMAGE_PATH}: override the default KERNEL_IMAGE_PATH (to build xen images for e.g.) |
14 |
|
# ${COMPRESS_MODULES}: compresses the kernel modules with given compressor (gzip|bzip2|xz) |
15 |
|
# ${LINUX_FIRMWARE}: remove included firmware bits if requested |
16 |
|
# set the version here like USE_LINUX_FIRMARE="20110605" |
17 |
|
# version "internal" keeps the bits too |
18 |
# |
# |
|
# ${PSUBVER}: optional, only needed for 2.6.x.x naming scheme |
|
|
# ${EXTRAVERSION}: optinal, extra version for the kernel name |
|
|
# default setting is ${PSUBVER}-${BRANCH}-${PBUILD} |
|
|
# ${KERNEL_IMAGE_PATH}: override the default KERNEL_IMAGE_PATH (to build xen images for e.g.) |
|
|
# ${COMPRESS_MODULES}: compresses the kernel modules with given compressor (gzip|bzip2|xz) |
|
19 |
|
|
20 |
sminclude mtools |
sminclude mtools |
21 |
|
|
27 |
KERNEL_ARCH_EXTENSION="" |
KERNEL_ARCH_EXTENSION="" |
28 |
fi |
fi |
29 |
|
|
|
# remove included firmware bits if requested |
|
|
# set the version here like USE_LINUX_FIRMARE="20110605" |
|
|
# version "internal" keeps the bits too |
|
|
if [[ ! -z ${LINUX_FIRMWARE} ]] && [[ ${LINUX_FIRMWARE} != internal ]] |
|
|
then |
|
|
DEPEND="${DEPEND} |
|
|
>= sys-kernel/linux-firmware-${LINUX_FIRMWARE}" |
|
|
fi |
|
|
|
|
30 |
if [[ ! -z ${COMPRESS_MODULES} ]] |
if [[ ! -z ${COMPRESS_MODULES} ]] |
31 |
then |
then |
32 |
case ${COMPRESS_MODULES} in |
case ${COMPRESS_MODULES} in |
85 |
>= sys-fs/udev-115 |
>= sys-fs/udev-115 |
86 |
>= virtual/initramfs-tools |
>= virtual/initramfs-tools |
87 |
>= virtual/initscripts"} |
>= virtual/initscripts"} |
88 |
|
if [[ ! -z ${LINUX_FIRMWARE} ]] && [[ ${LINUX_FIRMWARE} != internal ]] |
89 |
|
then |
90 |
|
DEPEND="${DEPEND} |
91 |
|
>= sys-kernel/linux-firmware-${LINUX_FIRMWARE}" |
92 |
|
fi |
93 |
: ${DESCRIPTION="Kernel image of the '${PVER}-${BRANCH}-${PBUILD}${KERNEL_ARCH_EXTENSION}' kernel branch."} |
: ${DESCRIPTION="Kernel image of the '${PVER}-${BRANCH}-${PBUILD}${KERNEL_ARCH_EXTENSION}' kernel branch."} |
94 |
;; |
;; |
95 |
|
|