Jivin Robin Getz lays it down ...
> I'm just wondering - what is the expectation/common use...
>
> When I'm building up images, I use "make image" all the time. It's fast, and
> great when I'm just making some minor changes in the romfs/ directory. When
> I'm testing things out, I just edit scripts (like /etc/rc) in the romfs/
> directory directly, and then just "make image". Works like a charm.
Yep, do it all the time myself.
> However, a problem occurs if I need to do a 'make' in the dist (to rebuild
> some missing app), since my vendors/*/*/Makefile includes a:
>
> $(ROMFSINST) /etc/rc
>
> (like 150 other Makefiles) and romfs-inst.sh clobbers overtop of my local
> changes in romfs/etc/rc with the one from vendors/*/*/rc
>
> I could just stop making changes in the romfs/ directory (and do everything
> in ./vendors/*/* - which I don't do today - since I don't want to check
> anything into cvs/svn by mistake - and builds would take longer), or I could
> add a new flag to romfs-inst.sh (which would not copy the file if it already
> existed) - which would cause problems for people who expect today's
> behaviour....
>
> Is ./romfs suppost to be the output of everything? (and people shouldn't be
> editing things there?)
Well you can do it, but you need to deal with the odd occasion when you
forget :-)
The latest dists should alow you to:
edit romfs/...
edit user/app/x.c
make user/app_only
make user/app_romfs
make image
So that sort of gets around the problem you are having.
Another option I often use is links. Keep copies of the files I am
working on in a shdow directory and either link (hard) or copy them into
the romfs dir before doing the "make image".
Some times I even temporarily mod the toplevel Makefile to do the
copy/remove whatever so I don't break it.
Hope that helps some.
Cheers,
Davidm
--
David McCullough, [EMAIL PROTECTED], Ph:+61 734352815
Secure Computing - SnapGear http://www.uCdot.org http://www.snapgear.com
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev