Lines 242-247
detect_version() {
Link Here
|
242 |
debug-print-kernel2-variables |
242 |
debug-print-kernel2-variables |
243 |
|
243 |
|
244 |
handle_genpatches |
244 |
handle_genpatches |
|
|
245 |
|
246 |
DEBLOB_SCRIPT="deblob-${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}" |
247 |
KERNEL_URI="${KERNEL_URI} |
248 |
deblob? ( |
249 |
http://www.linux-libre.fsfla.org/pub/linux-libre/releases/LATEST-${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}.N/${DEBLOB_SCRIPT} )" |
245 |
} |
250 |
} |
246 |
|
251 |
|
247 |
kernel_is() { |
252 |
kernel_is() { |
Lines 297-303
if [[ ${ETYPE} == sources ]]; then
Link Here
|
297 |
|
302 |
|
298 |
SLOT="${PVR}" |
303 |
SLOT="${PVR}" |
299 |
DESCRIPTION="Sources for the ${KV_MAJOR}.${KV_MINOR} linux kernel" |
304 |
DESCRIPTION="Sources for the ${KV_MAJOR}.${KV_MINOR} linux kernel" |
300 |
IUSE="symlink build" |
305 |
IUSE="symlink build deblob" |
301 |
elif [[ ${ETYPE} == headers ]]; then |
306 |
elif [[ ${ETYPE} == headers ]]; then |
302 |
DESCRIPTION="Linux system headers" |
307 |
DESCRIPTION="Linux system headers" |
303 |
|
308 |
|
Lines 624-629
postinst_sources() {
Link Here
|
624 |
# if we have USE=symlink, then force K_SYMLINK=1 |
629 |
# if we have USE=symlink, then force K_SYMLINK=1 |
625 |
use symlink && K_SYMLINK=1 |
630 |
use symlink && K_SYMLINK=1 |
626 |
|
631 |
|
|
|
632 |
# if we're using a deblobbed kernel, it's not supported |
633 |
use deblob && K_SECURITY_UNSUPPORTED=1 |
634 |
|
627 |
# if we are to forcably symlink, delete it if it already exists first. |
635 |
# if we are to forcably symlink, delete it if it already exists first. |
628 |
if [[ ${K_SYMLINK} > 0 ]]; then |
636 |
if [[ ${K_SYMLINK} > 0 ]]; then |
629 |
[[ -h ${ROOT}usr/src/linux ]] && rm ${ROOT}usr/src/linux |
637 |
[[ -h ${ROOT}usr/src/linux ]] && rm ${ROOT}usr/src/linux |
Lines 1064-1074
kernel-2_src_unpack() {
Link Here
|
1064 |
kernel_is 2 4 && unpack_2_4 |
1072 |
kernel_is 2 4 && unpack_2_4 |
1065 |
kernel_is 2 6 && unpack_2_6 |
1073 |
kernel_is 2 6 && unpack_2_6 |
1066 |
fi |
1074 |
fi |
|
|
1075 |
|
1076 |
if use deblob ; then |
1077 |
chmod +x "${DISTDIR}/${DEBLOB_SCRIPT}" |
1078 |
fi |
1067 |
} |
1079 |
} |
1068 |
|
1080 |
|
1069 |
kernel-2_src_compile() { |
1081 |
kernel-2_src_compile() { |
1070 |
cd "${S}" |
1082 |
cd "${S}" |
1071 |
[[ ${ETYPE} == headers ]] && compile_headers |
1083 |
[[ ${ETYPE} == headers ]] && compile_headers |
|
|
1084 |
|
1085 |
if use deblob ; then |
1086 |
echo ">>> Running deblob script ..." |
1087 |
sh "${DISTDIR}/${DEBLOB_SCRIPT}" --force |
1088 |
fi |
1072 |
} |
1089 |
} |
1073 |
|
1090 |
|
1074 |
kernel-2_pkg_preinst() { |
1091 |
kernel-2_pkg_preinst() { |