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

Add Makefile to make it easier to patch cmakelists for each student
This commit is contained in:
Schoumi 2022-07-08 12:22:53 +02:00
parent 52ed0f0ee7
commit 81d408fe7c
3 changed files with 18 additions and 2 deletions

View file

@ -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
}
}

15
Makefile Normal file
View file

@ -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

View file

@ -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"