ltib
[Top][All Lists]
Advanced

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

Re: [Ltib] ltib --configure kills my config files!


From: Ned Konz
Subject: Re: [Ltib] ltib --configure kills my config files!
Date: Thu, 18 Dec 2008 07:40:56 -0800


On Dec 17, 2008, at 1:44 AM, Stuart Hughes wrote:

> Hi Ned,
>
> I took a quick look and may need some more information.
>
> I just tried on an imx31, which is very similar and I can't reproduce
> this.  If you've made a copy of a platform, or are using a variation,
> maybe you missed an update or have a conflict in your cvs up.
>
>
That's entirely possible.


> Anyhow, if you run:
> $ ./ltib -m config
>
> What do you see if you hit enter over the toolchain selection, I see:
> --- Toolchain selection.
>    Toolchain (ARMv5te gcc-4.1.2,Multi-lib,gnueabi/glibc-2.5-nptl-3)
> (-O2 -fsigned-char -mfloat-abi=softfp -mfpu=vfp) Enter any CFLAGS for
>
> Select the line Toolchain (ARM... and hit enter, then you should see:
>
> (X) ARMv5te gcc-4.1.2,Multi-lib,gnueabi/glibc-2.5-nptl-3
> ( ) Custom
>
I don't see any selection. I see this:

        Toolchain component options  --->
        --- Toolchain selection.
        ()  Enter any CFLAGS for gcc/g++
        --- Choose your Kernel
            kernel (Linux 2.6.24-mx)  --->
        [ ] Always rebuild the kernel                                 

> The way this works is that the toolchain architecture types are setup
> in
> config/userspace/defaults.lkc, for ARM I see:
>
> config ARMEABI_ARCH
>    bool
>    default y if PLATFORM = imx27ads || PLATFORM = imx31ads || PLATFORM
> = imx32ads
>
> So imx27ads is defined to be ARMEABI_ARCH
>
> If you then look in config/userspace/toolchain.lkc you'll see an enty
> for ARMEABI_ARCH, which is is a choice list that allows only:
> TOOLCHAIN_ARMEABI_GLIBC1 or TOOLCHAIN_ARMEABI_CUSTOM
>
> Can you check that you have these in your copy of LTIB and report
> back.

Yes, I have these entries.

> The missing TOOLCHAIN_ARM_GLIBC1 from toolchain.lkc is okay because
> what
> should happen is when you run ./ltib --configure, it will apply the
> constraints from the .lkc files and it should setup the correct new
> arch
> as ARMEABI_ARCH and pre-select the correct toolchain for you
> (TOOLCHAIN_ARMEABI_GLIBC1)
>
> The most likely cause that I can deduce for this is that your platform
> (defined in your main.lkc and visible as CONFIG_PLATFORM="xxx" in your
> config/platform/<target>/.config) is not present in
> config/userspace/defaults.lkc in the list of platforms for
> ARMEABI_ARCH

Thanks, that's exactly it. I had added the platform, but then clobbered
it when I was moving around files and doing a cvs update.

Replacing with my edited version makes everything work again (well,
except for mtd-utils, which is a subject for another message).

Ned

> Regards, Stuart
>
> On Wed, 2008-12-17 at 09:07 +0000, Stuart Hughes wrote:
> > Hi Ned,
> >
> > Thanks for the report, I'll need to look into it, looks like a bug.
> >
> > Regards, Stuart
> >
> > On Tue, 2008-12-16 at 20:18 -0800, Ned Konz wrote:
> > > I have the latest LTIB from CVS.
> > >
> > > It had been working fine before I updated the CVS, but now every
> > > time I
> > > try to configure using
> > >
> > > ./ltib --configure
> > >
> > > it dies with an error, and edits my config files to remove all the
> > > CONFIG_TOOLCHAIN_* entries.
> > >
> > > My platform config is more or less a copy of the imx27ads, with a
> > > different package list and kernel configuration.
> > >
> > > I think the problem has to do with CONFIG_TOOLCHAIN_ARM_GLIBC1,
> > > which
> > > isn't defined in the toolchain.lkc.
> > >
> > > When I change it to CONFIG_TOOLCHAIN_ARMEABI_GLIBC1 I can build
> > > the
> > > system with
> > >
> > > ./ltib
> > >
> > > But when I do
> > >
> > > ./ltib --configure
> > >
> > > and exit the configuration, my config files get edited as follows
> > > (this
> > > is defconfig.dev):
> > >
> > > -CONFIG_TOOLCHAIN="tc-fsl-x86lnx-armeabi-nptl-4.1.2-3.i386.rpm"
> > > -CONFIG_TOOLCHAIN_PATH="/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi"
> > > -CONFIG_TOOLCHAIN_PREFIX="arm-none-linux-gnueabi-"
> > > -CONFIG_TOOLCHAIN_CFLAGS="-O2 -fsigned-char -msoft-float"
> > > -CONFIG_TOOLCHAIN_ARMEABI_GLIBC1=y
> > > -# CONFIG_TOOLCHAIN_ARM_GLIBC2 is not set
> > > -# CONFIG_TOOLCHAIN_ARM_CUSTOM is not set
> > > +CONFIG_TOOLCHAIN_CFLAGS=""
> > > -# CONFIG_PKG_KERNEL_KBOUT is not set
> > > -CONFIG_ARMEABI_ARCH=y
> > >
> > >
> > > And this makes my next attempt to build fail:
> > >
> > > You must set configuration values in
> > > config/platform/mx27litekit/.config
> > > for:
> > >  TOOLCHAIN_PREFIX TOOLCHAIN_PATH
> > > traceback:
> > > main::check_platform_config:2161
> > >  main::pre_build_checks:1404
> > >   main:549
> > >
> > > Any reason this is causing this problem?
> > >
> > >
> > >
> > > _______________________________________________
> > > LTIB home page: http://bitshrine.org
> > >
> > > Ltib mailing list
> > > address@hidden
> > > http://lists.nongnu.org/mailman/listinfo/ltib
> >
> >
> >
> > _______________________________________________
> > LTIB home page: http://bitshrine.org
> >
> > Ltib mailing list
> > address@hidden
> > http://lists.nongnu.org/mailman/listinfo/ltib
>
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]