Change source build to git.mob-dev.fr for my students

Add Makefile to make it easier to patch cmakelists for each student
master
Schoumi 5 months ago
parent 52ed0f0ee7
commit 81d408fe7c
  1. 3
      .yotta.json
  2. 15
      Makefile
  3. 2
      module.json

@ -1,5 +1,6 @@
{
"build": {
"target": "bbc-microbit-classic-gcc,https://github.com/lancaster-university/yotta-target-bbc-microbit-classic-gcc"
"target": "bbc-microbit-classic-gcc,https://git.mob-dev.fr/Schoumi/yotta-target-bbc-microbit-classic-gcc.git",
"targetSetExplicitly": true
}
}

@ -0,0 +1,15 @@
all: build
patch:
@sed -i "s/VERSION 2.8.11/VERSION 3.0.0/" ~/.local/lib/python3.10/site-packages/yotta/lib/templates/subdir_CMakeLists.txt
@sed -i "s/VERSION 2.8.11/VERSION 3.0.0/" ~/.local/lib/python3.10/site-packages/yotta/lib/templates/base_CMakeLists.txt
@sed -i "s/cmake_policy(SET CMP0017 OLD)/#cmake_policy(SET CMP0017 OLD)/" ~/.local/lib/python3.10/site-packages/yotta/lib/templates/base_CMakeLists.txt
build: patch
@yt build
install:
@cp build/bbc-microbit-classic-gcc/source/microbit-samples.hex /media/$USER/
clean:
@yt clean

@ -4,7 +4,7 @@
"description": "The micro:bit runtime common abstraction with examples.",
"license": "MIT",
"dependencies": {
"microbit": "lancaster-university/microbit#v2.1.1"
"microbit": "https://git.mob-dev.fr/Schoumi/microbit.git"
},
"targetDependencies": {},
"bin": "./source"

Loading…
Cancel
Save