[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] net-snmp configuration options
Hi Ronaldo,
Ronaldo Valiati wrote:
> ) and pointed his tutorial, but editing the makefiles isn't the best way
> to add/remove the compilation of specific modules in NET-SNMP, to that,
> we should use the --with-mib-modules and --with-out-mib-modules, but to
> use the configure script, I need to know other parameters, like
> endianess (big, in this case), host, etc, the options used to generate
> the Makefiles in the NET_SNMP dir the first time. I know this post might
> seem a bit off-topic, but these configuration parameters are specific to
> microblaze.
As of the most recent version on the uClinux-dist, and thanks to the
magical little utility called ucfront, it is now much much simpler to
integrate GNU-configure apps into uClinux.
This is infinitely preferable to the bad old days of running configure
then hacking the auto-generated Makefiles. I've build big
GNU-configured apps and libs with this automated approach, and it works
very nicely.
Sometimes you need to add a couple of lines in the config.srv files to
tell configure about microblaze (adding "| mb- \" lines) - it's easy to
follow the pattern from other architectures.
Take a look at user/gdb/makefile for an example.
Generally you
1. create uClinux-dist/user/newpackage
2. extract the package sources into user/newpackage.
3. Create user/newpackage/Makefile, that looks like this:
all: build/build
$(MAKE) -C build
build/build: makefile
rm -rf build
mkdir build
(cd build; ../configure --target=$(CROSS_COMPILE:-=))
touch build/build
clean:
rm -rf build
romfs:
$(ROMFSINST) -e CONFIG_USER_{APPNAME} build/{appname} /bin/{appname}
(changing APPNAME,appname as required)
4. Add a line into user/Makefile to descend into your new package
directory if CONFIG_USER_{APPNAME} is set
5. Add a line in uClinux-dist/Config.in for your new app in the userland
menuconfig (CONFIG_USER_APPNAME)
Hope this helps,
John
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@itee.uq.edu.au
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/