sample 파일에 있는 gpio를 이용하여 LED 구동하는 예제를 하다가 잘 안되서 질문드립니다.

/project/ez-x5/gpio 디렉토리에서
(sample에서는 /project/ez-x5/test/gpio 인데 test는 이 경로는 제가 변경했구요. 이 경로와 연관된 소스코드는 수정했습니다.)

# make clean
# make dep

까지 하면 오류가 나네요.(아래 참고)
우선 config.h가 없다고 하고요, rwsem.h도 없다고 합니다.

지금 fedora 7 사용하고 있고, arm-linux-gcc를 사용하기 때문에 armv5l-linux-부분은 arm-linux로 고쳐줬습니다.

그리고 makefile에서 gccmakedep 명령어도 이제 안 쓰이는 것 같아서 gcc -M으로 고쳐줬습니다.

우선 config.h와 rwsem.h가 왜 없는 지가 궁금하구요.
아래 메세지를 보시고 또 도움될만한 정보 있으시면 꼭 좀 알려주세요~
감사합니다.

===========================================================================================
for i in app device ; do make -C $i dep; done
make[1]: Entering directory `/project/ez-x5/gpio/app'
gcc -M -I. -I/usr/arm-linux/include -I../include test.c
test.o: test.c /usr/arm-linux/include/stdio.h \
  /usr/arm-linux/include/features.h /usr/arm-linux/include/sys/cdefs.h \
  /usr/arm-linux/include/gnu/stubs.h \
  /usr/lib/gcc/i386-redhat-linux/4.1.2/include/stddef.h \
  /usr/arm-linux/include/bits/types.h \
  /usr/arm-linux/include/bits/wordsize.h \
  /usr/arm-linux/include/bits/typesizes.h /usr/arm-linux/include/libio.h \
  /usr/arm-linux/include/_G_config.h /usr/arm-linux/include/wchar.h \
  /usr/arm-linux/include/bits/wchar.h /usr/arm-linux/include/gconv.h \
  /usr/lib/gcc/i386-redhat-linux/4.1.2/include/stdarg.h \
  /usr/arm-linux/include/bits/stdio_lim.h \
  /usr/arm-linux/include/bits/sys_errlist.h \
  /usr/arm-linux/include/stdlib.h /usr/arm-linux/include/sys/types.h \
  /usr/arm-linux/include/time.h /usr/arm-linux/include/endian.h \
  /usr/arm-linux/include/bits/endian.h \
  /usr/arm-linux/include/sys/select.h \
  /usr/arm-linux/include/bits/select.h \
  /usr/arm-linux/include/bits/sigset.h /usr/arm-linux/include/bits/time.h \
  /usr/arm-linux/include/sys/sysmacros.h \
  /usr/arm-linux/include/bits/pthreadtypes.h \
  /usr/arm-linux/include/bits/sched.h /usr/arm-linux/include/alloca.h \
  /usr/arm-linux/include/unistd.h /usr/arm-linux/include/bits/posix_opt.h \
  /usr/arm-linux/include/bits/confname.h /usr/arm-linux/include/getopt.h \
  /usr/arm-linux/include/fcntl.h /usr/arm-linux/include/bits/fcntl.h \
  /usr/arm-linux/include/termios.h /usr/arm-linux/include/bits/termios.h \
  /usr/arm-linux/include/sys/ttydefaults.h /usr/arm-linux/include/errno.h \
  /usr/arm-linux/include/bits/errno.h /usr/include/linux/errno.h \
  /usr/include/asm/errno.h /usr/include/asm-generic/errno.h \
  /usr/include/asm-generic/errno-base.h /usr/arm-linux/include/sys/stat.h \
  /usr/arm-linux/include/bits/stat.h /usr/arm-linux/include/sys/ioctl.h \
  /usr/arm-linux/include/bits/ioctls.h /usr/include/asm/ioctls.h \
  /usr/include/asm/ioctl.h /usr/include/asm-generic/ioctl.h \
  /usr/arm-linux/include/bits/ioctl-types.h \
  /usr/arm-linux/include/sys/signal.h /usr/arm-linux/include/signal.h \
  /usr/arm-linux/include/bits/signum.h \
  /usr/arm-linux/include/bits/siginfo.h \
  /usr/arm-linux/include/bits/sigaction.h \
  /usr/arm-linux/include/bits/sigcontext.h /usr/include/asm/sigcontext.h \
  /usr/arm-linux/include/bits/sigstack.h \
  /usr/arm-linux/include/bits/sigthread.h ../include/gpio.h
make[1]: Leaving directory `/project/ez-x5/gpio/app'
make[1]: Entering directory `/project/ez-x5/gpio/device'
gcc -M -I/project/ez-x5/kernel/linux/include -I./ -I../include gpio.c
gpio.c:31:26: error: linux/config.h: 그런 파일이나 디렉토리가 없음.
In file included from /project/ez-x5/kernel/linux/include/linux/kobject.h:25,
                 from /project/ez-x5/kernel/linux/include/linux/module.h:17,
                 from gpio.c:33:
/project/ez-x5/kernel/linux/include/linux/rwsem.h:24:65: error: asm/rwsem.h: 그런 파일이나 디렉토리가 없음.
In file included from /project/ez-x5/kernel/linux/include/linux/sched.h:51,
                 from gpio.c:45:
/project/ez-x5/kernel/linux/include/linux/jiffies.h:33:3: error: #error You lose.
/project/ez-x5/kernel/linux/include/linux/jiffies.h:225:31: error: division by zero in #if
/project/ez-x5/kernel/linux/include/linux/jiffies.h:225:31: error: division by zero in #if
/project/ez-x5/kernel/linux/include/linux/jiffies.h:225:31: error: division by zero in #if
/project/ez-x5/kernel/linux/include/linux/jiffies.h:225:31: error: division by zero in #if
/project/ez-x5/kernel/linux/include/linux/jiffies.h:225:31: error: division by zero in #if
/project/ez-x5/kernel/linux/include/linux/jiffies.h:225:31: error: division by zero in #if
/project/ez-x5/kernel/linux/include/linux/jiffies.h:225:31: error: division by zero in #if
/project/ez-x5/kernel/linux/include/linux/jiffies.h:225:31: error: division by zero in #if
/project/ez-x5/kernel/linux/include/linux/jiffies.h:225:31: error: division by zero in #if
/project/ez-x5/kernel/linux/include/linux/jiffies.h:225:31: error: division by zero in #if
/project/ez-x5/kernel/linux/include/linux/jiffies.h:225:31: error: division by zero in #if
/project/ez-x5/kernel/linux/include/linux/jiffies.h:225:31: error: division by zero in #if
/project/ez-x5/kernel/linux/include/linux/jiffies.h:225:31: error: division by zero in #if
/project/ez-x5/kernel/linux/include/linux/jiffies.h:225:31: error: division by zero in #if
/project/ez-x5/kernel/linux/include/linux/jiffies.h:225:31: error: division by zero in #if
/project/ez-x5/kernel/linux/include/linux/jiffies.h:225:31: error: division by zero in #if
/project/ez-x5/kernel/linux/include/linux/jiffies.h:225:31: error: division by zero in #if
/project/ez-x5/kernel/linux/include/linux/jiffies.h:225:31: error: division by zero in #if
/project/ez-x5/kernel/linux/include/linux/jiffies.h:225:31: error: division by zero in #if
/project/ez-x5/kernel/linux/include/linux/jiffies.h:225:31: error: division by zero in #if
/project/ez-x5/kernel/linux/include/linux/jiffies.h:225:31: error: division by zero in #if
/project/ez-x5/kernel/linux/include/linux/jiffies.h:225:31: error: division by zero in #if
/project/ez-x5/kernel/linux/include/linux/jiffies.h:225:31: error: division by zero in #if
/project/ez-x5/kernel/linux/include/linux/jiffies.h:225:31: error: division by zero in #if
/project/ez-x5/kernel/linux/include/linux/jiffies.h:225:31: error: division by zero in #if
/project/ez-x5/kernel/linux/include/linux/jiffies.h:225:31: error: division by zero in #if
/project/ez-x5/kernel/linux/include/linux/jiffies.h:225:31: error: division by zero in #if
/project/ez-x5/kernel/linux/include/linux/jiffies.h:225:31: error: division by zero in #if
/project/ez-x5/kernel/linux/include/linux/jiffies.h:225:31: error: division by zero in #if
/project/ez-x5/kernel/linux/include/linux/jiffies.h:225:31: error: division by zero in #if
/project/ez-x5/kernel/linux/include/linux/jiffies.h:225:31: error: division by zero in #if
make[1]: *** [dep] 오류 1
make[1]: Leaving directory `/project/ez-x5/gpio/device'
make: *** [dep] 오류 2
=========================================================================