mbed-os/tools/importer
Russ Butler a2a0ea70e2 Update cmsis_importer in prep for CMSIS 5.4.0
Reference the correct commits to pull in and remove commits related to
uVisor since these are no longer needed. Also add the missing file
cmsis_os1.c to cmsis_importer.json.

Below is detailed information on each commit added to cmsis_importer.json

CMSIS/RTX: Patch RTX4 to preserve osThreadDef compatibility
4360b7bbf8

CMSIS/RTX: Patch RTX so irq_cm4f.s files work with no FPU targets
cc2e0517e1

CMSIS/RTX: Allow overwriting mutex ops for ARMC
b88254809e

CMSIS/RTX: Pre-processor defines used for assembly
287121ffdc

CMSIS/RTX: Fix using FALSE/TRUE with preprocesor
1752803626

CMSIS/RTX: Reintroduce arm_math.h
6a6e3ac0eb

fixup
2018-08-25 20:40:35 -05:00
..
README.md Remove uVisor from mbed-os 2018-08-22 16:36:59 +03:00
cmsis_importer.json Update cmsis_importer in prep for CMSIS 5.4.0 2018-08-25 20:40:35 -05:00
importer.py Updated code as per Python style guide 2017-11-15 11:30:50 -06:00

README.md

Importing repositories into mbed-os

importer.py script can be used to import code base from different repositories into mbed-os.

Pre-requisties

  1. Get the required repository clone and update it to commit required. Note: Repository should be placed outside the mbed-os.
  2. Create json file as per template

JSON file template

You can list all the files and folders which are required to be copied in config file in file and folder arrays respectively. Script will remove the files/folders specified in src section from mbed-os repository before copy operation is performed. New commit is created on branch feature_+repo_name+last_sha with commit message "[REPO_NAME]: Updated to last_sha"

Note: Only files present in folder will be copied, directories inside the folder will not be copied.

commit_sha is list of commits present in mbed-os repo. These commits will be applied after copying files and folders listed above.Each commit in the commit_sha list is cherry-picked and applied with the -x option, which records the SHA of the source commit in the commit message. Note: You must resolve any conflicts that arise during this cherry-pick process. Make sure that the "(cherry picked from commit ...)" statement is present in the commit message. Re-execute the python script to apply rest of the SHA commits.

{ "files" : [ { "src_file" : "CMSIS/Core/Template/ARMv8-M/tz_context.c", "dest_file" : "cmsis/TARGET_CORTEX_M/mbed_tz_context.c" }, ... { "src_file" : "", "dest_file" : "" } ], "folders" : [ { "src_folder" : "CMSIS/Core/Include/", "dest_folder" : "cmsis/TARGET_CORTEX_M/" }, ... { "src_folder" : "", "dest_folder" : "" } ], "commit_sha" : [ "428acae1b2ac15c3ad523e8d40755a9301220822", "d9d622afe0ca8c7ab9d24c17f9fe59b54dcc61c9", ] }

Input to importer.py

  1. Repository: -r <repo_path> ( Example: CMSIS / Mbed-tls)
  2. repo_importer.json: -c <json_file> (Example: cmsis_importer.json)