From: Thomas Chen (tchen@on-go.com)
Date: Fri Sep 20 2002 - 12:01:21 EDT
thanks... i will give that a try... i was just under some wrong impression for recent discussion on the list about "make user_only" that you can do things independently... since i am making kernel changes (i am porting it to oki for 2.4), that i want to minimize the build time also, i have selected uclibc from your previous instruction posting, but i am not sure since i have found sites refereing to using uc-libc (for userland stuff)... is stuff like "ifconfig" considered userland stuff?? David McCullough wrote: > Jivin Thomas Chen lays it down ... > > > > dave.... a bit further, but not quite there... i must have my directory strcuture > > set up different than what the make file expects??? > > > > here is what i have > > > > /opt/uClinux-dist contains both 2.0 and 2.4 > > i have one symbolic link > > /opt/uClinux points to /opt/uClinux-dist > > and in > > /opt/uClinux-dist, there are linux-2.0.x and linux-2.4.x > > and there is a symbolic link > > linux points to linux-2.4.x > > remove the "linux" link. The uClinux-dist uses linux-2.4.x and > linux-2.0.x style directory names. > > > i was able to build the tool-chain without any change... (excellent) > > and i was able to build kernel > > > > $ cd /opt/uClinux/linux > > $ make config > > $ make dep; make linux > > Do not do this, run: > > make dep > make > > You are building parts of the tree in ways the dist is not setup to do. > > > so far so good > > > > then i tried to make the uClibc > > > > $ cd /opt/uClinux/uClibc > > $ make > > > > it blew up building mntend.c > > This will not work, just type: > > cd /opt/uClinux > make config > make dep > make > > and it will build the kernel, uClibc and all the apps for you. > > > there is a file in > > /opt/uClinux/config/autoconf.h > > > > but the compiler is looking for > > /opt/uClinux/include/config/autoconf.h > > > > > > what could i have set up wrong??? i did have > > config.uClibc and config.arch in > > /opt/uClinux/vendors/oki/mls674000 > > directory.... and they look ok (copied from atmel/at91 and some > > modification) > > The problems you are having are because you are not using the uClinux-dist > the way it was intended. You do not have to build anything seperately, it > builds all the parts for you automatically. Keep the directories the same > as they are in the uClinux-dist tarball, then use the 'make config' step to > select your kernel and libc library and you will not have these problems. > If you are not sure read the README in the uClinux-dist for instructions on > how to build the entire tree, > > Cheers, > Davidm > > -- > David McCullough: Ph: +61 7 3435 2815 http://www.SnapGear.com > davidm@snapgear.com Fx: +61 7 3891 3630 Custom Embedded Solutions + Security > This message resent by the uclinux-dev@uclinux.org list server http://www.uClinux.org/ This message resent by the uclinux-dev@uclinux.org list server http://www.uClinux.org/
This archive was generated by hypermail 2.1.4 : Fri Sep 20 2002 - 12:01:56 EDT