Re: [Yaffs] building yaffs direct...

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Charles Manning
Date:  
To: yaffs
Subject: Re: [Yaffs] building yaffs direct...
On Friday 21 September 2012 11:32:26 Charles Manning wrote:
> On Friday 21 September 2012 08:19:16 Ed Sutter wrote:
> > On 9/20/2012 1:18 PM, Ed Sutter wrote:
> > > On 9/17/2012 1:17 PM, Ed Sutter wrote:
> > >> Hi,
> > >> What is the status of building "yaffs direct"? Based on a different
> > >> thread
> > >> (http://www.aleph1.co.uk/lurker/message/20120614.203459.f1b2edbf.en.ht
> > >>ml ), am
> > >> I correct to assume that this is under construction??
> > >>
> > >> I suppose I have two levels of non-standard complexity in my attempt
> > >> to do this...
> > >> First, I wanna build yaffs direct to run os-less.
> > >> Second I'd like to be able to build on Cygwin.
> > >>
> > >> I didn't find much text on this, so before I start building my own
> > >> makefile
> > >> I figured I'd ask if there is a documented procedure for doing this.
> > >>
> > >> Thanks,
> > >> Ed
> > >
> > > Following up on my own question...
> > > Does anyone have any experience with building yaffs-direct recently?
>
> I build it pretty much every day using Linux. I have built it in the past
> using cygwin, but not recently.
>
> I'll set up a Windows PC with Cygwin and give it a go today.
>


I just set up a new Win7 PC with Cygwin and built yaffs direct with a few
minor issues.

Here is what I did

1) Fetched the setup.exe from http://www.cygwin.com/.
2) I first just ran it using defaults.
3) I then added the gcc and gcc core packages by running setup.exe and typing
gcc in the search box, then selecting those packages.
4) Then ran setup.exe again to install make.
5) Went to http://yaffs.net/download-yaffs-using-git and fetched a tarball.
6) Opened up a cygwin terminal and
6a) untarred the tarball with
$ tar xvfz /cygdrive/c/User/charles/Downloads/yaffs....tar.gz\
6b) cd to yaffs../direct
6c) Ran the script there to copy through the yaffs core files
$ ./handle_common.sh copy
6d) cd to basic-test
6e) make

At this point the make failed because the cygwin gcc I had installed did not
like many of the -W options. I edited the Makefile to comment these out.

make then ran fine and I got a program called directtest2k.exe which ran fine.

NB The step at 6b. In the Old Days this was not required since the same
sources were linked in. These days the core sources are run through a simple
sed filter to modify a few names.


I hope that helps.

-- Charles