Actually setting permissions. It helps if one remembers to 'git add' before doing...
[genkernel.git] / gen_compile.sh
old mode 100644 (file)
new mode 100755 (executable)
index faf4076..40ba84e
@@ -35,9 +35,9 @@ compile_utils_args()
 
        if [ -n "${UTILS_CROSS_COMPILE}" ]
        then
-               UTILS_CC="${UTILS_CROSS_COMPILE}-gcc"
-               UTILS_LD="${UTILS_CROSS_COMPILE}-ld"
-               UTILS_AS="${UTILS_CROSS_COMPILE}-as"
+               UTILS_CC="${UTILS_CROSS_COMPILE}gcc"
+               UTILS_LD="${UTILS_CROSS_COMPILE}ld"
+               UTILS_AS="${UTILS_CROSS_COMPILE}as"
        fi
 
        if [ "${UTILS_ARCH}" != '' ]
@@ -335,6 +335,12 @@ compile_busybox() {
        then
                [ -f "${BUSYBOX_CONFIG}" ] ||
                        gen_die "Could not find busybox config file: ${BUSYBOX_CONFIG}"
+       elif isTrue "${NETBOOT}" && [ -f "$(arch_replace "${GK_SHARE}/arch/%%ARCH%%/netboot-busy-config")" ]
+       then
+               BUSYBOX_CONFIG="$(arch_replace "${GK_SHARE}/arch/%%ARCH%%/netboot-busy-config")"
+       elif isTrue "${NETBOOT}" && [ -f "${GK_SHARE}/netboot/busy-config" ]
+       then
+               BUSYBOX_CONFIG="${GK_SHARE}/netboot/busy-config"
        elif [ -f "$(arch_replace "${GK_SHARE}/arch/%%ARCH%%/busy-config")" ]
        then
                BUSYBOX_CONFIG="$(arch_replace "${GK_SHARE}/arch/%%ARCH%%/busy-config")"
@@ -342,7 +348,7 @@ compile_busybox() {
        then
                BUSYBOX_CONFIG="${GK_SHARE}/defaults/busy-config"
        else
-               gendie "Could not find a busybox config file"
+               gen_die "Could not find a busybox config file"
        fi
 
        # Delete cache if stored config's MD5 does not match one to be used