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
> [email protected]
> https://lists.nongnu.org/mailman/listinfo/ltib

-- 
--
Peter Barada
[email protected]

*** toolchain.lkc.~1.7.~	2013-06-22 10:50:14.000000000 -0400
--- toolchain.lkc	2016-03-28 11:56:30.681342738 -0400
***************
*** 800,805 ****
--- 800,812 ----
      default "arm-linux-gnueabihf-" if TOOLCHAIN_RPI_RASPIAN
      default CUSTOM_TOOLCHAIN_PREFIX if CUSTOM_TOOLCHAIN
  
+ config CUSTOM_TOOLCHAIN_CFLAGS
+     depends CUSTOM_TOOLCHAIN
+     string "Enter the toolchain CFLAGS."
+     help
+         Enter the toolchain executable prefix, for example:
+         powerpc-linux-gnu-
+ 
      config TOOLCHAIN_CFLAGS
      string "Enter any CFLAGS for gcc/g++"
      default "-mcpu=8548 -mspe=yes -mabi=spe -mhard-float -mfloat-gprs=double" if TOOLCHAIN_E500V2_GLIBC1 || TOOLCHAIN_E500V2_GLIBC2 || TOOLCHAIN_E500V2_GLIBC3 || TOOLCHAIN_E500V2_UCLIBC1
***************
*** 828,833 ****
--- 835,841 ----
      default "-msoft-float" if TOOLCHAIN_ARMOABI_SOFTFP_UCLIBC1
      default "-O2 -fsigned-char" if TOOLCHAIN_RPI_HARD_FLOAT || TOOLCHAIN_RPI_RASPIAN
      default "-O2 -fsigned-char -msoft-float" if TOOLCHAIN_RPI_SOFT_FLOAT
+     default CUSTOM_TOOLCHAIN_CFLAGS if CUSTOM_TOOLCHAIN
  
      help
          Enter any flags to be passed to gcc/g++ here.
_______________________________________________
LTIB home page: http://ltib.org

Ltib mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/ltib

Reply via email to