Generator Update 12.20

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Generator Update 12.20

Generator Update 12.20

Dear sdk generator users,

 

This week the new generator has the some updates and all commits have been pushed to the develop/mcu_sdk_generator branch by default. Please cherry-pick the commits or sync the latest branch to your feature branch if needed.

 

We have recorded the update into the MCUX SDK Generator community. We really welcome you to join the community to view these updates and raise any topics/questions/comments.

 

It is easy! 

  1. Go to the MCUX SDK Generatorcommunity sub-space
  2. Check that there is not any post about your problem already
  3. Create a new question post or any other available post type (according to a purpose of your message)pastedImage_5.png
  4. Fill in the form
    1. Fill in the title of the message
    2. Fill in the body of the message
    3. You can add attachments
    4. Post it

        pastedImage_7.png                            

Please, send email to MCU_SW_PE MCU_SW_PE@nxp.com if you cannot access the community space or if you have any other problem related to using the community space.

IT is not adding all members of the MCU_SDK_DEV office group on a list of this community space users. It may happen you haven’t been added yet. We can add you manually.

As we commit, any new features will be posted on community.

 

New features update:

  • KPSDK-24781 Remove generator's dependencies on so many submodules

       Some ymls are stored in submodules like docs, generator will load them from submodules each time.That is quite big obstacle because of the submodule size. For automation purposes this slow down build tests by 10%.
       So we move the docs ymls from docs submodule into bin/generator/records_v1/msdk/components/docs. The new docs directory has the same structure as the previous docs submodule.
       We also update docs ymls load path in records_v1 and affected submodules.
       The new directory is as follow:

       Untitled picture.png

 

                    We have already removed the docs ymls under docs submodule. For future development, please update the docs ymls under records_v1/msdk/components/docs.

    

  • SDKGEN-440 Prevent generators from creating xml files while they are not required

       SDKGEN-709 Fix bugs that mcux toolchain is not added into build automatically if run with release config without specifying mcux toolchain

       Previously, when generating projects for specific toolchains, generator will anyway add in the "mcux" no matter you set it or not.

       From now, generator will not do this automatic adding if you just generate projects(-c projects)

       For manifest/superset/package running, the 'mcux' will still be automatically added because the <example>.xml is used by some tools except for the mcuxpresso.

       Here is an example:

generate_xml.png

  • SDKGEN-429 Support -d parameter in sdk generator to only generate intermediate data yml for debug use.

       sdk generator now supports generating debug data only with '-d'.

       With '-d' specified, the generator will only generate intermediate debug data under bin/generator/sdk_generator/src/debug_data folder for user's analyzing use.

  • For single core boards, the naming of the debug data yml is <board_id>_<yml_name>.yml
    •  eg: frdmk64f_cleaned_project_data.yml
  • For dual-core boards is <board_id>_<core_id>_<yml_name>.yml(you need to provide the --core_id to provide the core id)
    • eg: lpcxpresso54114_cm0plus_component_data.yml, lpcxpresso54114_cm4_unify_data.yml.
  • For each board, there will be 6 debug data ymls.
    • The component/component_support/project/misc_content data contains component/component_support/application/manifest content and cmsis_pack content sections.
    • The cleaned_component/cleaned_project data contains component/application sections whose project-root-path/release-dir has been replaced in files' paths.
    •  The unify_data contains application sections that have been transformed into the format for project generator to process.

Note that when setting '-c manifest' using batch or output type is manifest when using release_config, the unify data will not be generated because manifest doesn't use the unify_data.yml

Untitled picture.png

Tags (1)
Comments

The NPIs using old generator, if sync docs/ submodules master branch and included this updates.

The listed middlewares also need to sync and update because the ymls in those middlewares load the yml files under docs. If not the meta_translator.rb will run failed, and superset can't be generated! So it's would be easier if creating a release branch on docs/ submodule.

middleware/issdk submodule  have  docs/ISSDK/ISSDK.yml

middleware/lvhb submodule  have  docs/lvhb/lvhb.yml

middleware/motor_control submodule  have  docs/MC/MC.yml

middleware/sigfox submodule  have  docs/sigfox/sigfox.yml 

middleware/touch submodule  have  docs/touch/touch.yml

The old yml that load the docs yml under these submodules beside the ISSDK subumodule have modified.

The issdk submodule old yml don't load the docs yml. 

No ratings
Version history
Last update:
‎12-20-2018 03:11 AM
Updated by: