Skip to content

Prepare for Yotta Registry deprecation #6

@jaustin

Description

@jaustin

In order to make life easy for users of these targets once the yotta registry goes away, we need to change the way people use them.

This requires at least two changes...

The most simple change is that that target 'inheritance' on mbed-gcc needs to move to a GitHub link - for example!

diff --git a/bbc-microbit-classic-gcc/target.json b/bbc-microbit-classic-gcc/target.json
index beb35e2..ce20ab0 100644
--- a/bbc-microbit-classic-gcc/target.json
+++ b/bbc-microbit-classic-gcc/target.json
@@ -9,7 +9,7 @@
     }
   ],
   "inherits": {
-    "mbed-gcc": "0.1.3"
+    "mbed-gcc": "ARMmbed/target-mbed-gcc#v0.1.3"
   },
   "keywords": [
     "mbed-target:nrf51822",

This works fine

Secondly, we need to change how people select the target.

Yotta supports (at least) two ways to specify targets without using the registry

  1. yotta link-target - this is really intended for local dev
  2. yotta target targetname@location where location can be GitHub (yt target mbed-gcc@ARMmbed/target-mbed-gcc#0.1.3) or I believe a git@URL too which might be more resilient to GitHub auth going away (although, auth is only required for public private repos, I think?)

I've just tested method one with the patch above and it builds fine, as far as I can tell without touching the registry, but once we've picked an option I'll kill the registry in my hosts file to check.

The former is more involved as it requires checking out more than just microbit-samples. The latter would require splitting up this repo.

I would prefer to split this repo. I'd consider also creating a standalone bbc-microibit-classic-gcc and bbc-microbit-classic-gcc-nosd as standalones and then renaming this to microbit-extra-targets and require yt link-target with these (removing the now-standalone targets and leaving pointers). FWIW I don't think the armcc one builds.

@jamesadevine @finneyj @carlosperate thoughts? Other projects that will need to change their build instructions are MicroPython and MakeCode. I think the minimal change for them is changing the string input to yt target

CC @mmoskal @thegecko @dpgeorge

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions