better document new --make-target= option
authorFabio Erculiani <lxnay@sabayon.org>
Wed, 20 Jul 2011 19:26:12 +0000 (21:26 +0200)
committerFabio Erculiani <lxnay@sabayon.org>
Wed, 20 Jul 2011 19:26:12 +0000 (21:26 +0200)
defaults/config.sh
doc/genkernel.8.txt
gen_compile.sh

index 6d267577ede6614eb7a26a4555c9629145b805ec..d135e0e861a2a17604868d0d81180f3e39f8c606 100755 (executable)
@@ -3,7 +3,11 @@
 # Arch-specific options that normally shouldn't be changed.
 #
 KERNEL_MAKE_DIRECTIVE="bzImage"
-KERNEL_MAKE_DIRECTIVE_OVERRIDE="--INVALID--"
+# since "" is allowed (this will translate in `make `, which is nice
+# for xen-based kernels, the default value of
+# KERNEL_MAKE_DIRECTIVE_OVERRIDE cannot be ""
+DEFAULT_KERNEL_MAKE_DIRECTIVE_OVERRIDE="--INVALID--"
+KERNEL_MAKE_DIRECTIVE_OVERRIDE="${DEFAULT_KERNEL_MAKE_DIRECTIVE_OVERRIDE}"
 KERNEL_MAKE_DIRECTIVE_2=""
 KERNEL_BINARY="arch/i386/boot/bzImage"
 KERNEL_BINARY_OVERRIDE=""
index fc00834eaf8caf583e020c7329fd304d338f5b0f..caee447df8ee306d0927735a5c381e787b5954ac 100644 (file)
@@ -190,7 +190,9 @@ LOW-LEVEL COMPILATION OPTIONS
     GNU Make to use for the kernel compilation.
 
 *--kernel-target*=<t>::
-    Override default make target (bzImage)
+    Override default make target (bzImage), note that values
+    like --kernel-target= are also valid (useful for Xen
+    based kernel sources)
 
 *--kernel-binary*=<path>::
     Override default kernel binary path (arch/foo/boot/bar)
index 9fc35afc29132fd2880609d5b488bbd61fea2b5e..0758c3a6512426fd68b53fbad4359ad756d963a0 100755 (executable)
@@ -297,7 +297,7 @@ compile_kernel() {
                gen_die "KERNEL_MAKE undefined - I don't know how to compile a kernel for this arch!"
        cd ${KERNEL_DIR}
        local kernel_make_directive="${KERNEL_MAKE_DIRECTIVE}"
-       if [ "${KERNEL_MAKE_DIRECTIVE_OVERRIDE}" != "--INVALID--" ]; then
+       if [ "${KERNEL_MAKE_DIRECTIVE_OVERRIDE}" != "${DEFAULT_KERNEL_MAKE_DIRECTIVE_OVERRIDE}" ]; then
                kernel_make_directive="${KERNEL_MAKE_DIRECTIVE_OVERRIDE}"
        fi
        print_info 1 "        >> Compiling ${KV} ${kernel_make_directive/_install/ [ install ]/}..."