Jivin Pello Otxandiano lays it down ...
> Hi,
> 
> I'm trying to compile oRTP for MicroBlaze and it is turning me quite
> difficult. The installation guide of oRTP is quite simple but it does not
> say clearly how to compile with a cross-compiler.

Ok,  depending on the version of dist you are using this may be enough. 

I have added 2 makefiles:

        makefile.1 - the preferred way to build configure based tools.
                     needs to have a decent configure script

        makefile.2 - the fallback (but still prety good method)

Put your oRTP files into the user/ortp directory,  setup the
user/Makefile to call into the ortp directory (using config options
if you want).

        cp makefile.1 user/ortp/makefile

Now makefile will be invoked before the generated "Makefile" and thus is
has control over the build to some extent.  The uClinux-dist will have
already setup the compilers and flags appropriately.  If the package
already has a "makefile" then call it GNUmakefile.

If you are using a dist that does not use ucfront,  then you will need
makefile.3 or a variant of it based on makefile.2.

You can find examples of all this and more in the user directory
already.  Look in:

        user/quagga
        user/pppd
        user/ntp

Actually,  "grep -l configure user/*/makefile" will give you a fairly
complete list.

> The standard installation is the following one:
> 
> -Type ./configure to generate the makefile
> -Make
> -Make install
> -Compile uClinux with oRTP
> 
> The problem is that just typing configure is insufficent to generate a make
> file that works properly. Among other things the makefile has not romfs
> section. In addition when I compile uClinux the binary files generated are
> in ELF format.

If you still need fixes,  make them in the Makefile.in files as
required,  or try to override them from the "makefile",

Cheers,
Davidm

> As I have understand till now there are two options to cross-compile oRTP
> (or another application):
> 
> The first one:
> 
>    - Type ./configure
>    - Create manually romfs section.
>    - Add *-Wl,-elf2flt* to the final link line of my build
>    - Compile uClinux
> 
> The second one:
> 
>    - Extend ./configure command providing correct options like cross
>    compilation tool directory and stuff. I have tried different options
>    providing some parameters:
> 
>    CC,  CFLAGS, TARGET, CPP, CXX, PREFIX
> 
> According to the installation guide of oRTP the only parameter that is
> necessary to specify when we use a cross-compiler is TARGET.
> 
> I have not obtained anything.
> 
> 
> My questions are the following ones:
> 
> 
>    1. It is correct that I can compile oRTP of both mentioned forms?
>    2. With regards to the second option, someone can me specify exactly
>    what parameters I must specify exactly?
> 
> 
> 
> Best regards,
> 
> Pello

> _______________________________________________
> 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

-- 
David McCullough,  [EMAIL PROTECTED],   Ph:+61 734352815
Secure Computing - SnapGear  http://www.uCdot.org http://www.cyberguard.com
#
# uClinux-dist makefile for oRTP
#
#
# add your oRTP configure options here
#
CONFOPTS =
# CONFOPTS += --disable-shared
# CONFOPTS += --disable-static

all: build/build
        $(MAKE) -C build

build/build: makefile
        rm -rf build
        mkdir build
        (cd build; sh ../configure $(CONFIGURE_OPTS) $(CONFOPTS))
        touch build/build

clean:
        rm -rf build

romfs:
        $(ROMFSINST) -e build/some-dir/some-file   /bin/ortp...

CONFOPTS=

all: build
        $(MAKE) -f Makefile

build: makefile
        sh ./configure $(CONFIGURE_OPTS) $(CONFOPTS)
        touch build

clean:
        -$(MAKE) -f Makefile clean
        rm -f all-the-other-created-files
        rm -f build

romfs:
        $(ROMFSINST) ortp-file-thjing /bin/otrp...
CONFOPTIONS=                                                               \

all: build/build
        $(MAKE) -C build

romfs:
        $(ROMFSINST) ortp-file /bin/otrp...

build/build: makefile
        rm -rf build
        mkdir build
        ( \
                cd build; \
                CC="$(CC) $(CFLAGS)" LDFLAGS="$(LDFLAGS)" LIBS="$(LDLIBS)" \
                        ../configure --prefix= --build=i386-redhat-linux        
    \
                        --with-headers=$(ROOTDIR)/$(LINUXDIR)/include       \
                        --host=$(CROSS_COMPILE:-=)                              
        \
                        $(CONFOPTIONS) \
        )
        touch build/build

clean:
        rm -rf build
_______________________________________________
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

Reply via email to