Commit b9f5a68d authored by Marti Bolivar's avatar Marti Bolivar Committed by David Brown
Browse files

samples: zephyr: use unified application

Replace the hello1 and hello2 applications with hello-world.

Signed-off-by: default avatarMarti Bolivar <marti.bolivar@linaro.org>
parent 71354101
Loading
Loading
Loading
Loading
+6 −6
Changes for samples/zephyr/Makefile: 6 added lines, 6 removed lines.
Original line number Diff line number Diff line
@@ -100,18 +100,18 @@ clean_boot: check

# Build and sign "hello1".
hello1: check
	$(MAKE) -C hello1 BOARD=$(BOARD) -j$(nproc)
	$(MAKE) -C hello-world FROM_WHO="hello1" O=outdir/hello1/$(BOARD) BOARD=$(BOARD) -j$(nproc)
	$(IMGTOOL) sign \
		--key $(SIGNING_KEY) \
		--header-size $(BOOT_HEADER_LEN) \
		--align $(FLASH_ALIGNMENT) \
		--version 1.2 \
		--included-header \
		hello1/outdir/$(BOARD)/zephyr.bin \
		hello-world/outdir/hello1/$(BOARD)/zephyr.bin \
		signed-hello1.bin

clean_hello1: check
	rm -rf hello1/outdir/$(BOARD)
	rm -rf hello-world/outdir/hello1/$(BOARD)

# Build and sign "hello2".
# This is the same signing command as above, except that it adds the
@@ -119,7 +119,7 @@ clean_hello1: check
# this image is intended to be an upgrade.  It should be flashed into
# slot1 instead of slot0.
hello2: check
	$(MAKE) -C hello2 BOARD=$(BOARD) -j$(nproc)
	$(MAKE) -C hello-world FROM_WHO="hello2" O=outdir/hello2/$(BOARD) BOARD=$(BOARD) -j$(nproc)
	$(IMGTOOL) sign \
		--key $(SIGNING_KEY) \
		--header-size $(BOOT_HEADER_LEN) \
@@ -127,11 +127,11 @@ hello2: check
		--version 1.2 \
		--included-header \
		--pad 0x60000 \
		hello2/outdir/$(BOARD)/zephyr.bin \
		hello-world/outdir/hello2/$(BOARD)/zephyr.bin \
		signed-hello2.bin

clean_hello2: check
	rm -rf hello2/outdir/$(BOARD)
	rm -rf hello-world/outdir/hello2/$(BOARD)

flash_boot:
	$(PYOCD_FLASHTOOL) -ce -a 0 mcuboot.bin
−3
Changes for samples/zephyr/README.md: 0 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -8,6 +8,3 @@ useful.

Please see the comments in the Makefile in this directory for more
details on how to build and test this application.

The hello applications were taken directly from the Zephyr source
tree.
−4

File deleted.

−38

File deleted.

−9

File deleted.

Loading