-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (28 loc) · 1.2 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
docker:
docker build -t yocto-stm32mp157-kirkstone . && \
docker run --rm -it \
--security-opt seccomp=unconfined \
-v $${PWD}:$${PWD}:Z \
-v ~/.gitconfig:/etc/gitconfig:Z \
yocto-stm32mp157-kirkstone \
--workdir=$${PWD}
build:
docker run --rm -it \
--security-opt seccomp=unconfined \
-v $${PWD}:$${PWD}:Z \
-v ~/.gitconfig:/etc/gitconfig:Z \
yocto-stm32mp157-kirkstone \
--workdir=$${PWD} \
/bin/bash -c 'source ./layers/openembedded-core/oe-init-build-env ./build-openstlinuxweston-stm32mp1/ && bitbake st-image-weston && exit'
env:
docker run --rm -it \
--security-opt seccomp=unconfined \
-v $${PWD}:$${PWD}:Z \
-v ~/.gitconfig:/etc/gitconfig:Z \
yocto-stm32mp157-kirkstone \
--workdir=$${PWD} \
/bin/bash -c 'source ./layers/openembedded-core/oe-init-build-env build-openstlinuxweston-stm32mp1/ && bash'
STM32_PROGRAMMER_PATH := $(shell dirname "$(shell find ~/STM32Cube -type f -name STM32_Programmer_CLI -print -quit 2>/dev/null)")
export PATH := $(STM32_PROGRAMMER_PATH):$(PATH)
flash:
cd ./build-openstlinuxweston-stm32mp1/tmp-glibc/deploy/images/stm32mp1/ && STM32_Programmer_CLI -c port=usb1 -w flashlayout_st-image-weston/trusted/FlashLayout_sdcard_stm32mp157c-dk2-trusted.tsv && cd -