kopia lustrzana https://github.com/peterhinch/micropython-samples
Update build scripts to handle submodules.
rodzic
c1c2cb7c71
commit
0d27d95e80
|
@ -20,6 +20,8 @@ board.
|
||||||
|
|
||||||
The scripts will require minor edits to reflect your directory structure.
|
The scripts will require minor edits to reflect your directory structure.
|
||||||
|
|
||||||
|
Scripts updated 12 Sep 2021 to fix handling of submodules.
|
||||||
|
|
||||||
###### [Main README](../README.md)
|
###### [Main README](../README.md)
|
||||||
|
|
||||||
# Frozen modules and manifests
|
# Frozen modules and manifests
|
||||||
|
|
|
@ -19,6 +19,7 @@ then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
make submodules
|
||||||
if make -j 8 FROZEN_MANIFEST=$MANIFEST
|
if make -j 8 FROZEN_MANIFEST=$MANIFEST
|
||||||
then
|
then
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
|
@ -5,6 +5,7 @@ cd $MPDIR
|
||||||
echo Working...
|
echo Working...
|
||||||
git checkout master
|
git checkout master
|
||||||
git pull origin master --tags
|
git pull origin master --tags
|
||||||
|
git submodule sync
|
||||||
git submodule update --init
|
git submodule update --init
|
||||||
cd mpy-cross
|
cd mpy-cross
|
||||||
make clean
|
make clean
|
||||||
|
@ -20,6 +21,5 @@ cd ../esp8266
|
||||||
make clean
|
make clean
|
||||||
cd ../unix
|
cd ../unix
|
||||||
make clean
|
make clean
|
||||||
# If you're going to enable deplibs: see micropython/README
|
make submodules
|
||||||
#make deplibs
|
|
||||||
make -j 8
|
make -j 8
|
||||||
|
|
|
@ -39,6 +39,7 @@ then
|
||||||
then
|
then
|
||||||
make BOARD=$BOARD clean
|
make BOARD=$BOARD clean
|
||||||
fi
|
fi
|
||||||
|
make submodules
|
||||||
if make -j 8 BOARD=$BOARD FROZEN_MANIFEST=$MANIFEST MICROPY_VFS_LFS2=1 && pyb_boot $MPDEVICE
|
if make -j 8 BOARD=$BOARD FROZEN_MANIFEST=$MANIFEST MICROPY_VFS_LFS2=1 && pyb_boot $MPDEVICE
|
||||||
then
|
then
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
Ładowanie…
Reference in New Issue