Annotation of dietlibc/PORTING, revision 1.3
1.1 fefe 1: To port the diet libc to a new architecture, you need to:
2:
3: - edit Makefile to detect the architecture
4: - create a directory for the architecture, and put a Makefile.add in
5: it. Look at the other Makefile.adds for guidance.
6: - provide start.S (the start code, look at glibc)
7: - provide unified.S (the unified syscall)
8: - provide syscalls.h (the syscall numbers, from asm/unistd.h)
9: - provide setjmp and longjmp
10: - edit include/setjmp.h
11: - pipe, clone and mmap often need special care
12: - edit include/sys/ioctl.h
13: - edit include/sys/ptrace.h
14: - edit include/asm/sigcontext.h
15: - edit include/endian.h
16: - edit include/fcntl.h
17: - edit include/sys/mman.h
18: - edit include/sys/shm.h
19: - edit include/sys/stat.h
1.2 fefe 20: - edit include/errno.h
1.1 fefe 21: - edit syscalls.h
1.3 ! fefe 22: - edit diet.c to make it recognize the architecture and add proper
! 23: CFLAGS
1.1 fefe 24:
25: (I may have missed a few)
LinuxTV legacy CVS <linuxtv.org/cvs>