[Development] sdktool parameters

Юрий Лунёв koolkhel at mail.ru
Wed Dec 18 12:07:10 CET 2019


Hello,

Thank you so much! It worked!

$SDKTOOL rmTC --id "ProjectExplorer.ToolChain.Gcc:myir.gcc"
$SDKTOOL addTC --id "ProjectExplorer.ToolChain.Gcc:myir.gcc" \
        --language C \
        --name "Myir GCC" \
        --path ${X86_SYSROOT}/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc \
        --abi arm-linux-generic-elf-32bit \
        --supportedAbis arm-linux-generic-elf-32bit \
        ProjectExplorer.GccToolChain.PlatformCodeGenFlags QVariantList:-mthumb,-mfpu=neon-vfpv4,-mfloat-abi=hard,-mcpu=cortex-a7

I can post complete file, if that’s an interest to anyone. Basically, I wrote a script to automatically add a Yocto toolchain to Qt Creator.

> 18 дек. 2019 г., в 10:18, Eike Ziller <Eike.Ziller at qt.io> написал(а):
> 
> As far as I read the code, it should be
> 
> "QVariantList:-mthumb,-mfpu=neon-vfpv4,etc"
> 
> i.e. type is QVariantList and the value is a comma-separated list of strings. Individual elements cannot contain ‘,’ themselves.
> 
> Br, Eike
> 
>> On Dec 16, 2019, at 15:35, Юрий Лунёв via Development <development at qt-project.org> wrote:
>> 
>> Hello,
>> 
>> I’m trying to figure out the syntax of sdktool so that I could set up my custom Yocto-built SDK in automatic and manageable way.
>> 
>> What I’m stuck with now is the command to add a toolchain:
>> $SDKTOOL addTC --id «ProjectExplorer.ToolChain.Gcc:me.gcc" \
>>       --language C \
>>       --name "Myir GCC" \
>>       --path ${X86_SYSROOT}/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc \
>>       --abi arm-linux-generic-elf-32bit \
>>       --supportedAbis arm-linux-generic-elf-32bit \
>>       ProjectExplorer.GccToolChain.PlatformCodeGenFlags QString:"-mthumb -mfpu=neon-vfpv4 -mfloat-abi=hard -mcpu=cortex-a7"
>> 
>> 
>> What happens is that PlatformCodeGenFlags appear as a single variable quoted by ‘ from both sides. And the compiler fails this way.
>> 
>> I found out that there’s a way to specify QStringList instead, but I can’t figure out the syntax. It’s something related to QVariant,
>> QVariantList etc, and there isn’t documentation for it, or I’m too blind to find that.
>> 
>> How do I say something like the following)
>> $SDKTOOL addTC --id «ProjectExplorer.ToolChain.Gcc:me.gcc" \
>>       --language C \
>>       --name "Myir GCC" \
>>       --path ${X86_SYSROOT}/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc \
>>       --abi arm-linux-generic-elf-32bit \
>>       --supportedAbis arm-linux-generic-elf-32bit \
>>       ProjectExplorer.GccToolChain.PlatformCodeGenFlags QStringList: '-mthumb’, '-mfpu=neon-vfpv4', 'mfloat-abi=hard’, '-mcpu=cortex-a7’
>> 
>> Best regards, Yury Lunyov.
>> _______________________________________________
>> Development mailing list
>> Development at qt-project.org
>> https://lists.qt-project.org/listinfo/development
> 
> -- 
> Eike Ziller
> Principal Software Engineer
> 
> The Qt Company GmbH
> Erich-Thilo-Straße 10
> D-12489 Berlin
> eike.ziller at qt.io
> http://qt.io
> Geschäftsführer: Mika Pälsi,
> Juha Varelius, Mika Harjuaho
> Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht Charlottenburg, HRB 144331 B
> 

С уважением, Юрий Лунёв

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20191218/7a748a29/attachment.html>


More information about the Development mailing list