[uClinux-dev] Upgrading to newer bridge-utils

Philip Craig philipc at snapgear.com
Fri Oct 19 04:46:48 EDT 2007


glhs329 at gmail.com wrote:
> I attached a 'makefile' patch which runs autoconf and configure in
> order to create Makefile. Up through bridge-utils-1.1 they provided
> 'configure', but bridge-utils-1.2 expects you to create 'configure'
> using autoconf. This is according to a response I got from the
> developer to a question I posted on the bridge-utils mail list.

Thanks.

I've generated configure for the dist.  I don't think anything else
relies on autoconf yet, plus it has versioning problems.

> You'll note CONFOPTS changed slightly, and I changed the romfs target
> to install the executable into /usr/sbin, which I believe is the
> typical installation directory. It's fine with me if you want  to
> change this back to /bin.

I've put it back to /bin, it's unlikely but someone may have this
hardcoded for the dist already.

> One thing to consider is the size of the executable seems to have
> jumped between 1.1 and 1.2. Here are the sizes when built for my
> uClinux i386 target:
> 
>    text    data     bss     dec     hex filename
>   12164     704      24   12892    325c bridge-utils/brctl/brctl
>   14110     440      28   14578    38f2 bridge-utils-1.1/brctl/brctl
>   17888     488      24   18400    47e0 bridge-utils-1.2/brctl/brctl

Looks like better error checking, plus code to support the new sysfs
interface in addition to the ioctl.  You could probably #ifdef to
select between one or the other based on kernel version, if you
want to get the size down again.

> This makefile works with versions 1.1 and 1.2, but if you use it for
> 1.1 the distclean target I created should be modified to NOT delete
> 'configure'.

I've just made the clean target remove it all, we don't have separate
distclean targets for user apps currently.



More information about the uClinux-dev mailing list