Lines Matching +full:runs +full:- +full:on
2 # Sample multi-part application Makefile
11 # http://www.apache.org/licenses/LICENSE-2.0
14 # distributed under the License is distributed on an "AS IS" BASIS,
21 # deploy and upgrade images. The image building should work on any
23 # the flash addresses, depending on the partition layout of the device
33 # signed-hello1.bin: A signed sample.
34 # signed-hello2.bin: An upgrade image, signed and marked for
52 # semicolon-separated list (i.e., a CMake list).
66 SIGNING_KEY ?= ../../root-rsa-2048.pem
98 $(ASSEMBLE) -b $(BUILD_DIR_BOOT) \
99 -z $(ZEPHYR_BASE) \
100 -p signed-hello1.bin \
101 -s signed-hello2.bin \
102 -o full.bin
105 @rm -f signed-hello1.bin
106 @rm -f signed-hello2.bin
107 @rm -f mcuboot.bin
110 @rm -f mcuboot.bin
111 (mkdir -p $(BUILD_DIR_BOOT) && \
113 cmake -DEXTRA_CONF_FILE=$(BOOTLOADER_EXTRA_CONF_FILE) \
114 -G"Ninja" \
115 -DBOARD=$(BOARD) \
121 rm -rf $(BUILD_DIR_BOOT)
125 (mkdir -p $(BUILD_DIR_HELLO1) && \
127 cmake -DFROM_WHO=hello1 \
128 -G"Ninja" \
129 -DBOARD=$(BOARD) \
130 $(SOURCE_DIRECTORY)/hello-world && \
133 --key $(SIGNING_KEY) \
134 --header-size $(BOOT_HEADER_LEN) \
135 --align $(FLASH_ALIGNMENT) \
136 --version 1.2 \
137 --slot-size $(SLOT_SIZE) \
139 signed-hello1.bin
142 rm -rf $(BUILD_DIR_HELLO1)
146 # "--pad" argument. This will also add the trailer that indicates
150 (mkdir -p $(BUILD_DIR_HELLO2) && \
152 cmake -DFROM_WHO=hello2 \
153 -G"Ninja" \
154 -DBOARD=$(BOARD) \
155 $(SOURCE_DIRECTORY)/hello-world && \
158 --key $(SIGNING_KEY) \
159 --header-size $(BOOT_HEADER_LEN) \
160 --align $(FLASH_ALIGNMENT) \
161 --version 1.2 \
162 --slot-size $(SLOT_SIZE) \
163 --pad \
165 signed-hello2.bin
168 rm -rf $(BUILD_DIR_HELLO2)
174 $(PYOCD) flash -e chip -a $(BOOT_ADDR) mcuboot.bin
177 $(PYOCD) flash -a $(IMG0_ADDR) signed-hello1.bin
180 $(PYOCD) flash -a $(IMG1_ADDR) signed-hello2.bin
183 $(PYOCD) flash -e chip -a $(BOOT_ADDR) full.bin
185 # These test- targets reinvoke make with the configuration set to test
191 # flash_hello1: hello1 runs
192 # flash_hello2: hello2 runs
193 # reset: hello1 runs
194 test-good-rsa: clean
196 BOOTLOADER_EXTRA_CONF_FILE=$(PWD)/overlay-rsa.conf \
201 # flash_hello1: hello1 runs
202 # flash_hello2: hello2 runs
203 # reset: hello1 runs
204 test-good-ecdsa: clean
206 BOOTLOADER_EXTRA_CONF_FILE=$(PWD)/overlay-ecdsa-p256.conf \
207 SIGNING_KEY=../../root-ec-p256.pem \
210 # Test (with RSA) that overwrite-only works. This should boot,
213 # flash_hello1: hello1 runs
214 # flash_hello2: hello2 runs
215 # reset: hello2 runs
216 test-overwrite: clean
218 BOOTLOADER_EXTRA_CONF_FILE=$(PWD)/overlay-upgrade-only.conf \
224 # flash_hello1: hello1 runs
225 # flash_hello2: hello1 runs
226 # reset: hello1 runs
227 test-bad-rsa-upgrade: clean
229 BOOTLOADER_EXTRA_CONF_FILE=$(PWD)/overlay-rsa.conf \
232 BOOTLOADER_EXTRA_CONF_FILE=$(PWD)/overlay-rsa.conf \
233 SIGNING_KEY=../../root-ec-p256.pem \
239 # flash_hello1: hello1 runs
240 # flash_hello2: hello1 runs
241 # reset: hello1 runs
242 test-bad-ecdsa-upgrade: clean
244 BOOTLOADER_EXTRA_CONF_FILE=$(PWD)/overlay-ecdsa-p256.conf \
245 SIGNING_KEY=../../root-ec-p256.pem \
248 BOOTLOADER_EXTRA_CONF_FILE=$(PWD)/overlay-ecdsa-p256.conf \
249 SIGNING_KEY=../../root-rsa-2048.pem \
255 # flash_hello1: hello1 runs
256 # flash_hello2: hello1 runs
257 # reset: hello1 runs
258 test-no-bootcheck: clean
260 BOOTLOADER_EXTRA_CONF_FILE=$(PWD)/overlay-skip-primary-slot-validate.conf \
261 SIGNING_KEY=../../root-ec-p256.pem \
264 # Test a good image, with a wrong-signature upgrade, using RSA signatures.
266 # flash_hello1: hello1 runs
267 # flash_hello2: hello1 runs
268 # reset: hello1 runs
269 test-wrong-rsa: clean
271 BOOTLOADER_EXTRA_CONF_FILE=$(PWD)/overlay-rsa.conf \
274 BOOTLOADER_EXTRA_CONF_FILE=$(PWD)/overlay-rsa.conf \
275 SIGNING_KEY=bad-keys/bad-rsa-2048.pem \
278 # Test a good image, with a wrong-signature upgrade, using ECDSA signatures.
280 # flash_hello1: hello1 runs
281 # flash_hello2: hello1 runs
282 # reset: hello1 runs
283 test-wrong-ecdsa: clean
285 BOOTLOADER_EXTRA_CONF_FILE=$(PWD)/overlay-ecdsa-p256.conf \
286 SIGNING_KEY=../../root-ec-p256.pem \
289 BOOTLOADER_EXTRA_CONF_FILE=$(PWD)/overlay-ecdsa-p256.conf \
290 SIGNING_KEY=bad-keys/bad-ec-p256.pem \
294 @if [ -z "$$ZEPHYR_BASE" ]; then echo "Zephyr environment not set up"; false; fi
295 @if [ -z "$(BOARD)" ]; then echo "You must specify BOARD=<board>"; false; fi