.

Committer:
mbed_official
Date:
Fri Dec 15 11:15:18 2017 +0000
Revision:
1:2bfc377bcc2a
Parent:
0:8e251d9511b8
Child:
3:0afcfcd3941b
Merge pull request #10 from ARMmbed/example-updates

Update example and docs based on feedback
.
Commit copied from https://github.com/ARMmbed/mbed-os-example-filesystem

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 0:8e251d9511b8 1 cache:
mbed_official 0:8e251d9511b8 2 pip: true
mbed_official 0:8e251d9511b8 3 directories:
mbed_official 0:8e251d9511b8 4 - $HOME/.cache/apt
mbed_official 0:8e251d9511b8 5
mbed_official 0:8e251d9511b8 6 before_install:
mbed_official 0:8e251d9511b8 7 # Make sure pipefail
mbed_official 0:8e251d9511b8 8 - set -o pipefail
mbed_official 0:8e251d9511b8 9 # Setup apt to cache
mbed_official 0:8e251d9511b8 10 - mkdir -p $HOME/.cache/apt/partial
mbed_official 0:8e251d9511b8 11 - sudo rm -rf /var/cache/apt/archives
mbed_official 0:8e251d9511b8 12 - sudo ln -s $HOME/.cache/apt /var/cache/apt/archives
mbed_official 0:8e251d9511b8 13 # Setup ppa to make sure arm-none-eabi-gcc is correct version
mbed_official 0:8e251d9511b8 14 - sudo add-apt-repository -y ppa:team-gcc-arm-embedded/ppa
mbed_official 0:8e251d9511b8 15 - sudo apt-get update -qq
mbed_official 0:8e251d9511b8 16
mbed_official 0:8e251d9511b8 17 install:
mbed_official 0:8e251d9511b8 18 # Install dependencies
mbed_official 0:8e251d9511b8 19 - sudo apt-get install gcc-arm-embedded
mbed_official 0:8e251d9511b8 20 - pip install --user mbed-cli
mbed_official 0:8e251d9511b8 21 # Deploy mbed and pip dependencies
mbed_official 0:8e251d9511b8 22 - mbed deploy
mbed_official 0:8e251d9511b8 23 - pip install --user -r mbed-os/requirements.txt
mbed_official 0:8e251d9511b8 24 # Print versions we use
mbed_official 0:8e251d9511b8 25 - arm-none-eabi-gcc --version
mbed_official 0:8e251d9511b8 26 - gcc --version
mbed_official 0:8e251d9511b8 27 - python --version
mbed_official 0:8e251d9511b8 28
mbed_official 0:8e251d9511b8 29 script:
mbed_official 0:8e251d9511b8 30 # Check that example compiles with littlefs + spif
mbed_official 0:8e251d9511b8 31 - mbed compile -t GCC_ARM -m K82F -j0
mbed_official 1:2bfc377bcc2a 32 - mbed compile -t GCC_ARM -m NRF52840_DK -j0
mbed_official 1:2bfc377bcc2a 33 - mbed compile -t GCC_ARM -m K64F -j0
mbed_official 1:2bfc377bcc2a 34 - mbed compile -t GCC_ARM -m UBLOX_EVK_ODIN_W2 -j0
mbed_official 1:2bfc377bcc2a 35 - mbed compile -t GCC_ARM -m NUCLEO_F429ZI -j0
mbed_official 1:2bfc377bcc2a 36
mbed_official 1:2bfc377bcc2a 37 # Check that example compiles with littlefs + dataflash
mbed_official 1:2bfc377bcc2a 38 - sed -i 's/SPIFBlockDevice bd/DataFlashBlockDevice bd/g' main.cpp
mbed_official 1:2bfc377bcc2a 39 - sed -i 's/MBED_CONF_SPIF_DRIVER/MBED_CONF_DATAFLASH/g' main.cpp
mbed_official 1:2bfc377bcc2a 40 - mbed compile -t GCC_ARM -m K82F -j0
mbed_official 1:2bfc377bcc2a 41 - mbed compile -t GCC_ARM -m NRF52840_DK -j0
mbed_official 1:2bfc377bcc2a 42 - mbed compile -t GCC_ARM -m K64F -j0
mbed_official 1:2bfc377bcc2a 43 - mbed compile -t GCC_ARM -m UBLOX_EVK_ODIN_W2 -j0
mbed_official 1:2bfc377bcc2a 44 - mbed compile -t GCC_ARM -m NUCLEO_F429ZI -j0
mbed_official 0:8e251d9511b8 45
mbed_official 0:8e251d9511b8 46 # Check that example compiles with fatfs + sd
mbed_official 0:8e251d9511b8 47 - sed -i 's/LittleFileSystem fs/FATFileSystem fs/g' main.cpp
mbed_official 1:2bfc377bcc2a 48 - sed -i 's/DataFlashBlockDevice bd/SDBlockDevice bd/g' main.cpp
mbed_official 1:2bfc377bcc2a 49 - sed -i 's/MBED_CONF_DATAFLASH/MBED_CONF_SD/g' main.cpp
mbed_official 1:2bfc377bcc2a 50 - mbed compile -t GCC_ARM -m K82F -j0
mbed_official 1:2bfc377bcc2a 51 - mbed compile -t GCC_ARM -m NRF52840_DK -j0
mbed_official 0:8e251d9511b8 52 - mbed compile -t GCC_ARM -m K64F -j0
mbed_official 1:2bfc377bcc2a 53 - mbed compile -t GCC_ARM -m UBLOX_EVK_ODIN_W2 -j0
mbed_official 1:2bfc377bcc2a 54 - mbed compile -t GCC_ARM -m NUCLEO_F429ZI -j0
mbed_official 1:2bfc377bcc2a 55
mbed_official 1:2bfc377bcc2a 56 # Check that example compiles with fatfs + heap
mbed_official 1:2bfc377bcc2a 57 - sed -i 's/SDBlockDevice bd(/HeapBlockDevice bd(1024*512, 512);/g' main.cpp
mbed_official 1:2bfc377bcc2a 58 - sed -i '/MBED_CONF_SD/d' main.cpp
mbed_official 1:2bfc377bcc2a 59 - mbed compile -t GCC_ARM -m K82F -j0
mbed_official 1:2bfc377bcc2a 60 - mbed compile -t GCC_ARM -m NRF52840_DK -j0
mbed_official 1:2bfc377bcc2a 61 - mbed compile -t GCC_ARM -m K64F -j0
mbed_official 1:2bfc377bcc2a 62 - mbed compile -t GCC_ARM -m UBLOX_EVK_ODIN_W2 -j0
mbed_official 1:2bfc377bcc2a 63 - mbed compile -t GCC_ARM -m NUCLEO_F429ZI -j0
mbed_official 1:2bfc377bcc2a 64