David Brown | ada28e1 | 2017-07-05 13:36:37 -0600 | [diff] [blame] | 1 | ########################################################################### |
| 2 | # Sample multi-part application Makefile |
| 3 | # |
| 4 | # Copyright (c) 2017 Linaro Limited |
Marti Bolivar | bf909a1 | 2017-11-13 19:43:46 -0500 | [diff] [blame] | 5 | # Copyright (c) 2017 Open Source Foundries Limited |
David Brown | ada28e1 | 2017-07-05 13:36:37 -0600 | [diff] [blame] | 6 | # |
| 7 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 8 | # you may not use this file except in compliance with the License. |
| 9 | # You may obtain a copy of the License at |
| 10 | # |
| 11 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | # |
| 13 | # Unless required by applicable law or agreed to in writing, software |
| 14 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 16 | # See the License for the specific language governing permissions and |
| 17 | # limitations under the License. |
| 18 | ########################################################################### |
| 19 | |
| 20 | # This is an example Makefile to demonstrate how to use mcuboot to |
| 21 | # deploy and upgrade images. The image building should work on any |
| 22 | # supported target, however flashing will likely require changes to |
| 23 | # the flash addresses, depending on the partition layout of the device |
| 24 | # in question. |
| 25 | # |
| 26 | # running |
Marti Bolivar | 7135410 | 2017-08-01 15:09:44 -0400 | [diff] [blame] | 27 | # |
David Brown | ada28e1 | 2017-07-05 13:36:37 -0600 | [diff] [blame] | 28 | # make BOARD=frdm_k64f all |
| 29 | # |
| 30 | # should generate three "*.bin" files in this directory: |
| 31 | # |
| 32 | # mcuboot.bin: The bootloader itself |
| 33 | # signed-hello1.bin: A signed sample. |
| 34 | # signed-hello2.bin: An upgrade image, signed and marked for |
| 35 | # upgrade. |
| 36 | # |
| 37 | # "make flash_boot" should flash the bootloader into the flash, |
| 38 | # erasing the rest of the device. If you examine the device at this |
| 39 | # time, you should see a message about the bootloader not being able |
| 40 | # to find a bootable image. |
| 41 | # |
| 42 | # "make flash_hello1" will then flash the first application into |
| 43 | # "slot0". This should boot into this app, print a small message, and |
| 44 | # give the zephyr console. |
| 45 | # |
| 46 | # "make flash_hello2" will flash hello2 into the second slot. The |
| 47 | # reset should upgrade and run the new image. Resetting again should |
| 48 | # then revert back to the first app, since we did not mark this image |
| 49 | # as good. |
| 50 | |
Marti Bolivar | a4818a5 | 2018-04-12 13:02:38 -0400 | [diff] [blame] | 51 | # Extra .conf fragments to merge into the MCUboot .config, as a |
| 52 | # semicolon-separated list (i.e., a CMake list). |
| 53 | BOOTLOADER_OVERLAY_CONFIG ?= |
| 54 | |
Marti Bolivar | bf909a1 | 2017-11-13 19:43:46 -0500 | [diff] [blame] | 55 | BOARD ?= frdm_k64f |
| 56 | |
David Brown | ada28e1 | 2017-07-05 13:36:37 -0600 | [diff] [blame] | 57 | .PHONY: check boot hello1 clean_boot clean_hello1 \ |
| 58 | hello2 clean_hello2 flash_boot flash_hello1 flash_hello2 |
| 59 | |
| 60 | # For signing, use the default RSA demo key, to match the default in |
| 61 | # the mcuboot Makefile. |
David Brown | 1d3f67d | 2017-09-14 15:10:24 -0600 | [diff] [blame] | 62 | SIGNING_KEY ?= ../../root-rsa-2048.pem |
David Brown | ada28e1 | 2017-07-05 13:36:37 -0600 | [diff] [blame] | 63 | |
| 64 | # The header size should match that in hello1/prj.conf |
| 65 | # CONFIG_TEXT_SECTION_OFFSET. This value needs to be a power of two |
| 66 | # that is at least as large as the size of the vector table. The |
| 67 | # value given here of 0x200 should be sufficient for any supported |
| 68 | # devices, but it can be made smaller, as long as this value matches |
| 69 | # that used to build the app. |
| 70 | BOOT_HEADER_LEN = 0x200 |
| 71 | |
| 72 | # For upgrades, the signing tool needs to know the device alignment. |
| 73 | # This requirement will be going away soon. |
| 74 | FLASH_ALIGNMENT = 8 |
| 75 | |
| 76 | IMGTOOL = ../../scripts/imgtool.py |
David Brown | dbc5727 | 2017-07-17 15:38:54 -0600 | [diff] [blame] | 77 | ASSEMBLE = ../../scripts/assemble.py |
Maureen Helm | 0e0c488 | 2019-02-18 17:20:00 -0600 | [diff] [blame] | 78 | PYOCD = pyocd |
David Brown | ada28e1 | 2017-07-05 13:36:37 -0600 | [diff] [blame] | 79 | |
Marti Bolivar | bf909a1 | 2017-11-13 19:43:46 -0500 | [diff] [blame] | 80 | SOURCE_DIRECTORY := $(CURDIR) |
| 81 | BUILD_DIRECTORY := $(CURDIR)/build/$(BOARD) |
| 82 | BUILD_DIR_BOOT := $(BUILD_DIRECTORY)/mcuboot |
| 83 | BUILD_DIR_HELLO1 := $(BUILD_DIRECTORY)/hello1 |
| 84 | BUILD_DIR_HELLO2 := $(BUILD_DIRECTORY)/hello2 |
| 85 | |
David Brown | ada28e1 | 2017-07-05 13:36:37 -0600 | [diff] [blame] | 86 | help: |
| 87 | @echo "make <target> BOARD=<board>" |
David Brown | dbc5727 | 2017-07-17 15:38:54 -0600 | [diff] [blame] | 88 | @echo "<target>: all, boot, hello1, full.bin" |
Marti Bolivar | bf909a1 | 2017-11-13 19:43:46 -0500 | [diff] [blame] | 89 | @echo "<board>: frdm_k64f only for now" |
David Brown | ada28e1 | 2017-07-05 13:36:37 -0600 | [diff] [blame] | 90 | |
| 91 | all: boot hello1 hello2 |
| 92 | |
David Brown | dbc5727 | 2017-07-17 15:38:54 -0600 | [diff] [blame] | 93 | full.bin: boot hello1 hello2 |
Marti Bolivar | bf909a1 | 2017-11-13 19:43:46 -0500 | [diff] [blame] | 94 | $(ASSEMBLE) -b $(BUILD_DIR_BOOT) \ |
David Brown | dbc5727 | 2017-07-17 15:38:54 -0600 | [diff] [blame] | 95 | -p signed-hello1.bin \ |
| 96 | -s signed-hello2.bin \ |
| 97 | -o full.bin |
| 98 | |
David Brown | ada28e1 | 2017-07-05 13:36:37 -0600 | [diff] [blame] | 99 | clean: clean_boot clean_hello1 clean_hello2 |
| 100 | @rm -f signed-hello1.bin |
| 101 | @rm -f signed-hello2.bin |
| 102 | @rm -f mcuboot.bin |
| 103 | |
| 104 | boot: check |
| 105 | @rm -f mcuboot.bin |
Marti Bolivar | bf909a1 | 2017-11-13 19:43:46 -0500 | [diff] [blame] | 106 | (mkdir -p $(BUILD_DIR_BOOT) && \ |
| 107 | cd $(BUILD_DIR_BOOT) && \ |
Marti Bolivar | a879843 | 2018-04-12 13:12:06 -0400 | [diff] [blame] | 108 | cmake -DOVERLAY_CONFIG=$(BOOTLOADER_OVERLAY_CONFIG) \ |
Marti Bolivar | bf909a1 | 2017-11-13 19:43:46 -0500 | [diff] [blame] | 109 | -G"Unix Makefiles" \ |
| 110 | -DBOARD=$(BOARD) \ |
| 111 | $(SOURCE_DIRECTORY)/../../boot/zephyr && \ |
| 112 | make -j$(nproc)) |
| 113 | cp $(BUILD_DIR_BOOT)/zephyr/zephyr.bin mcuboot.bin |
David Brown | ada28e1 | 2017-07-05 13:36:37 -0600 | [diff] [blame] | 114 | |
| 115 | clean_boot: check |
Marti Bolivar | bf909a1 | 2017-11-13 19:43:46 -0500 | [diff] [blame] | 116 | rm -rf $(BUILD_DIR_BOOT) |
David Brown | ada28e1 | 2017-07-05 13:36:37 -0600 | [diff] [blame] | 117 | |
| 118 | # Build and sign "hello1". |
| 119 | hello1: check |
Marti Bolivar | bf909a1 | 2017-11-13 19:43:46 -0500 | [diff] [blame] | 120 | (mkdir -p $(BUILD_DIR_HELLO1) && \ |
| 121 | cd $(BUILD_DIR_HELLO1) && \ |
| 122 | cmake -DFROM_WHO=hello1 \ |
| 123 | -G"Unix Makefiles" \ |
| 124 | -DBOARD=$(BOARD) \ |
| 125 | $(SOURCE_DIRECTORY)/hello-world && \ |
| 126 | make -j$(nproc)) |
David Brown | ada28e1 | 2017-07-05 13:36:37 -0600 | [diff] [blame] | 127 | $(IMGTOOL) sign \ |
| 128 | --key $(SIGNING_KEY) \ |
| 129 | --header-size $(BOOT_HEADER_LEN) \ |
| 130 | --align $(FLASH_ALIGNMENT) \ |
| 131 | --version 1.2 \ |
Fabio Utzig | ffffbad | 2018-07-10 09:34:25 -0300 | [diff] [blame] | 132 | --slot-size 0x60000 \ |
Marti Bolivar | bf909a1 | 2017-11-13 19:43:46 -0500 | [diff] [blame] | 133 | $(BUILD_DIR_HELLO1)/zephyr/zephyr.bin \ |
David Brown | ada28e1 | 2017-07-05 13:36:37 -0600 | [diff] [blame] | 134 | signed-hello1.bin |
| 135 | |
| 136 | clean_hello1: check |
Marti Bolivar | bf909a1 | 2017-11-13 19:43:46 -0500 | [diff] [blame] | 137 | rm -rf $(BUILD_DIR_HELLO1) |
David Brown | ada28e1 | 2017-07-05 13:36:37 -0600 | [diff] [blame] | 138 | |
| 139 | # Build and sign "hello2". |
| 140 | # This is the same signing command as above, except that it adds the |
| 141 | # "--pad" argument. This will also add the trailer that indicates |
| 142 | # this image is intended to be an upgrade. It should be flashed into |
| 143 | # slot1 instead of slot0. |
| 144 | hello2: check |
Marti Bolivar | bf909a1 | 2017-11-13 19:43:46 -0500 | [diff] [blame] | 145 | (mkdir -p $(BUILD_DIR_HELLO2) && \ |
| 146 | cd $(BUILD_DIR_HELLO2) && \ |
| 147 | cmake -DFROM_WHO=hello2 \ |
| 148 | -G"Unix Makefiles" \ |
| 149 | -DBOARD=$(BOARD) \ |
| 150 | $(SOURCE_DIRECTORY)/hello-world && \ |
| 151 | make -j$(nproc)) |
David Brown | ada28e1 | 2017-07-05 13:36:37 -0600 | [diff] [blame] | 152 | $(IMGTOOL) sign \ |
| 153 | --key $(SIGNING_KEY) \ |
| 154 | --header-size $(BOOT_HEADER_LEN) \ |
| 155 | --align $(FLASH_ALIGNMENT) \ |
| 156 | --version 1.2 \ |
Fabio Utzig | 263d439 | 2018-06-05 10:37:35 -0300 | [diff] [blame] | 157 | --slot-size 0x60000 \ |
| 158 | --pad \ |
Marti Bolivar | bf909a1 | 2017-11-13 19:43:46 -0500 | [diff] [blame] | 159 | $(BUILD_DIR_HELLO2)/zephyr/zephyr.bin \ |
David Brown | ada28e1 | 2017-07-05 13:36:37 -0600 | [diff] [blame] | 160 | signed-hello2.bin |
| 161 | |
| 162 | clean_hello2: check |
Marti Bolivar | bf909a1 | 2017-11-13 19:43:46 -0500 | [diff] [blame] | 163 | rm -rf $(BUILD_DIR_HELLO2) |
David Brown | ada28e1 | 2017-07-05 13:36:37 -0600 | [diff] [blame] | 164 | |
David Brown | 1d3f67d | 2017-09-14 15:10:24 -0600 | [diff] [blame] | 165 | # These flash_* targets use pyocd to flash the images. The addresses |
| 166 | # are hardcoded at this time. |
| 167 | |
David Brown | ada28e1 | 2017-07-05 13:36:37 -0600 | [diff] [blame] | 168 | flash_boot: |
Maureen Helm | 0e0c488 | 2019-02-18 17:20:00 -0600 | [diff] [blame] | 169 | $(PYOCD) flash -e chip -a 0 mcuboot.bin |
David Brown | ada28e1 | 2017-07-05 13:36:37 -0600 | [diff] [blame] | 170 | |
| 171 | flash_hello1: |
Maureen Helm | 0e0c488 | 2019-02-18 17:20:00 -0600 | [diff] [blame] | 172 | $(PYOCD) flash -a 0x20000 signed-hello1.bin |
David Brown | ada28e1 | 2017-07-05 13:36:37 -0600 | [diff] [blame] | 173 | |
| 174 | flash_hello2: |
Maureen Helm | 0e0c488 | 2019-02-18 17:20:00 -0600 | [diff] [blame] | 175 | $(PYOCD) flash -a 0x80000 signed-hello2.bin |
David Brown | ada28e1 | 2017-07-05 13:36:37 -0600 | [diff] [blame] | 176 | |
David Brown | 84a67af | 2017-07-26 00:36:02 -0600 | [diff] [blame] | 177 | flash_full: |
Maureen Helm | 0e0c488 | 2019-02-18 17:20:00 -0600 | [diff] [blame] | 178 | $(PYOCD) flash -e chip -a 0 full.bin |
David Brown | 84a67af | 2017-07-26 00:36:02 -0600 | [diff] [blame] | 179 | |
David Brown | 1d3f67d | 2017-09-14 15:10:24 -0600 | [diff] [blame] | 180 | # These test- targets reinvoke make with the configuration set to test |
| 181 | # various configurations. This will generally be followed by using |
| 182 | # the above flash targets. |
| 183 | |
| 184 | # Test a good image, with a good upgrade, using RSA signatures. |
| 185 | # flash_boot: Unable to find bootable image |
| 186 | # flash_hello1: hello1 runs |
| 187 | # flash_hello2: hello2 runs |
| 188 | # reset: hello1 runs |
Marti Bolivar | bf909a1 | 2017-11-13 19:43:46 -0500 | [diff] [blame] | 189 | test-good-rsa: clean |
David Brown | 1d3f67d | 2017-09-14 15:10:24 -0600 | [diff] [blame] | 190 | $(MAKE) \ |
Marti Bolivar | a4818a5 | 2018-04-12 13:02:38 -0400 | [diff] [blame] | 191 | BOOTLOADER_OVERLAY_CONFIG=$(PWD)/overlay-rsa.conf \ |
Marti Bolivar | bf909a1 | 2017-11-13 19:43:46 -0500 | [diff] [blame] | 192 | all |
David Brown | 1d3f67d | 2017-09-14 15:10:24 -0600 | [diff] [blame] | 193 | |
| 194 | # Test a good image, with a good upgrade, using ECDSA signatures. |
| 195 | # flash_boot: Unable to find bootable image |
| 196 | # flash_hello1: hello1 runs |
| 197 | # flash_hello2: hello2 runs |
| 198 | # reset: hello1 runs |
Marti Bolivar | bf909a1 | 2017-11-13 19:43:46 -0500 | [diff] [blame] | 199 | test-good-ecdsa: clean |
David Brown | 1d3f67d | 2017-09-14 15:10:24 -0600 | [diff] [blame] | 200 | $(MAKE) \ |
Marti Bolivar | a4818a5 | 2018-04-12 13:02:38 -0400 | [diff] [blame] | 201 | BOOTLOADER_OVERLAY_CONFIG=$(PWD)/overlay-ecdsa-p256.conf \ |
Marti Bolivar | bf909a1 | 2017-11-13 19:43:46 -0500 | [diff] [blame] | 202 | SIGNING_KEY=../../root-ec-p256.pem \ |
| 203 | all |
David Brown | 1d3f67d | 2017-09-14 15:10:24 -0600 | [diff] [blame] | 204 | |
| 205 | # Test (with RSA) that overwrite-only works. This should boot, |
| 206 | # upgrade correctly, but not revert once the upgrade has been done. |
| 207 | # flash_boot: Unable to find bootable image |
| 208 | # flash_hello1: hello1 runs |
| 209 | # flash_hello2: hello2 runs |
| 210 | # reset: hello2 runs |
Marti Bolivar | bf909a1 | 2017-11-13 19:43:46 -0500 | [diff] [blame] | 211 | test-overwrite: clean |
David Brown | 1d3f67d | 2017-09-14 15:10:24 -0600 | [diff] [blame] | 212 | $(MAKE) \ |
Marti Bolivar | a879843 | 2018-04-12 13:12:06 -0400 | [diff] [blame] | 213 | BOOTLOADER_OVERLAY_CONFIG=$(PWD)/overlay-upgrade-only.conf \ |
Marti Bolivar | bf909a1 | 2017-11-13 19:43:46 -0500 | [diff] [blame] | 214 | all |
David Brown | 1d3f67d | 2017-09-14 15:10:24 -0600 | [diff] [blame] | 215 | |
| 216 | # Test that when configured for RSA, a wrong signature in the upgrade |
| 217 | # image will fail to upgrade. |
| 218 | # flash_boot: Unable to find bootable image |
| 219 | # flash_hello1: hello1 runs |
| 220 | # flash_hello2: hello1 runs |
| 221 | # reset: hello1 runs |
Marti Bolivar | bf909a1 | 2017-11-13 19:43:46 -0500 | [diff] [blame] | 222 | test-bad-rsa-upgrade: clean |
David Brown | 1d3f67d | 2017-09-14 15:10:24 -0600 | [diff] [blame] | 223 | $(MAKE) \ |
Marti Bolivar | a4818a5 | 2018-04-12 13:02:38 -0400 | [diff] [blame] | 224 | BOOTLOADER_OVERLAY_CONFIG=$(PWD)/overlay-rsa.conf \ |
Marti Bolivar | bf909a1 | 2017-11-13 19:43:46 -0500 | [diff] [blame] | 225 | boot hello1 |
David Brown | 1d3f67d | 2017-09-14 15:10:24 -0600 | [diff] [blame] | 226 | $(MAKE) \ |
Marti Bolivar | a4818a5 | 2018-04-12 13:02:38 -0400 | [diff] [blame] | 227 | BOOTLOADER_OVERLAY_CONFIG=$(PWD)/overlay-rsa.conf \ |
Marti Bolivar | bf909a1 | 2017-11-13 19:43:46 -0500 | [diff] [blame] | 228 | SIGNING_KEY=../../root-ec-p256.pem \ |
| 229 | hello2 |
David Brown | 1d3f67d | 2017-09-14 15:10:24 -0600 | [diff] [blame] | 230 | |
| 231 | # Test that when configured for ECDSA, a wrong signature in the upgrade |
| 232 | # image will fail to upgrade. |
| 233 | # flash_boot: Unable to find bootable image |
| 234 | # flash_hello1: hello1 runs |
| 235 | # flash_hello2: hello1 runs |
| 236 | # reset: hello1 runs |
Marti Bolivar | bf909a1 | 2017-11-13 19:43:46 -0500 | [diff] [blame] | 237 | test-bad-ecdsa-upgrade: clean |
David Brown | 1d3f67d | 2017-09-14 15:10:24 -0600 | [diff] [blame] | 238 | $(MAKE) \ |
Marti Bolivar | a4818a5 | 2018-04-12 13:02:38 -0400 | [diff] [blame] | 239 | BOOTLOADER_OVERLAY_CONFIG=$(PWD)/overlay-ecdsa-p256.conf \ |
Marti Bolivar | bf909a1 | 2017-11-13 19:43:46 -0500 | [diff] [blame] | 240 | SIGNING_KEY=../../root-ec-p256.pem \ |
| 241 | boot hello1 |
David Brown | 1d3f67d | 2017-09-14 15:10:24 -0600 | [diff] [blame] | 242 | $(MAKE) \ |
Marti Bolivar | a4818a5 | 2018-04-12 13:02:38 -0400 | [diff] [blame] | 243 | BOOTLOADER_OVERLAY_CONFIG=$(PWD)/overlay-ecdsa-p256.conf \ |
Marti Bolivar | bf909a1 | 2017-11-13 19:43:46 -0500 | [diff] [blame] | 244 | SIGNING_KEY=../../root-rsa-2048.pem \ |
| 245 | hello2 |
David Brown | 1d3f67d | 2017-09-14 15:10:24 -0600 | [diff] [blame] | 246 | |
| 247 | # Test that when configured to not validate slot0, we still boot, but |
| 248 | # don't upgrade. |
| 249 | # flash_boot: tries to boot and resets |
| 250 | # flash_hello1: hello1 runs |
| 251 | # flash_hello2: hello1 runs |
| 252 | # reset: hello1 runs |
Marti Bolivar | bf909a1 | 2017-11-13 19:43:46 -0500 | [diff] [blame] | 253 | test-no-bootcheck: clean |
David Brown | 1d3f67d | 2017-09-14 15:10:24 -0600 | [diff] [blame] | 254 | $(MAKE) \ |
Marti Bolivar | 15c9b6f | 2018-04-12 13:08:39 -0400 | [diff] [blame] | 255 | BOOTLOADER_OVERLAY_CONFIG=$(PWD)/overlay-skip-slot0-validate.conf \ |
Marti Bolivar | bf909a1 | 2017-11-13 19:43:46 -0500 | [diff] [blame] | 256 | SIGNING_KEY=../../root-ec-p256.pem \ |
| 257 | all |
David Brown | 1d3f67d | 2017-09-14 15:10:24 -0600 | [diff] [blame] | 258 | |
| 259 | # Test a good image, with a wrong-signature upgrade, using RSA signatures. |
| 260 | # flash_boot: Unable to find bootable image |
| 261 | # flash_hello1: hello1 runs |
| 262 | # flash_hello2: hello1 runs |
| 263 | # reset: hello1 runs |
Marti Bolivar | bf909a1 | 2017-11-13 19:43:46 -0500 | [diff] [blame] | 264 | test-wrong-rsa: clean |
David Brown | 1d3f67d | 2017-09-14 15:10:24 -0600 | [diff] [blame] | 265 | $(MAKE) \ |
Marti Bolivar | a4818a5 | 2018-04-12 13:02:38 -0400 | [diff] [blame] | 266 | BOOTLOADER_OVERLAY_CONFIG=$(PWD)/overlay-rsa.conf \ |
Marti Bolivar | bf909a1 | 2017-11-13 19:43:46 -0500 | [diff] [blame] | 267 | boot hello1 |
David Brown | 1d3f67d | 2017-09-14 15:10:24 -0600 | [diff] [blame] | 268 | $(MAKE) \ |
Marti Bolivar | a4818a5 | 2018-04-12 13:02:38 -0400 | [diff] [blame] | 269 | BOOTLOADER_OVERLAY_CONFIG=$(PWD)/overlay-rsa.conf \ |
Marti Bolivar | bf909a1 | 2017-11-13 19:43:46 -0500 | [diff] [blame] | 270 | SIGNING_KEY=bad-keys/bad-rsa-2048.pem \ |
| 271 | hello2 |
David Brown | 1d3f67d | 2017-09-14 15:10:24 -0600 | [diff] [blame] | 272 | |
| 273 | # Test a good image, with a wrong-signature upgrade, using ECDSA signatures. |
| 274 | # flash_boot: Unable to find bootable image |
| 275 | # flash_hello1: hello1 runs |
| 276 | # flash_hello2: hello1 runs |
| 277 | # reset: hello1 runs |
Marti Bolivar | bf909a1 | 2017-11-13 19:43:46 -0500 | [diff] [blame] | 278 | test-wrong-ecdsa: clean |
David Brown | 1d3f67d | 2017-09-14 15:10:24 -0600 | [diff] [blame] | 279 | $(MAKE) \ |
Marti Bolivar | a4818a5 | 2018-04-12 13:02:38 -0400 | [diff] [blame] | 280 | BOOTLOADER_OVERLAY_CONFIG=$(PWD)/overlay-ecdsa-p256.conf \ |
Marti Bolivar | bf909a1 | 2017-11-13 19:43:46 -0500 | [diff] [blame] | 281 | SIGNING_KEY=../../root-ec-p256.pem \ |
| 282 | boot hello1 |
David Brown | 1d3f67d | 2017-09-14 15:10:24 -0600 | [diff] [blame] | 283 | $(MAKE) \ |
Marti Bolivar | a4818a5 | 2018-04-12 13:02:38 -0400 | [diff] [blame] | 284 | BOOTLOADER_OVERLAY_CONFIG=$(PWD)/overlay-ecdsa-p256.conf \ |
Marti Bolivar | bf909a1 | 2017-11-13 19:43:46 -0500 | [diff] [blame] | 285 | SIGNING_KEY=bad-keys/bad-ec-p256.pem \ |
| 286 | hello2 |
David Brown | 1d3f67d | 2017-09-14 15:10:24 -0600 | [diff] [blame] | 287 | |
David Brown | ada28e1 | 2017-07-05 13:36:37 -0600 | [diff] [blame] | 288 | check: |
| 289 | @if [ -z "$$ZEPHYR_BASE" ]; then echo "Zephyr environment not set up"; false; fi |
Marti Bolivar | 7135410 | 2017-08-01 15:09:44 -0400 | [diff] [blame] | 290 | @if [ -z "$(BOARD)" ]; then echo "You must specify BOARD=<board>"; false; fi |