udev build fix for no ARCH=um architectures
authorEric Edgar <rocket@gentoo.org>
Thu, 16 Jun 2005 21:23:13 +0000 (21:23 +0000)
committerEric Edgar <rocket@gentoo.org>
Thu, 16 Jun 2005 21:23:13 +0000 (21:23 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@211 67a159dc-881f-0410-a524-ba9dfbe2cb84

gen_compile.sh

index 00071db30e3008598f99c6a2b54e819ccad9e058..5c3e2fb957d568afc44e21990f579ee57cfdaada 100644 (file)
@@ -689,7 +689,13 @@ compile_udev() {
                print_info 1 'udev: >> Compiling...'
 
                ln -snf "${KERNEL_DIR}" klibc/linux || gen_die "Could not link to ${KERNEL_DIR}"
-               compile_generic "ARCH=${ARCH} KERNEL_DIR=$KERNEL_DIR USE_KLIBC=true USE_LOG=false DEBUG=false udevdir=/dev all etc/udev/udev.conf" utils
+               if [ "${ARCH}" = 'um' ]
+               then
+                       compile_generic "ARCH=um KERNEL_DIR=$KERNEL_DIR USE_KLIBC=true USE_LOG=false DEBUG=false udevdir=/dev all etc/udev/udev.conf" utils
+               else
+                       compile_generic "KERNEL_DIR=$KERNEL_DIR USE_KLIBC=true USE_LOG=false DEBUG=false udevdir=/dev all etc/udev/udev.conf" utils
+               fi
+
 
                strip udev || gen_die 'Failed to strip the udev binary!'