aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/blackbox/testdata-baremetal/BareMetalApplication.qbs
Commit message (Collapse)AuthorAgeFilesLines
* baremetal: Derive test application and library from base productDenis Shienkov2021-02-051-125/+2
| | | | | | | | | | It makes sense to store platform-specific flags in one place, for example, in BareMetalProduct. And then to inherit the applications and the libraries from this common product. This solution minimizes the copy/paste errors and make a tests code easier to maintain. Change-Id: Iaf11be9d6f983e8ce542787d42e8b7ef050b1903 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* baremetal: Pass tests for M32C architecture for IAR toolchainDenis Shienkov2021-02-051-0/+13
| | | | | Change-Id: I2112e6bdca36b07502b571841528bb2734f41da0 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* baremetal: Pass tests for HCS08 architecture for IAR toolchainDenis Shienkov2021-02-041-0/+9
| | | | | Change-Id: I8a43dce0ef2731c4d181fe529f5bd4cf40ea12cf Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* baremetal: Disable position-independent code generation in a testsDenis Shienkov2020-08-011-0/+1
| | | | | | | ... because it is not supported on most bare-metal platforms. Change-Id: I40900f78255f0c6c2553d5b0f575de085b7a0b1f Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
* baremetal: Pass all current tests for GCC M32RDenis Shienkov2020-07-271-0/+5
| | | | | | | We need to disable linking with the standard libraries. Change-Id: I4399a55c0f28d808f421afb17689d56ba3a36f17 Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
* baremetal: Pass all current tests for IAR SHDenis Shienkov2020-07-271-0/+10
| | | | | | | | | | We need to exclude the '--deprecated_feature_warnings' flag for the IAR SH compiler, because this flag is not supported. Also we need to set the architecture-specific linker options. Change-Id: I038fe6972aeed9deb8cc3e76308cb1e393a15b8b Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
* baremetal: Pass 'one-object-asm-application' test for IAR 78KDenis Shienkov2020-07-261-0/+17
| | | | | | | | ... also the changes in the BareMetal{Application|StaticLibrary}.qbs files allows to pass all other IAR 78K tests. Change-Id: Ic11a1237a09b44c6d88a0814c7b346aad252ced4 Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
* baremetal: Pass 'one-object-asm-application' test for IAR V850Denis Shienkov2020-07-261-0/+9
| | | | | | | | ... also the changes in the BareMetal{Application|StaticLibrary}.qbs files allows to pass all other IAR V850 tests. Change-Id: I44be6f19eea84a3bc0c3ee0f6763c323cbd4a138 Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
* baremetal: Pass 'one-object-asm-application' test for IAR RH850Denis Shienkov2020-07-241-0/+9
| | | | | | | | ... also the changes in the BareMetal{Application|StaticLibrary}.qbs files allows to pass all other IAR RH850 tests. Change-Id: I5b226e6541cb93d68f30134e7f9df5f4f8c5915b Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
* baremetal: Pass 'one-object-asm-application' test for IAR RL78Denis Shienkov2020-07-241-0/+14
| | | | | | | | ... also the changes in the BareMetal{Application|StaticLibrary}.qbs files allows to pass all other IAR RL78 tests. Change-Id: Ifec395f174a156d3b29cc19c82b3a29668ea76ee Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
* baremetal: Pass 'one-object-asm-application' test for IAR STM8Denis Shienkov2020-07-231-0/+8
| | | | | | | | ... also the changes in the BareMetal{Application|StaticLibrary}.qbs files allows to pass all other IAR STM8 tests. Change-Id: Ic4e36e0e1a19863d2c9172a17e4bcfc5da7e3a34 Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
* baremetal: Don't pass cpp.driverFlags to KEIL assemblerDenis Shienkov2020-07-161-1/+2
| | | | | | | | | ... because the cpp.driverFlags intended only for the compiler and the linker; the assembler required the cpp.assemblerFlags instead. Change-Id: Ie1cca820d54095fc1361f5b9b049adc57674b3fd Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* baremetal: Pass 'one-object-asm-application' test for KEIL ARMDenis Shienkov2020-07-101-1/+2
| | | | | Change-Id: Id4e1c081fa8d6841fbad58532daee7d62ff80942 Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
* baremetal: Don't use startsWith("xtensa") in testsDenis Shienkov2020-07-031-1/+1
| | | | | | | ... because it is better to use the direct comparison instead. Change-Id: Ie1b84b722beae3a263840ebbf9984f7061e71f07 Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
* baremetal: Allow to pass tests with GCC compiler for MSP430 architectureDenis Shienkov2020-07-021-0/+5
| | | | | | | | We need to specify an existing MCU type to make it possible to use an appropriate linker script for linking. Change-Id: I7fac9a4856448cafbb1365f67badf685f737e268 Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
* baremetal: Allow to pass tests with GCC compiler for XTENSA architectureDenis Shienkov2020-07-021-0/+5
| | | | | | | We need to exclude the system libraries from the linking. Change-Id: I9f1935a7aac8955302e0771193963feeba2368e3 Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
* baremetal: Allow to pass tests with GCC compiler for ARM architectureDenis Shienkov2020-07-021-0/+5
| | | | | | | We need to exclude the system libraries from the linking. Change-Id: I9a20cf8b979666831b6f7cc32c4e3e352fa1a861 Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
* baremetal: Fix {c|cpp}LanguageVersion handling on KEIL ARM Clang toolchainDenis Shienkov2020-06-281-1/+9
| | | | | | | | We need to skip the 'undefined' language version returned from the Cpp.languageVersion() function. Change-Id: I3345c2fbdde8b50c8fb9035ec10ca21e0024e6d3 Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
* baremetal: Derive all applications and libraries from common productsDenis Shienkov2020-06-251-0/+6
The problem is that for different architectures and different toolchains we need in a minimal set of a platform-specific flags and etc. Previously (e.g. for MCS51 architecture and IAR/KEIL/SDCC toolchains) we are not faced with this problem, because there by default we don't need to specify a platform-specific flags for a minimal test. But, for other platforms and compilers we need in this basic flags (e.g. for ARM architecture and KEIL toolchain, we need to set the CPU target flag, e.g. '--cpu cortex-m0'). So, it makes sense to derive all tested baremetal applications and libraries from the basic BareMetal{Application|StaticLibrary} products. In this case we can configure the desired flags once, using the QBS Properties item. Tested with the following architectures and toolchains: * MCS51 (KEIL, IAR, SDCC) * STM8 (SDCC) * ARM (KEIL) Change-Id: I484ed3abf78050fe2dd27e96e9442a3a03cecfa5 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>