ltib
[Top][All Lists]
Advanced

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

Re: [Ltib] LTIB config not saving TOOLCHAIN_CFLAGS


From: Peter Barada
Subject: Re: [Ltib] LTIB config not saving TOOLCHAIN_CFLAGS
Date: Thu, 31 Mar 2016 15:58:41 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0

Glad it worked for you.
You may want to try changing TOOLCHAIN_CFLAGS from:

string "Enter any CFLAGS for gcc/g++"

to:

string
prompt "Enter any CFLAGS for gcc/g++" if !CUSTOM_TOOLCHAIN

Again I haven't tried it out (so your mileage will _definitely_ vary), but this should supply a prompt for TOOLCHAIN_CFLAGS if _not_ using a custom toolchain, and suppress a prompt if using a custom toolchain (since a separate prompt exists for CUSTOM_TOOLCHAIN_CFLAGS).

Give it a whirl and try configuring for both a provided and custom toolchain to know for sure.

Thanks in advance!


On 03/31/2016 10:39 AM, Josh Pagnotta wrote:
Thank you. That worked. The only modification I had to make was to make the string for config TOOLCHAIN_CFLAGS empty otherwise the LTIB configure menu showed two items for CFLAGS for my custom toolchain.

On 3/28/16, 11:12 AM, Peter Barada wrote:
Hmm, I don't have a universe to run with right now (out of town with 
only my laptop), but I see in config/userspace/toolchain.lkc that 
there's a CUSTOM_TOOLCHAIN_PREFIX as well as TOOLCHAIN_PREFIX which 
defaults to CUSTOM_TOOLCHAIN_PREFIX if CUSTOM_TOOLCHAIN=y.  However 
there's not corresponding CUSTOM_TOOLCHAIN_CFLAGS.

Attached is a patch to the current CVS version (Version 1.7) of 
config/userspace/toolchain.lkc that adds it.  I haven't built with this 
change (so your mileage _will_ vary), but see if the patch fixes the 
issue.  You'll want to apply the patch, run ltib -c to setup your custom 
toolchain flags, then save/exit, retry ltib -c and inspect to see if 
TOOLCHAIN_CFLAGS is no longer empty.

Hope this helps!


On 03/25/2016 04:14 PM, Josh Pagnotta wrote:
Hi,

We have modified our LTIB config to use a custom toolchain and now 
whenever we open the LTIB configuration menu (ltib -c), the 
TOOLCHAIN_CFLAGS are empty and we have to enter them in again. When we 
save the config they are there, but when we load it again they are 
gone, making us think the issue is on the loading of the config.

Thanks

_______________________________________________
LTIB home page: http://ltib.org

Ltib mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/ltib


_______________________________________________
LTIB home page: http://ltib.org

Ltib mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/ltib


--
Peter Barada
address@hidden

reply via email to

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