NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: How to include items for build with build.sh?



On 11/6/11 3:19 PM, Julio Merino wrote:
On 11/6/11 2:54 PM, Louis Guillaume wrote:
On 11/5/11 9:40 PM, Julio Merino wrote:
On 11/5/11 5:12 PM, Louis Guillaume wrote:
Hi,

I'm trying to get resize_ffs in to my regularly scheduled builds. It's
there in /usr/src/sbin/resize_ffs, but it is not included in builds.

How do we tell build.sh to build and include this in one of the sets?

What release is this on?  If it's current, it should be getting
installed like any other program.



This is on the netbsd-5 branch. But the question is more about general
usage too. How *would* one include such an item in the tree for
inclusion in a release set?

As far as I know, you cannot do this through build.sh unless such
"optional" component provides an MK* variable.  If the src/sbin/Makefile
provided a, say, MKRESIZEFFS variable to control whether resize_ffs gets
built or not, you'd then pass "-V MKRESIZEFFS=yes" to build.sh to enable it.

Note that this requires some weird hacks in the file sets lists
generation to work properly; just making the build conditional is not
enough.


Thanks for looking Julio. That's what I thought you'd say. I was hoping otherwise.

So now the question is - how do I build a usable resize_ffs on netbsd-5. Just doing a "make" in sbin/resize_ffs doesn't pick up all the build settings and fails. Setting TOOLDIR to my usual one and running make from /usr/src helps, but then make doesn't even find any of the standard headers. Obviously it's missing some more environmental stuff that build.sh normally sets up.

Ultimately what I need is a usable resize_ffs for netbsd-5, i386...

Any help would be great.

Louis



Home | Main Index | Thread Index | Old Index