[Samsung Epic 4G Touch] MikeC84:
Fixed the path and it compiled with errors

michaelc@michaelc-iMac:~/Desktop/SPH-D710_SPR_Kernel$ ./build
compiling modules...
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
GEN usr/initramfs_data.cpio
AS usr/initramfs_data.o
LD usr/built-in.o
LD vmlinux.o
MODPOST vmlinux.o
WARNING: modpost: Found 13 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
GEN .version
CHK include/generated/compile.h
UPD include/generated/compile.h
CC init/version.o
LD init/built-in.o
LD .tmp_vmlinux1
KSYM .tmp_kallsyms1.S
AS .tmp_kallsyms1.o
LD .tmp_vmlinux2
KSYM .tmp_kallsyms2.S
AS .tmp_kallsyms2.o
LD vmlinux
SYSMAP System.map
SYSMAP .tmp_System.map
OBJCOPY arch/arm/boot/Image
Building modules, stage 2.
MODPOST 6 modules
Kernel: arch/arm/boot/Image is ready
GZIP arch/arm/boot/compressed/piggy.gzip
SHIPPED arch/arm/boot/compressed/lib1funcs.S
AS arch/arm/boot/compressed/lib1funcs.o
AS arch/arm/boot/compressed/piggy.gzip.o
LD arch/arm/boot/compressed/vmlinux
OBJCOPY arch/arm/boot/zImage
Kernel: arch/arm/boot/zImage is ready
copying driver modules...
`./drivers/bluetooth/bthid/bthid.ko' -> `/home/michaelc/Desktop/SPH-D710_SPR_Kernel/initramfs/SPH-D710-initramfs/lib/modules/'
cp: cannot create regular file `/home/michaelc/Desktop/SPH-D710_SPR_Kernel/initramfs/SPH-D710-initramfs/lib/modules/': No such file or directory
`./drivers/samsung/j4fs/j4fs.ko' -> `/home/michaelc/Desktop/SPH-D710_SPR_Kernel/initramfs/SPH-D710-initramfs/lib/modules/'
cp: cannot create regular file `/home/michaelc/Desktop/SPH-D710_SPR_Kernel/initramfs/SPH-D710-initramfs/lib/modules/': No such file or directory
`./drivers/samsung/vibetonz/vibrator.ko' -> `/home/michaelc/Desktop/SPH-D710_SPR_Kernel/initramfs/SPH-D710-initramfs/lib/modules/'
cp: cannot create regular file `/home/michaelc/Desktop/SPH-D710_SPR_Kernel/initramfs/SPH-D710-initramfs/lib/modules/': No such file or directory
`./drivers/net/wireless/bcm4330/dhd.ko' -> `/home/michaelc/Desktop/SPH-D710_SPR_Kernel/initramfs/SPH-D710-initramfs/lib/modules/'
cp: cannot create regular file `/home/michaelc/Desktop/SPH-D710_SPR_Kernel/initramfs/SPH-D710-initramfs/lib/modules/': No such file or directory
`./drivers/scsi/scsi_wait_scan.ko' -> `/home/michaelc/Desktop/SPH-D710_SPR_Kernel/initramfs/SPH-D710-initramfs/lib/modules/'
cp: cannot create regular file `/home/michaelc/Desktop/SPH-D710_SPR_Kernel/initramfs/SPH-D710-initramfs/lib/modules/': No such file or directory
`./drivers/staging/westbridge/astoria/switch/cyasswitch.ko' -> `/home/michaelc/Desktop/SPH-D710_SPR_Kernel/initramfs/SPH-D710-initramfs/lib/modules/'
cp: cannot create regular file `/home/michaelc/Desktop/SPH-D710_SPR_Kernel/initramfs/SPH-D710-initramfs/lib/modules/': No such file or directory
compiling kernel...
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
GEN usr/initramfs_data.cpio
AS usr/initramfs_data.o
LD usr/built-in.o
LD vmlinux.o
MODPOST vmlinux.o
WARNING: modpost: Found 13 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
GEN .version
CHK include/generated/compile.h
UPD include/generated/compile.h
CC init/version.o
LD init/built-in.o
LD .tmp_vmlinux1
KSYM .tmp_kallsyms1.S
AS .tmp_kallsyms1.o
LD .tmp_vmlinux2
KSYM .tmp_kallsyms2.S
AS .tmp_kallsyms2.o
LD vmlinux
SYSMAP System.map
SYSMAP .tmp_System.map
OBJCOPY arch/arm/boot/Image
Kernel: arch/arm/boot/Image is ready
GZIP arch/arm/boot/compressed/piggy.gzip
SHIPPED arch/arm/boot/compressed/lib1funcs.S
AS arch/arm/boot/compressed/lib1funcs.o
AS arch/arm/boot/compressed/piggy.gzip.o
LD arch/arm/boot/compressed/vmlinux
OBJCOPY arch/arm/boot/zImage
Kernel: arch/arm/boot/zImage is ready

Here is the script

#!/bin/sh
export KERNELDIR=`readlink -f .`
export INITRAMFS_SOURCE=`readlink -f /home/michaelc/Desktop/initramfs`
export PARENT_DIR=`readlink -f ..`

export CONFIG_DEFAULT_HOSTNAME=console-ubuntu
export ARCH=arm
export CROSS_COMPILE=/home/michaelc/Desktop/arm-2009q3/bin/arm-none-eabi-

# Sets the working directory for creating the initramfs, useful because it keeps the original clean of any modules, etc. that might cause issues
INITRAMFS="$KERNELDIR/initramfs"

# Check to see if .config exists and if it doesn't runs a defconfig(set to your choice)
if [ ! -f $KERNELDIR/.config ];
then
make c1_rev05_na_spr_defconfig
fi

. $KERNELDIR/.config

# Remove any old initramfs stuff to make sure we build clean
rm -rf $KERNELDIR/initramfs
mkdir $INITRAMFS
cp -ax $INITRAMFS_SOURCE $INITRAMFS

echo compiling modules...
cd $KERNELDIR/
# Compile whole kernel, not just modules, to get the errors sooner
make -j5 || exit 1

# Copies the clean initramfs to our working directory and cleans it up a bit.
# cp -ax $INITRAMFS_SOURCE $INITRAMFS
# find $INITRAMFS_TMP -name .git -exec rm -rf {} \;
# rm -rf $INITRAMFS_TMP/.hg

# Find all modules that were just built and copy them into the working directory
echo copying driver modules...
find -name '*.ko' -exec cp -av {} $KERNELDIR/initramfs/SPH-D710-initramfs/lib/modules/ \;

# Create initramfs for final build
# cd $INITRAMFS_TMP
# find | fakeroot cpio -H newc -o > $INITRAMFS_TMP.cpio 2>/dev/null
# ls -lh $INITRAMFS_TMP.cpio
# cd -

echo compiling kernel...
make -j5 zImage CONFIG_INITRAMFS_SOURCE="/home/michaelc/Desktop/initramfs" || exit 1
# make -j5 zImage

What do I need to change the directory to on the part where it copies driver modules? That where I get my errors..