commit | 299245d7de3473c07db2dcf15a367f88c9277412 | [log] [tgz] |
---|---|---|
author | David Brown <david.brown@linaro.org> | Tue Jan 10 09:49:47 2017 -0700 |
committer | David Brown <david.brown@linaro.org> | Tue Jan 10 09:49:47 2017 -0700 |
tree | 24c922e4e7db1e2589a77a93bc190910ba7a9c45 | |
parent | c331967ae1e7e2e082d2fe4e5a8afade8b5e2b8c [diff] |
zephyr: Move code under 'boot' directory The Zephyr build systems makes some assumptions about the directory layout, and encounters problems if the necessary path contains "../..". To help this, place the zephyr directory next to the bootutil directory so that the Makefile can just refer to "../bootutil". This keeps all of the build artifacts under the proper top-level directory.
diff --git a/Makefile b/Makefile index fd5a412..0e70d5d 100644 --- a/Makefile +++ b/Makefile
@@ -1,5 +1,5 @@ BOARD ?= qemu_x86 -CONF_FILE = zephyr/prj.conf -SOURCE_DIR = zephyr/src +CONF_FILE = boot/zephyr/prj.conf +SOURCE_DIR = boot/zephyr include ${ZEPHYR_BASE}/Makefile.inc
diff --git a/zephyr/src/Makefile b/boot/zephyr/Makefile similarity index 60% rename from zephyr/src/Makefile rename to boot/zephyr/Makefile index 0996747..6b8618a 100644 --- a/zephyr/src/Makefile +++ b/boot/zephyr/Makefile
@@ -1,8 +1,8 @@ subdir-ccflags-y += -I$(PROJECT)/boot/bootutil/include -subdir-ccflags-y += -I$(PROJECT)/zephyr/include +subdir-ccflags-y += -I$(PROJECT)/boot/zephyr/include obj-y += main.o obj-y += flash_map.o hal_flash.o os.o obj-y += keys.o -obj-y += ../../boot/bootutil/src/ +obj-y += ../bootutil/src/
diff --git a/zephyr/src/flash_map.c b/boot/zephyr/flash_map.c similarity index 100% rename from zephyr/src/flash_map.c rename to boot/zephyr/flash_map.c
diff --git a/zephyr/src/hal_flash.c b/boot/zephyr/hal_flash.c similarity index 100% rename from zephyr/src/hal_flash.c rename to boot/zephyr/hal_flash.c
diff --git a/zephyr/include/flash_map/flash_map.h b/boot/zephyr/include/flash_map/flash_map.h similarity index 100% rename from zephyr/include/flash_map/flash_map.h rename to boot/zephyr/include/flash_map/flash_map.h
diff --git a/zephyr/include/hal/hal_bsp.h b/boot/zephyr/include/hal/hal_bsp.h similarity index 100% rename from zephyr/include/hal/hal_bsp.h rename to boot/zephyr/include/hal/hal_bsp.h
diff --git a/zephyr/include/hal/hal_flash.h b/boot/zephyr/include/hal/hal_flash.h similarity index 100% rename from zephyr/include/hal/hal_flash.h rename to boot/zephyr/include/hal/hal_flash.h
diff --git a/zephyr/include/os/os.h b/boot/zephyr/include/os/os.h similarity index 100% rename from zephyr/include/os/os.h rename to boot/zephyr/include/os/os.h
diff --git a/zephyr/include/os/os_heap.h b/boot/zephyr/include/os/os_heap.h similarity index 100% rename from zephyr/include/os/os_heap.h rename to boot/zephyr/include/os/os_heap.h
diff --git a/zephyr/include/os/os_malloc.h b/boot/zephyr/include/os/os_malloc.h similarity index 100% rename from zephyr/include/os/os_malloc.h rename to boot/zephyr/include/os/os_malloc.h
diff --git a/zephyr/include/syscfg/syscfg.h b/boot/zephyr/include/syscfg/syscfg.h similarity index 100% rename from zephyr/include/syscfg/syscfg.h rename to boot/zephyr/include/syscfg/syscfg.h
diff --git a/zephyr/include/sysflash/sysflash.h b/boot/zephyr/include/sysflash/sysflash.h similarity index 100% rename from zephyr/include/sysflash/sysflash.h rename to boot/zephyr/include/sysflash/sysflash.h
diff --git a/zephyr/src/keys.c b/boot/zephyr/keys.c similarity index 100% rename from zephyr/src/keys.c rename to boot/zephyr/keys.c
diff --git a/zephyr/src/main.c b/boot/zephyr/main.c similarity index 100% rename from zephyr/src/main.c rename to boot/zephyr/main.c
diff --git a/zephyr/src/os.c b/boot/zephyr/os.c similarity index 100% rename from zephyr/src/os.c rename to boot/zephyr/os.c
diff --git a/zephyr/prj.conf b/boot/zephyr/prj.conf similarity index 100% rename from zephyr/prj.conf rename to boot/zephyr/prj.conf
diff --git a/zephyr/target.sh.example b/boot/zephyr/target.sh.example similarity index 100% rename from zephyr/target.sh.example rename to boot/zephyr/target.sh.example