aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-10-08Makefile: Support totally quiet output with -sAndre Przywara
"-s" is a command line option to the make tool, to suppress normal output, something to the effect of prepending every line with '@' in the Makefile. However with our V={0|1} support, we now print the shortened command line output in any case (even with V=1, in addition to the long line!). Normally -s helps to not miss non-fatal warnings, which tend to scroll out of the window easily. Introduce a new Makefile variable ECHO, to control the shortened output. We only set it in the (current default) V=0 case, and replace every occurence of "@echo" with that variable. When the user specifies "-s", we set ECHO to some magic string which changes the output line into a comment, so the output is suppressed. Beside suppressing every output for "-s", we also avoid the redundant short output when compiling with V=1. This changes the output to: ========== $ make -s PLAT=.... bl31 Built build/.../release/bl31.bin ========== $ make PLAT=.... bl31 ... CC lib/libc/strncmp.c CC lib/libc/strnlen.c ... ========== $ make V=1 PLAT=.... bl31 ... gcc -DDEBUG=0 .... -o build/.../release/libc/strncmp.o gcc -DDEBUG=0 .... -o build/.../release/libc/strnlen.o ... ========== Signed-off-by: Andre Przywara <andre.przywara@arm.com>
2018-10-04Merge pull request #1611 from antonio-nino-diaz-arm/an/misra-commonDimitris Papastamos
Remove some MISRA defects in common code
2018-10-04Merge pull request #1610 from sandrine-bailleux-arm/sb/fix-makefileDimitris Papastamos
Remove incorrect tabulation in Makefile
2018-10-04Merge pull request #1583 from danielboulby-arm/db/AArch32_Multi_ConsoleDimitris Papastamos
Enable Multi Console API in AArch32
2018-10-04Remove some MISRA defects in common codeAntonio Nino Diaz
No functional changes. Change-Id: I9638e02acb9b22eb794ebf45aad84348a710287e Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
2018-10-04Merge pull request #1595 from Yann-lms/dts_depSoby Mathew
MAKE_DTB: dependencies on device tree source files
2018-10-04Merge pull request #1609 from MISL-EBU-System-SW/integration-bleSoby Mathew
plat/marvell: Move BLE into the platform tree, minor fix in tools.
2018-10-04Merge pull request #1603 from antonio-nino-diaz-arm/db/reclaim-initSoby Mathew
Reclaim BL31 initialization code memory for runtime data
2018-10-03Merge pull request #1608 from npoushin/integrationSoby Mathew
maintainers: Correct github username for nariman to npoushin
2018-10-03Merge pull request #1584 from danielboulby-arm/db/SwitchesSoby Mathew
Ensure the flow through switch statements is clear
2018-10-03Remove incorrect tabulation in MakefileSandrine Bailleux
When attempting to compile TF-A with "SPD=something ARCH=aarch32", the following error message is printed: Makefile:291: *** recipe commences before first target. Stop. This is because the call to the error function is indented using a tab whereas it's not part of a rule's recipe. Replace the tab by spaces. Change-Id: Ic9b603837a0e43f2f7070cb39137541c332365d2 Signed-off-by: Sandrine Bailleux <sandrine.bailleux@arm.com>
2018-10-03tools: Fix broken object compilation rulesJan Kiszka
As these rules depend on non-existing headers as well (likely copy & pasted from fiptool), they never matched, and the built-in rules were used. That led to random breakages when e.g. CPPFLAGS was suddenly evaluated and contained invalid options. For the stm32image, this reveals that we were relying on the built-in rules by passing -D_GNU_SOURCE via CPPFLAGS, rather than using CFLAGS as used in the local rule. Fix that as well. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
2018-10-03marvell: Move BLE from external repo to the platform folderKonstantin Porotchkin
The BLE is the pre-TF-A boot stage required by Marvell Armada BootROM for bringing up DRAM and allow the boot image copy to it. Since this is not a standard boot level and only uses the TF-A as a build environment, it was introduced out of source tree. However it turns out that such remote location introduces additional complexity to the upstream TF-A build process. In order to simplify the build environment the BLE source folder is relocated from the external repository to A8K platform directory. The build documentation is updated accordingly. Signed-off-by: Konstantin Porotchkin <kostap@marvell.com>
2018-10-03FVP: Reclaim init code for the stackDaniel Boulby
Map the initialization code for BL31 to overlap with the memory required for the secondary cores stack. Once BL31 has been initialized the memory can be remapped to RW data so that it can be used for secondary cores stacks. By moving code from .text to .text.init the size of the BL31 image is decreased by a page. Split arm_common.ld.S into two linker scripts, one for tzc_dram (arm_tzc_dram.ld.S) and one for reclaiming initialization code (arm_reclaim_init.ld.S) so that platforms can chose which memory regions they wish to include. Change-Id: I648e88f3eda1aa71765744cf34343ecda9320b32 Signed-off-by: Daniel Boulby <daniel.boulby@arm.com>
2018-10-03maintainers: Correct github username for nariman to npoushinNariman Poushin
Signed-off-by: Nariman Poushin <nariman.poushin@linaro.org>
2018-10-03Mark GICV3, CCI and CCN boot time code as initDaniel Boulby
Mark the GICv3, CCI and CCN code only used in Bl31 initialization with __init to be reclaimed once no longer needed. Change-Id: I3d77f36758450d9d1d87ecc60bc1c63fe4082667 Signed-off-by: Daniel Boulby <daniel.boulby@arm.com>
2018-10-03Mark xlat tables initialization codeDaniel Boulby
Mark the xlat tables code only used in BL31 initialization as __init to be reclaimed once no longer needed Change-Id: I3106bfd994706a57c578624573bcfa525fbbd3c4 Signed-off-by: Daniel Boulby <daniel.boulby@arm.com>
2018-10-03plat/arm: Mark arm platform initialization functionsDaniel Boulby
Mark the initialization functions found in the BL31 boot sequence as __init so they can be reclaimed when no longer needed. Change-Id: I687a89346419c7710ef5097feaa325d83c527697 Signed-off-by: Daniel Boulby <daniel.boulby@arm.com>
2018-10-03Mark BL31 initialization functionsDaniel Boulby
Mark the initialization functions in BL31, such as context management, EHF, RAS and PSCI as __init so that they can be reclaimed by the platform when no longer needed Change-Id: I7446aeee3dde8950b0f410cb766b7a2312c20130 Signed-off-by: Daniel Boulby <daniel.boulby@arm.com>
2018-10-03Introduce RECLAIM_INIT_CODE build flagDaniel Boulby
This patch introduces a build flag "RECLAIM_INIT_CODE" to mark boot time code which allows platforms to place this memory in an appropriate section to be reclaimed later. This features is primarily targeted for BL31. Appropriate documentation updates are also done. Change-Id: If0ca062851614805d769c332c771083d46599194 Signed-off-by: Daniel Boulby <daniel.boulby@arm.com>
2018-10-03Set the IMAGE_BLx flag for the linker preprocessorDaniel Boulby
Change-Id: Ibc91f119c99413ded59a9db3db918d22f0517bc1 Signed-off-by: Daniel Boulby <daniel.boulby@arm.com>
2018-10-03Remove unused ROMLIB memory region macroDaniel Boulby
Remove ARM_MAP_BL_ROMLIB memory region macro as it is now split into two regions for code and data Change-Id: Ic17b5b584933c196db29fe83051d7e0a8e92911c Signed-off-by: Daniel Boulby <daniel.boulby@arm.com>
2018-10-03xlat: Change check in mmap_add and mmap_add_ctx()Daniel Boulby
Depending on the build flags it is possible that some of the memory regions mapped in page table setup could have a size of 0. In this case we simply want to do nothing but still wish to map the other regions in the array. Therefore we cannot only use size == 0 as the termination logic for the loop. Since an attributes field with value 0 means that the region is device memory, read only, secure and executable. Device memory can't be executable, so this combination should never be used and it is safe to use as a terminator value. Therefore by changing the termination logic to use attributes instead of size we prevent terminating the loop when we don't intend to. Change-Id: I92fc7f689ab08543497be6be4896dace2ed7b66a Signed-off-by: Daniel Boulby <daniel.boulby@arm.com>
2018-10-03Merge pull request #1588 from satheesbalya-arm/sb1_2596_misra_tim_consoleSoby Mathew
Fix misra warnings in delay timer and console drivers
2018-10-03Merge pull request #1591 from jts-arm/cov1Soby Mathew
Fix static analysis defects
2018-10-03Merge pull request #1604 from MISL-EBU-System-SW/integrationSoby Mathew
marvell: Continue migration to new APIs
2018-10-03Merge pull request #1597 from antonio-nino-diaz-arm/an/optimiseSoby Mathew
plat/arm: Remove option ARM_BOARD_OPTIMISE_MEM
2018-10-02marvell: Continue migration to new APIsKonstantin Porotchkin
- Fix build issue - Add initial memory parameters descriptors for BL2 - Migrate to image load V2 Basic build and run test passed on MacchiatoBin board. Need to fix the service CPU (CM3) image load procesure and test OPTEE functionality, which probably will require additional work. Signed-off-by: Konstantin Porotchkin <kostap@marvell.com>
2018-10-02Merge pull request #1602 from soby-mathew/sm/v2.0_docs_fixupv2.0Soby Mathew
docs: Fixup filename and links to compatibility policy
2018-10-02docs: Fixup filename and links to compatibility policySoby Mathew
Change-Id: I9d14faa7294578443233b84d5459fa7b62a30c07 Signed-off-by: Soby Mathew <soby.mathew@arm.com>
2018-10-02plat/arm: Remove option ARM_BOARD_OPTIMISE_MEMAntonio Nino Diaz
This option makes it hard to optimize the memory definitions of all Arm platforms because any change in the common defines must work in all of them. The best thing to do is to remove it and move the definition to each platform's header. FVP, SGI and SGM were using the definitions in board_arm_def.h. The definitions have been copied to each platform's platform_def.h. Juno was already using the ones in platform_def.h, so there have been no changes. Change-Id: I9aecd11bbc72a3d0d7aad1ef9934d8df21dcfaf2 Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
2018-10-02Merge pull request #1601 from joannafarley-arm/jf/release-2.0-changelogSoby Mathew
Release docs updates for v2.0 release
2018-10-02Merge pull request #1599 from soby-mathew/sm/update_v2.0Soby Mathew
Update the version to 2.0
2018-10-02Release docs updates for v2.0 releaseJoanna Farley
Change-Id: Iaa5c586b65f0abdd4ddbdee4c73d07811a0aff49 Signed-off-by: Joanna Farley <joanna.farley@arm.com>
2018-10-02Merge pull request #1600 from soby-mathew/sm/compat_policy_docSoby Mathew
docs: Add platform compatibility policy document
2018-10-02docs: Add platform compatibility policy documentSoby Mathew
Information regarding platform compatibility policy is added to the documentation. Change-Id: If9f2a11160f81354ee2c678f0fca9d67fc7366e6 Signed-off-by: Soby Mathew <soby.mathew@arm.com>
2018-10-02Merge pull request #1598 from soby-mathew/sm/docs_update_deprecate_1Soby Mathew
docs: update for removal of deprecated interfaces.
2018-10-02Merge pull request #1587 from antonio-nino-diaz-arm/an/deprecatedv2.0-rc0Soby Mathew
Remove deprecated interfaces for all platforms
2018-10-01docs: update for removal of deprecated interfaces.Soby Mathew
Change-Id: I69e2720f534583a0f8d0e44f2e7b6f393f6fd093 Signed-off-by: Soby Mathew <soby.mathew@arm.com>
2018-10-01Update the version to 2.0Soby Mathew
Change-Id: Icbc556d47a58d0870577b1bf1cd27cc5827fd56d Signed-off-by: Soby Mathew <soby.mathew@arm.com>
2018-10-01Merge pull request #1589 from hzhuang1/topic/fix_clangDimitris Papastamos
Topic/fix clang
2018-10-01Merge pull request #1596 from Yann-lms/mmc_definesDimitris Papastamos
mmc: Update framework to use standard response type
2018-10-01Merge pull request #1590 from sandrine-bailleux-arm/sb/doc-fixesDimitris Papastamos
Update link to Linux coding style
2018-09-28mmc: Update framework to use standard response typeYann Gautier
Respect official response type and update response to follow official specification. All the MMC_RESPONSE_R(_x) are replaced with each corresponding define. Partly revert 2a82a9c95f6c06079f58d69315544a6b49cf64a4 for dw_mmc.c: Responses R1, R1B and R5 have CRC. Signed-off-by: Lionel Debieve <lionel.debieve@st.com> Signed-off-by: Yann Gautier <yann.gautier@st.com>
2018-09-28uniphier: Migrate to new interfacesAntonio Nino Diaz
- Remove references to removed build options. - Migrate to bl31_early_platform_setup2(). Change-Id: I9242c4d02a36e385bf0bf8ee56287106030153d1 Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
2018-09-28rockchip: Migrate to new interfacesAntonio Nino Diaz
- Migrate to new GIC interfaces. - Migrate to bl31_early_platform_setup2(). - Use bl31_warm_entrypoint() instead of psci_entrypoint(). - Use PLAT_VIRT_ADDR_SPACE_SIZE and PLAT_PHY_ADDR_SPACE_SIZE. - Update Makefile paths. - Remove references to removed build options. - Use private definition of bl31_params_t. Change-Id: I860341594b5c868b2fcaa59d23957ee718472ef1 Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
2018-09-28tegra: Migrate to new interfacesAntonio Nino Diaz
- Migrate to bl31_early_platform_setup2(). - Remove references to removed build options. - Replace zeromem16() by zeromem(). - Use private definition of bl31_params_t. This is an incomplete migration, the platform doesn't currently compile. Change-Id: I67fbf2206678be80c3a16692024221a131cec42f Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
2018-09-28mediatek: Migrate to new interfacesAntonio Nino Diaz
- mt6795: Migrate to new GIC interfaces. - Remove support for PSCI platform compatibility layer. - Migrate to bl31_early_platform_setup2(). - Migrate from cm_init_context() to cm_init_my_context(). - Use PLAT_VIRT_ADDR_SPACE_SIZE and PLAT_PHY_ADDR_SPACE_SIZE. - Update Makefile paths. - Use private definition of bl31_params_t. This is an incomplete migration, mt6795 doesn't currently compile. Change-Id: Icf9307637066cd6f2166524715e4f117f5ce2350 Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
2018-09-28marvell: Migrate to new interfacesAntonio Nino Diaz
- Migrate to bl2_early_platform_setup2(). - Remove references to removed build options. - Use private definition of bl31_params_t. This is an incomplete migration, the platform doesn't currently compile. Change-Id: I1ae477b1f2489f49b651528050fdf06e4a55e425 Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
2018-09-28ls1043: Migrate to new interfacesAntonio Nino Diaz
- Migrate to new GIC interfaces. - Remove references to removed build options. Change-Id: I6f90a33d5438a9d7b71be3f93e8d9da278c8c6e6 Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>