Rename TIMO -> ZEPHYR
Change-Id: Id44a129e275fb0cfe1fce6ec2a03c2d86ffe3995 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
8accfcfb2c
commit
b8823770d2
28
Makefile
28
Makefile
|
@ -339,9 +339,9 @@ STRIP = $(CROSS_COMPILE)strip
|
||||||
OBJCOPY = $(CROSS_COMPILE)objcopy
|
OBJCOPY = $(CROSS_COMPILE)objcopy
|
||||||
OBJDUMP = $(CROSS_COMPILE)objdump
|
OBJDUMP = $(CROSS_COMPILE)objdump
|
||||||
AWK = awk
|
AWK = awk
|
||||||
GENKSYMS = $(TIMO_BASE)/scripts/genksyms/genksyms
|
GENKSYMS = $(ZEPHYR_BASE)/scripts/genksyms/genksyms
|
||||||
GENIDT = $(TIMO_BASE)/scripts/gen_idt/gen_idt
|
GENIDT = $(ZEPHYR_BASE)/scripts/gen_idt/gen_idt
|
||||||
FIXDEP = $(TIMO_BASE)/scripts/basic/fixdep
|
FIXDEP = $(ZEPHYR_BASE)/scripts/basic/fixdep
|
||||||
PERL = perl
|
PERL = perl
|
||||||
PYTHON = python
|
PYTHON = python
|
||||||
CHECK = sparse
|
CHECK = sparse
|
||||||
|
@ -361,9 +361,9 @@ PROJECTINCLUDE := $(strip -I$(srctree)/include/microkernel \
|
||||||
-I$(CURDIR)/misc/generated/sysgen) \
|
-I$(CURDIR)/misc/generated/sysgen) \
|
||||||
$(USERINCLUDE)
|
$(USERINCLUDE)
|
||||||
|
|
||||||
# Use TIMOINCLUDE when you must reference the include/ directory.
|
# Use ZEPHYRINCLUDE when you must reference the include/ directory.
|
||||||
# Needed to be compatible with the O= option
|
# Needed to be compatible with the O= option
|
||||||
TIMOINCLUDE := \
|
ZEPHYRINCLUDE := \
|
||||||
-I$(srctree)/arch/$(hdr-arch)/include \
|
-I$(srctree)/arch/$(hdr-arch)/include \
|
||||||
$(if $(KBUILD_SRC), -I$(srctree)/include) \
|
$(if $(KBUILD_SRC), -I$(srctree)/include) \
|
||||||
-I$(srctree)/include \
|
-I$(srctree)/include \
|
||||||
|
@ -404,7 +404,7 @@ export CPP AR NM STRIP OBJCOPY OBJDUMP
|
||||||
export MAKE AWK GENKSYMS INSTALLKERNEL PERL PYTHON UTS_MACHINE GENIDT FIXDEP
|
export MAKE AWK GENKSYMS INSTALLKERNEL PERL PYTHON UTS_MACHINE GENIDT FIXDEP
|
||||||
export HOSTCXX HOSTCXXFLAGS LDFLAGS_MODULE CHECK CHECKFLAGS
|
export HOSTCXX HOSTCXXFLAGS LDFLAGS_MODULE CHECK CHECKFLAGS
|
||||||
|
|
||||||
export KBUILD_CPPFLAGS NOSTDINC_FLAGS TIMOINCLUDE OBJCOPYFLAGS LDFLAGS
|
export KBUILD_CPPFLAGS NOSTDINC_FLAGS ZEPHYRINCLUDE OBJCOPYFLAGS LDFLAGS
|
||||||
export KBUILD_CFLAGS CFLAGS_KERNEL CFLAGS_MODULE CFLAGS_GCOV
|
export KBUILD_CFLAGS CFLAGS_KERNEL CFLAGS_MODULE CFLAGS_GCOV
|
||||||
export KBUILD_AFLAGS AFLAGS_KERNEL AFLAGS_MODULE
|
export KBUILD_AFLAGS AFLAGS_KERNEL AFLAGS_MODULE
|
||||||
export KBUILD_AFLAGS_MODULE KBUILD_CFLAGS_MODULE KBUILD_LDFLAGS_MODULE
|
export KBUILD_AFLAGS_MODULE KBUILD_CFLAGS_MODULE KBUILD_LDFLAGS_MODULE
|
||||||
|
@ -426,8 +426,8 @@ export RCS_TAR_IGNORE := --exclude SCCS --exclude BitKeeper --exclude .svn \
|
||||||
# Basic helpers built in scripts/
|
# Basic helpers built in scripts/
|
||||||
PHONY += scripts_basic
|
PHONY += scripts_basic
|
||||||
scripts_basic:
|
scripts_basic:
|
||||||
$(Q)$(MAKE) -C $(TIMO_BASE) $(build)=scripts/basic
|
$(Q)$(MAKE) -C $(ZEPHYR_BASE) $(build)=scripts/basic
|
||||||
$(Q)$(MAKE) -C $(TIMO_BASE) $(build)=scripts/gen_idt
|
$(Q)$(MAKE) -C $(ZEPHYR_BASE) $(build)=scripts/gen_idt
|
||||||
$(Q)rm -f .tmp_quiet_recordmcount
|
$(Q)rm -f .tmp_quiet_recordmcount
|
||||||
|
|
||||||
# To avoid any implicit rule to kick in, define an empty command.
|
# To avoid any implicit rule to kick in, define an empty command.
|
||||||
|
@ -513,10 +513,10 @@ include $(srctree)/arch/$(SRCARCH)/Makefile
|
||||||
export KBUILD_DEFCONFIG KBUILD_KCONFIG
|
export KBUILD_DEFCONFIG KBUILD_KCONFIG
|
||||||
|
|
||||||
config: scripts_basic outputmakefile FORCE
|
config: scripts_basic outputmakefile FORCE
|
||||||
$(Q)$(MAKE) -C $(TIMO_BASE) $(build)=scripts/kconfig $@
|
$(Q)$(MAKE) -C $(ZEPHYR_BASE) $(build)=scripts/kconfig $@
|
||||||
|
|
||||||
%config: scripts_basic outputmakefile FORCE
|
%config: scripts_basic outputmakefile FORCE
|
||||||
$(Q)$(MAKE) -C $(TIMO_BASE) $(build)=scripts/kconfig $@
|
$(Q)$(MAKE) -C $(ZEPHYR_BASE) $(build)=scripts/kconfig $@
|
||||||
|
|
||||||
else
|
else
|
||||||
# ===========================================================================
|
# ===========================================================================
|
||||||
|
@ -566,7 +566,7 @@ ifdef CONFIG_MINIMAL_LIBC
|
||||||
# Objects we will link into tinymountain / subdirs we need to visit
|
# Objects we will link into tinymountain / subdirs we need to visit
|
||||||
KLIBC_DIR := lib/libc/minimal
|
KLIBC_DIR := lib/libc/minimal
|
||||||
libs-y := $(KLIBC_DIR)/
|
libs-y := $(KLIBC_DIR)/
|
||||||
TIMOINCLUDE += -I$(srctree)/lib/libc/minimal/include
|
ZEPHYRINCLUDE += -I$(srctree)/lib/libc/minimal/include
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifdef CONFIG_TOOLCHAIN_NEWLIB
|
ifdef CONFIG_TOOLCHAIN_NEWLIB
|
||||||
|
@ -778,14 +778,14 @@ libs-y := $(libs-y1) $(libs-y2)
|
||||||
# Externally visible symbols (used by link-tinymountain.sh)
|
# Externally visible symbols (used by link-tinymountain.sh)
|
||||||
DQUOTE = "
|
DQUOTE = "
|
||||||
#This comment line is to fix the highlighting of some editors due the quote effect."
|
#This comment line is to fix the highlighting of some editors due the quote effect."
|
||||||
export KBUILD_TIMO_INIT := $(head-y) $(init-y)
|
export KBUILD_ZEPHYR_INIT := $(head-y) $(init-y)
|
||||||
export KBUILD_TIMO_MAIN := $(core-y) $(libs-y) $(drivers-y) $(bsp-y)
|
export KBUILD_ZEPHYR_MAIN := $(core-y) $(libs-y) $(drivers-y) $(bsp-y)
|
||||||
export KBUILD_LDS := $(srctree)/arch/$(SRCARCH)/$(subst $(DQUOTE),,$(CONFIG_BSP_DIR))/linker.cmd
|
export KBUILD_LDS := $(srctree)/arch/$(SRCARCH)/$(subst $(DQUOTE),,$(CONFIG_BSP_DIR))/linker.cmd
|
||||||
export LDFLAGS_tinymountain
|
export LDFLAGS_tinymountain
|
||||||
# used by scripts/pacmage/Makefile
|
# used by scripts/pacmage/Makefile
|
||||||
export KBUILD_ALLDIRS := $(sort $(filter-out arch/%,$(tinymountain-alldirs)) arch Documentation include samples scripts tools virt)
|
export KBUILD_ALLDIRS := $(sort $(filter-out arch/%,$(tinymountain-alldirs)) arch Documentation include samples scripts tools virt)
|
||||||
|
|
||||||
tinymountain-deps := $(KBUILD_LDS) $(KBUILD_TIMO_INIT) $(KBUILD_TIMO_MAIN)
|
tinymountain-deps := $(KBUILD_LDS) $(KBUILD_ZEPHYR_INIT) $(KBUILD_ZEPHYR_MAIN)
|
||||||
|
|
||||||
ALL_LIBS += $(TOOLCHAIN_LIBS)
|
ALL_LIBS += $(TOOLCHAIN_LIBS)
|
||||||
export ALL_LIBS
|
export ALL_LIBS
|
||||||
|
|
16
Makefile.inc
16
Makefile.inc
|
@ -48,7 +48,7 @@ else
|
||||||
endif
|
endif
|
||||||
|
|
||||||
all: $(CONFIG_DEPS) $(O)/include/config/.dir
|
all: $(CONFIG_DEPS) $(O)/include/config/.dir
|
||||||
$(Q)$(MAKE) -C $(TIMO_BASE) O=$(O) \
|
$(Q)$(MAKE) -C $(ZEPHYR_BASE) O=$(O) \
|
||||||
PROJECT=$(PROJECT_BASE) SOURCE_DIR=$(SOURCE_DIR) CFLAGS=$(CFLAGS)
|
PROJECT=$(PROJECT_BASE) SOURCE_DIR=$(SOURCE_DIR) CFLAGS=$(CFLAGS)
|
||||||
|
|
||||||
rm-files:= .config
|
rm-files:= .config
|
||||||
|
@ -73,29 +73,29 @@ distclean: clean
|
||||||
|
|
||||||
mrproper: FORCE
|
mrproper: FORCE
|
||||||
$(call cmd_clean_inner_files)
|
$(call cmd_clean_inner_files)
|
||||||
$(Q)$(MAKE) -C $(TIMO_BASE) \
|
$(Q)$(MAKE) -C $(ZEPHYR_BASE) \
|
||||||
PROJECT=$(PROJECT_BASE) mrproper
|
PROJECT=$(PROJECT_BASE) mrproper
|
||||||
|
|
||||||
%config: $(O)/include/config/.dir FORCE
|
%config: $(O)/include/config/.dir FORCE
|
||||||
$(Q)$(MAKE) $(S) -C $(TIMO_BASE) O=$(O) \
|
$(Q)$(MAKE) $(S) -C $(ZEPHYR_BASE) O=$(O) \
|
||||||
PROJECT=$(PROJECT_BASE) $@
|
PROJECT=$(PROJECT_BASE) $@
|
||||||
|
|
||||||
qemu: $(CONFIG_DEPS) $(O)/include/config/.dir
|
qemu: $(CONFIG_DEPS) $(O)/include/config/.dir
|
||||||
$(Q)$(MAKE) -C $(TIMO_BASE) O=$(O) \
|
$(Q)$(MAKE) -C $(ZEPHYR_BASE) O=$(O) \
|
||||||
PROJECT=$(PROJECT_BASE) SOURCE_DIR=$(SOURCE_DIR) CFLAGS=$(CFLAGS) qemu
|
PROJECT=$(PROJECT_BASE) SOURCE_DIR=$(SOURCE_DIR) CFLAGS=$(CFLAGS) qemu
|
||||||
|
|
||||||
|
|
||||||
$(O)/.config: $(O)/include/config/.dir $(O)/include/generated/.dir
|
$(O)/.config: $(O)/include/config/.dir $(O)/include/generated/.dir
|
||||||
$(Q)cp $(TIMO_BASE)/arch/$(ARCH)/configs/$(KBUILD_DEFCONFIG) $(O)/.config
|
$(Q)cp $(ZEPHYR_BASE)/arch/$(ARCH)/configs/$(KBUILD_DEFCONFIG) $(O)/.config
|
||||||
|
|
||||||
$(O)/.initconfig: mergeconfig
|
$(O)/.initconfig: mergeconfig
|
||||||
$(Q)yes "" | $(MAKE) $(S) -C $(TIMO_BASE) O=$(O) \
|
$(Q)yes "" | $(MAKE) $(S) -C $(ZEPHYR_BASE) O=$(O) \
|
||||||
PROJECT=$(PROJECT_BASE) oldconfig
|
PROJECT=$(PROJECT_BASE) oldconfig
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
ifneq (($strip $(CONF_FILE)),)
|
ifneq (($strip $(CONF_FILE)),)
|
||||||
mergeconfig: $(O)/.config $(CONF_FILE)
|
mergeconfig: $(O)/.config $(CONF_FILE)
|
||||||
$(Q)$(CONFIG_SHELL) $(TIMO_BASE)/scripts/kconfig/merge_config.sh \
|
$(Q)$(CONFIG_SHELL) $(ZEPHYR_BASE)/scripts/kconfig/merge_config.sh \
|
||||||
-q -m -O $(O) $(O)/.config $(CONF_FILE)
|
-q -m -O $(O) $(O)/.config $(CONF_FILE)
|
||||||
else
|
else
|
||||||
mergeconfig: defconfig $(CONF_FILE);
|
mergeconfig: defconfig $(CONF_FILE);
|
||||||
|
@ -109,7 +109,7 @@ $(CONF_FILE):;
|
||||||
$(Q)touch $@
|
$(Q)touch $@
|
||||||
|
|
||||||
help:
|
help:
|
||||||
$(Q)$(MAKE) -C $(TIMO_BASE) help
|
$(Q)$(MAKE) -C $(ZEPHYR_BASE) help
|
||||||
|
|
||||||
PHONY += FORCE clean mrproper
|
PHONY += FORCE clean mrproper
|
||||||
FORCE:
|
FORCE:
|
||||||
|
|
|
@ -132,7 +132,7 @@ Create the Needed Build Tools
|
||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
$ cd $TIMO_BASE
|
$ cd $ZEPHYR_BASE
|
||||||
|
|
||||||
#. Copy the toolchain configurations to the build directories by
|
#. Copy the toolchain configurations to the build directories by
|
||||||
typing the following commands in the console:
|
typing the following commands in the console:
|
||||||
|
@ -264,7 +264,7 @@ Follow these steps to enable a customized build of QEMU:
|
||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
$ git am $TIMO_BASE/scripts/0001-armv7m-support-basepri-primask-interrupt-locking.patch
|
$ git am $ZEPHYR_BASE/scripts/0001-armv7m-support-basepri-primask-interrupt-locking.patch
|
||||||
|
|
||||||
#. Update the submodules as needed, type:
|
#. Update the submodules as needed, type:
|
||||||
|
|
||||||
|
|
|
@ -149,7 +149,7 @@ To build a Tiny Mountain example follow these steps:
|
||||||
|
|
||||||
#. Go to the root directory of your foss-rtos checkout
|
#. Go to the root directory of your foss-rtos checkout
|
||||||
|
|
||||||
#. Set the paths properly in the :file:`$TIMO_BASE` directory,
|
#. Set the paths properly in the :file:`$ZEPHYR_BASE` directory,
|
||||||
type:
|
type:
|
||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
@ -160,7 +160,7 @@ To build a Tiny Mountain example follow these steps:
|
||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
$ cd $TIMO_BASE/samples/microkernel/apps/hello_world
|
$ cd $ZEPHYR_BASE/samples/microkernel/apps/hello_world
|
||||||
|
|
||||||
$ make pristine && make
|
$ make pristine && make
|
||||||
|
|
||||||
|
@ -170,8 +170,8 @@ To build a Tiny Mountain example follow these steps:
|
||||||
|
|
||||||
You can override the default BSP with the one you want by adding
|
You can override the default BSP with the one you want by adding
|
||||||
:makevar:`BSP=`. The complete options available for the BSP flag
|
:makevar:`BSP=`. The complete options available for the BSP flag
|
||||||
can be found at :file:`$TIMO_BASE/arch` under the respective
|
can be found at :file:`$ZEPHYR_BASE/arch` under the respective
|
||||||
architecture, for example :file:`$TIMO_BASE/arch/x86/generic_pc`.
|
architecture, for example :file:`$ZEPHYR_BASE/arch/x86/generic_pc`.
|
||||||
You need to override the ARCH flag with the architecture that
|
You need to override the ARCH flag with the architecture that
|
||||||
corresponds to your BSP by adding :makevar:`ARCH=` and the options
|
corresponds to your BSP by adding :makevar:`ARCH=` and the options
|
||||||
you need to the make command, for example:
|
you need to the make command, for example:
|
||||||
|
@ -179,13 +179,13 @@ To build a Tiny Mountain example follow these steps:
|
||||||
:command:`make BSP=generic_pc ARCH=x86`
|
:command:`make BSP=generic_pc ARCH=x86`
|
||||||
|
|
||||||
The complete options available for the ARCH flag can be found at
|
The complete options available for the ARCH flag can be found at
|
||||||
:file:`$TIMO_BASE`, for example :file:`$TIMO_BASE/arch/x86`.
|
:file:`$ZEPHYR_BASE`, for example :file:`$ZEPHYR_BASE/arch/x86`.
|
||||||
|
|
||||||
The sample projects for the microkernel are found
|
The sample projects for the microkernel are found
|
||||||
at :file:`$TIMO_BASE/samples/microkernel/apps` and the results are at
|
at :file:`$ZEPHYR_BASE/samples/microkernel/apps` and the results are at
|
||||||
:file:`$SAMPLE_PROJECT/outdir/microkernel.{ bin | elf }`.
|
:file:`$SAMPLE_PROJECT/outdir/microkernel.{ bin | elf }`.
|
||||||
|
|
||||||
For sample projects in the :file:`$TIMO_BASE/samples/nanokernel/apps`
|
For sample projects in the :file:`$ZEPHYR_BASE/samples/nanokernel/apps`
|
||||||
directory, the results can be found at
|
directory, the results can be found at
|
||||||
:file:`$SAMPLE_PROJECT/outdir/nanokernel.{ bin | elf }`.
|
:file:`$SAMPLE_PROJECT/outdir/nanokernel.{ bin | elf }`.
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
# DESCRIPTION
|
# DESCRIPTION
|
||||||
# Makefile for the Bluetooth beacon sample
|
# Makefile for the Bluetooth beacon sample
|
||||||
|
|
||||||
include $(subst \,/,${TIMO_BASE})/make/env/defs.base
|
include $(subst \,/,${ZEPHYR_BASE})/make/env/defs.base
|
||||||
|
|
||||||
# default BSP
|
# default BSP
|
||||||
BSP ?= generic_pc
|
BSP ?= generic_pc
|
||||||
|
|
|
@ -2,20 +2,20 @@
|
||||||
|
|
||||||
# Import common sanity check definitions
|
# Import common sanity check definitions
|
||||||
#
|
#
|
||||||
if [ -z ${TIMO_BASE} ]; then
|
if [ -z ${ZEPHYR_BASE} ]; then
|
||||||
echo "shell variables required to build Zephyr OS are not set"
|
echo "shell variables required to build Zephyr OS are not set"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
if [ ! -d ${TIMO_BASE} ] ; then
|
if [ ! -d ${ZEPHYR_BASE} ] ; then
|
||||||
echo "directory ${TIMO_BASE} not found"
|
echo "directory ${ZEPHYR_BASE} not found"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
source ${TIMO_BASE}/scripts/sanity_chk/common.defs
|
source ${ZEPHYR_BASE}/scripts/sanity_chk/common.defs
|
||||||
|
|
||||||
# Location of master project directory
|
# Location of master project directory
|
||||||
#
|
#
|
||||||
PRJ_PATH=${TIMO_BASE}/samples
|
PRJ_PATH=${ZEPHYR_BASE}/samples
|
||||||
|
|
||||||
PRJ_LIST="\
|
PRJ_LIST="\
|
||||||
nanokernel/apps/bluetooth/init <n> pentium4 \n\
|
nanokernel/apps/bluetooth/init <n> pentium4 \n\
|
||||||
|
|
|
@ -38,4 +38,4 @@ KERNEL_TYPE = micro
|
||||||
CONF_FILE = prj_$(ARCH).conf
|
CONF_FILE = prj_$(ARCH).conf
|
||||||
QEMU_EXTRA_FLAGS = -serial unix:/tmp/bt-server-bredr
|
QEMU_EXTRA_FLAGS = -serial unix:/tmp/bt-server-bredr
|
||||||
|
|
||||||
include $(TIMO_BASE)/Makefile.inc
|
include $(ZEPHYR_BASE)/Makefile.inc
|
||||||
|
|
|
@ -4,4 +4,4 @@ KERNEL_TYPE = micro
|
||||||
CONF_FILE = prj_$(ARCH).conf
|
CONF_FILE = prj_$(ARCH).conf
|
||||||
QEMU_EXTRA_FLAGS = -serial unix:/tmp/bt-server-bredr
|
QEMU_EXTRA_FLAGS = -serial unix:/tmp/bt-server-bredr
|
||||||
|
|
||||||
include $(TIMO_BASE)/Makefile.inc
|
include $(ZEPHYR_BASE)/Makefile.inc
|
||||||
|
|
|
@ -4,4 +4,4 @@ KERNEL_TYPE = micro
|
||||||
CONF_FILE = prj_$(ARCH).conf
|
CONF_FILE = prj_$(ARCH).conf
|
||||||
QEMU_EXTRA_FLAGS = -serial unix:/tmp/bt-server-bredr
|
QEMU_EXTRA_FLAGS = -serial unix:/tmp/bt-server-bredr
|
||||||
|
|
||||||
include $(TIMO_BASE)/Makefile.inc
|
include $(ZEPHYR_BASE)/Makefile.inc
|
||||||
|
|
|
@ -38,7 +38,7 @@ KERNEL_TYPE = micro
|
||||||
CONF_FILE = prj_$(ARCH).conf
|
CONF_FILE = prj_$(ARCH).conf
|
||||||
QEMU_EXTRA_FLAGS = -serial unix:/tmp/bt-server-bredr
|
QEMU_EXTRA_FLAGS = -serial unix:/tmp/bt-server-bredr
|
||||||
|
|
||||||
PRJ_INCPATH += ${TIMO_BASE}/include/drivers
|
PRJ_INCPATH += ${ZEPHYR_BASE}/include/drivers
|
||||||
|
|
||||||
include $(TIMO_BASE)/Makefile.inc
|
include $(ZEPHYR_BASE)/Makefile.inc
|
||||||
# console handler
|
# console handler
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
# POSSIBILITY OF SUCH DAMAGE.
|
# POSSIBILITY OF SUCH DAMAGE.
|
||||||
#
|
#
|
||||||
|
|
||||||
include $(subst \,/,${TIMO_BASE})/make/env/defs.base
|
include $(subst \,/,${ZEPHYR_BASE})/make/env/defs.base
|
||||||
|
|
||||||
.PHONY: all clean
|
.PHONY: all clean
|
||||||
all:
|
all:
|
||||||
|
|
|
@ -3,4 +3,4 @@ MDEF_FILE = prj.mdef
|
||||||
KERNEL_TYPE = micro
|
KERNEL_TYPE = micro
|
||||||
CONF_FILE = prj_$(ARCH).conf
|
CONF_FILE = prj_$(ARCH).conf
|
||||||
|
|
||||||
include ${TIMO_BASE}/Makefile.inc
|
include ${ZEPHYR_BASE}/Makefile.inc
|
||||||
|
|
|
@ -3,4 +3,4 @@ MDEF_FILE = prj.mdef
|
||||||
KERNEL_TYPE = micro
|
KERNEL_TYPE = micro
|
||||||
CONF_FILE = prj_$(ARCH).conf
|
CONF_FILE = prj_$(ARCH).conf
|
||||||
|
|
||||||
include ${TIMO_BASE}/Makefile.inc
|
include ${ZEPHYR_BASE}/Makefile.inc
|
||||||
|
|
|
@ -5,4 +5,4 @@ MDEF_FILE = prj.mdef
|
||||||
KERNEL_TYPE = micro
|
KERNEL_TYPE = micro
|
||||||
CONF_FILE = prj_console_float_$(if $(filter $(BSP),$(PC8253_BSP_VARIANTS)),pc8253,generic).conf
|
CONF_FILE = prj_console_float_$(if $(filter $(BSP),$(PC8253_BSP_VARIANTS)),pc8253,generic).conf
|
||||||
|
|
||||||
include ${TIMO_BASE}/Makefile.inc
|
include ${ZEPHYR_BASE}/Makefile.inc
|
||||||
|
|
|
@ -22,4 +22,4 @@ $(if $(filter $(BSP)/prj.conf,$(CONF_FILE)),$(warning *** $(NO_QUALIFIED_PRJ_CON
|
||||||
|
|
||||||
$(info using CONF_FILE = $(CONF_FILE))
|
$(info using CONF_FILE = $(CONF_FILE))
|
||||||
|
|
||||||
include ${TIMO_BASE}/Makefile.inc
|
include ${ZEPHYR_BASE}/Makefile.inc
|
||||||
|
|
|
@ -7,7 +7,7 @@ KERNEL_TYPE = micro
|
||||||
CONF_FILE = prj_$(TEST)_$(ARCH).conf
|
CONF_FILE = prj_$(TEST)_$(ARCH).conf
|
||||||
CFLAGS += -DTEST_${TEST}
|
CFLAGS += -DTEST_${TEST}
|
||||||
|
|
||||||
include ${TIMO_BASE}/Makefile.inc
|
include ${ZEPHYR_BASE}/Makefile.inc
|
||||||
|
|
||||||
ifeq ($(ARCH),ARM)
|
ifeq ($(ARCH),ARM)
|
||||||
ifneq ($(TEST),min)
|
ifneq ($(TEST),min)
|
||||||
|
|
|
@ -5,4 +5,4 @@ MDEF_FILE = prj.mdef
|
||||||
KERNEL_TYPE = micro
|
KERNEL_TYPE = micro
|
||||||
CONF_FILE = prj_$(if $(filter $(BSP),$(PC8253_BSP_VARIANTS)),pc8253,generic).conf
|
CONF_FILE = prj_$(if $(filter $(BSP),$(PC8253_BSP_VARIANTS)),pc8253,generic).conf
|
||||||
|
|
||||||
include ${TIMO_BASE}/Makefile.inc
|
include ${ZEPHYR_BASE}/Makefile.inc
|
||||||
|
|
|
@ -4,6 +4,6 @@ BSP ?= generic_pc
|
||||||
MDEF_FILE = prj.mdef
|
MDEF_FILE = prj.mdef
|
||||||
KERNEL_TYPE = micro
|
KERNEL_TYPE = micro
|
||||||
CONF_FILE = prj_console_$(if $(filter $(BSP),$(PC8253_BSP_VARIANTS)),pc8253,generic).conf
|
CONF_FILE = prj_console_$(if $(filter $(BSP),$(PC8253_BSP_VARIANTS)),pc8253,generic).conf
|
||||||
SOURCE_DIR = $(TIMO_BASE)/samples/nanokernel/benchmark/sys_kernel/src/
|
SOURCE_DIR = $(ZEPHYR_BASE)/samples/nanokernel/benchmark/sys_kernel/src/
|
||||||
|
|
||||||
include ${TIMO_BASE}/Makefile.inc
|
include ${ZEPHYR_BASE}/Makefile.inc
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
|
|
||||||
BSP ?= generic_pc
|
BSP ?= generic_pc
|
||||||
|
|
||||||
include $(subst \,/,${TIMO_BASE})/make/env/defs.base
|
include $(subst \,/,${ZEPHYR_BASE})/make/env/defs.base
|
||||||
|
|
||||||
PRJ_SRCPATH = ${vBASE}/samples/microkernel/test/test_events/src
|
PRJ_SRCPATH = ${vBASE}/samples/microkernel/test/test_events/src
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
|
|
||||||
BSP ?= generic_pc
|
BSP ?= generic_pc
|
||||||
|
|
||||||
include $(subst \,/,${TIMO_BASE})/make/env/defs.base
|
include $(subst \,/,${ZEPHYR_BASE})/make/env/defs.base
|
||||||
|
|
||||||
PRJ_SRCPATH = ${vBASE}/samples/microkernel/test/test_sema/src
|
PRJ_SRCPATH = ${vBASE}/samples/microkernel/test/test_sema/src
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,6 @@ BSP ?= generic_pc
|
||||||
MDEF_FILE = prj.mdef
|
MDEF_FILE = prj.mdef
|
||||||
KERNEL_TYPE = micro
|
KERNEL_TYPE = micro
|
||||||
CONF_FILE = prj_$(ARCH).conf
|
CONF_FILE = prj_$(ARCH).conf
|
||||||
SOURCE_DIR = $(TIMO_BASE)/samples/bluetooth/test_bluetooth/
|
SOURCE_DIR = $(ZEPHYR_BASE)/samples/bluetooth/test_bluetooth/
|
||||||
|
|
||||||
include $(TIMO_BASE)/Makefile.inc
|
include $(ZEPHYR_BASE)/Makefile.inc
|
||||||
|
|
|
@ -3,4 +3,4 @@ MDEF_FILE = prj.mdef
|
||||||
KERNEL_TYPE = micro
|
KERNEL_TYPE = micro
|
||||||
CONF_FILE = prj_$(ARCH).conf
|
CONF_FILE = prj_$(ARCH).conf
|
||||||
|
|
||||||
include ${TIMO_BASE}/Makefile.inc
|
include ${ZEPHYR_BASE}/Makefile.inc
|
||||||
|
|
|
@ -3,4 +3,4 @@ MDEF_FILE = prj.mdef
|
||||||
KERNEL_TYPE = micro
|
KERNEL_TYPE = micro
|
||||||
CONF_FILE = prj_$(ARCH).conf
|
CONF_FILE = prj_$(ARCH).conf
|
||||||
|
|
||||||
include ${TIMO_BASE}/Makefile.inc
|
include ${ZEPHYR_BASE}/Makefile.inc
|
||||||
|
|
|
@ -3,4 +3,4 @@ MDEF_FILE = prj.mdef
|
||||||
KERNEL_TYPE = micro
|
KERNEL_TYPE = micro
|
||||||
CONF_FILE = prj_$(ARCH).conf
|
CONF_FILE = prj_$(ARCH).conf
|
||||||
|
|
||||||
include ${TIMO_BASE}/Makefile.inc
|
include ${ZEPHYR_BASE}/Makefile.inc
|
||||||
|
|
|
@ -3,4 +3,4 @@ MDEF_FILE = prj.mdef
|
||||||
KERNEL_TYPE = micro
|
KERNEL_TYPE = micro
|
||||||
CONF_FILE = prj_$(ARCH).conf
|
CONF_FILE = prj_$(ARCH).conf
|
||||||
|
|
||||||
include ${TIMO_BASE}/Makefile.inc
|
include ${ZEPHYR_BASE}/Makefile.inc
|
||||||
|
|
|
@ -3,4 +3,4 @@ MDEF_FILE = prj.mdef
|
||||||
KERNEL_TYPE = micro
|
KERNEL_TYPE = micro
|
||||||
CONF_FILE = prj_$(ARCH).conf
|
CONF_FILE = prj_$(ARCH).conf
|
||||||
|
|
||||||
include ${TIMO_BASE}/Makefile.inc
|
include ${ZEPHYR_BASE}/Makefile.inc
|
||||||
|
|
|
@ -3,4 +3,4 @@ MDEF_FILE = prj.mdef
|
||||||
KERNEL_TYPE = micro
|
KERNEL_TYPE = micro
|
||||||
CONF_FILE = prj_$(ARCH).conf
|
CONF_FILE = prj_$(ARCH).conf
|
||||||
|
|
||||||
include ${TIMO_BASE}/Makefile.inc
|
include ${ZEPHYR_BASE}/Makefile.inc
|
||||||
|
|
|
@ -3,4 +3,4 @@ MDEF_FILE = prj.mdef
|
||||||
KERNEL_TYPE = micro
|
KERNEL_TYPE = micro
|
||||||
CONF_FILE = prj_$(ARCH).conf
|
CONF_FILE = prj_$(ARCH).conf
|
||||||
|
|
||||||
include ${TIMO_BASE}/Makefile.inc
|
include ${ZEPHYR_BASE}/Makefile.inc
|
||||||
|
|
|
@ -3,4 +3,4 @@ MDEF_FILE = prj.mdef
|
||||||
KERNEL_TYPE = micro
|
KERNEL_TYPE = micro
|
||||||
CONF_FILE = prj_$(ARCH).conf
|
CONF_FILE = prj_$(ARCH).conf
|
||||||
|
|
||||||
include ${TIMO_BASE}/Makefile.inc
|
include ${ZEPHYR_BASE}/Makefile.inc
|
||||||
|
|
|
@ -3,4 +3,4 @@ MDEF_FILE = prj.mdef
|
||||||
KERNEL_TYPE = micro
|
KERNEL_TYPE = micro
|
||||||
CONF_FILE = prj_$(ARCH).conf
|
CONF_FILE = prj_$(ARCH).conf
|
||||||
|
|
||||||
include ${TIMO_BASE}/Makefile.inc
|
include ${ZEPHYR_BASE}/Makefile.inc
|
||||||
|
|
|
@ -3,4 +3,4 @@ MDEF_FILE = prj.mdef
|
||||||
KERNEL_TYPE = micro
|
KERNEL_TYPE = micro
|
||||||
CONF_FILE = prj_$(ARCH).conf
|
CONF_FILE = prj_$(ARCH).conf
|
||||||
|
|
||||||
include ${TIMO_BASE}/Makefile.inc
|
include ${ZEPHYR_BASE}/Makefile.inc
|
||||||
|
|
|
@ -33,4 +33,4 @@ MDEF_FILE = prj.mdef
|
||||||
KERNEL_TYPE = micro
|
KERNEL_TYPE = micro
|
||||||
CONF_FILE = prj.conf
|
CONF_FILE = prj.conf
|
||||||
|
|
||||||
include ${TIMO_BASE}/Makefile.inc
|
include ${ZEPHYR_BASE}/Makefile.inc
|
||||||
|
|
|
@ -3,4 +3,4 @@ MDEF_FILE = prj.mdef
|
||||||
KERNEL_TYPE = micro
|
KERNEL_TYPE = micro
|
||||||
CONF_FILE = prj_$(ARCH).conf
|
CONF_FILE = prj_$(ARCH).conf
|
||||||
|
|
||||||
include ${TIMO_BASE}/Makefile.inc
|
include ${ZEPHYR_BASE}/Makefile.inc
|
||||||
|
|
|
@ -3,4 +3,4 @@ MDEF_FILE = prj.mdef
|
||||||
KERNEL_TYPE = micro
|
KERNEL_TYPE = micro
|
||||||
CONF_FILE = prj_$(ARCH).conf
|
CONF_FILE = prj_$(ARCH).conf
|
||||||
|
|
||||||
include ${TIMO_BASE}/Makefile.inc
|
include ${ZEPHYR_BASE}/Makefile.inc
|
||||||
|
|
|
@ -3,4 +3,4 @@ MDEF_FILE = prj.mdef
|
||||||
KERNEL_TYPE = micro
|
KERNEL_TYPE = micro
|
||||||
CONF_FILE = prj_$(ARCH).conf
|
CONF_FILE = prj_$(ARCH).conf
|
||||||
|
|
||||||
include ${TIMO_BASE}/Makefile.inc
|
include ${ZEPHYR_BASE}/Makefile.inc
|
||||||
|
|
|
@ -3,4 +3,4 @@ MDEF_FILE = prj.mdef
|
||||||
KERNEL_TYPE = micro
|
KERNEL_TYPE = micro
|
||||||
CONF_FILE = prj_$(ARCH).conf
|
CONF_FILE = prj_$(ARCH).conf
|
||||||
|
|
||||||
include ${TIMO_BASE}/Makefile.inc
|
include ${ZEPHYR_BASE}/Makefile.inc
|
||||||
|
|
|
@ -3,4 +3,4 @@ MDEF_FILE = prj.mdef
|
||||||
KERNEL_TYPE = micro
|
KERNEL_TYPE = micro
|
||||||
CONF_FILE = prj_$(ARCH).conf
|
CONF_FILE = prj_$(ARCH).conf
|
||||||
|
|
||||||
include ${TIMO_BASE}/Makefile.inc
|
include ${ZEPHYR_BASE}/Makefile.inc
|
||||||
|
|
|
@ -3,4 +3,4 @@ MDEF_FILE = prj.mdef
|
||||||
KERNEL_TYPE = micro
|
KERNEL_TYPE = micro
|
||||||
CONF_FILE = prj_$(ARCH).conf
|
CONF_FILE = prj_$(ARCH).conf
|
||||||
|
|
||||||
include ${TIMO_BASE}/Makefile.inc
|
include ${ZEPHYR_BASE}/Makefile.inc
|
||||||
|
|
|
@ -3,4 +3,4 @@ MDEF_FILE = prj.mdef
|
||||||
KERNEL_TYPE = micro
|
KERNEL_TYPE = micro
|
||||||
CONF_FILE = prj_$(ARCH).conf
|
CONF_FILE = prj_$(ARCH).conf
|
||||||
|
|
||||||
include ${TIMO_BASE}/Makefile.inc
|
include ${ZEPHYR_BASE}/Makefile.inc
|
||||||
|
|
|
@ -3,4 +3,4 @@ MDEF_FILE = prj.mdef
|
||||||
KERNEL_TYPE = micro
|
KERNEL_TYPE = micro
|
||||||
CONF_FILE = prj_$(ARCH).conf
|
CONF_FILE = prj_$(ARCH).conf
|
||||||
|
|
||||||
include ${TIMO_BASE}/Makefile.inc
|
include ${ZEPHYR_BASE}/Makefile.inc
|
||||||
|
|
|
@ -3,4 +3,4 @@ MDEF_FILE = prj.mdef
|
||||||
KERNEL_TYPE = micro
|
KERNEL_TYPE = micro
|
||||||
CONF_FILE = prj.conf
|
CONF_FILE = prj.conf
|
||||||
|
|
||||||
include ${TIMO_BASE}/Makefile.inc
|
include ${ZEPHYR_BASE}/Makefile.inc
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
BSP ?= generic_pc
|
BSP ?= generic_pc
|
||||||
KERNEL_TYPE = nano
|
KERNEL_TYPE = nano
|
||||||
CONF_FILE = prj_$(ARCH).conf
|
CONF_FILE = prj_$(ARCH).conf
|
||||||
SOURCE_DIR = $(TIMO_BASE)/samples/bluetooth/init/src/
|
SOURCE_DIR = $(ZEPHYR_BASE)/samples/bluetooth/init/src/
|
||||||
QEMU_EXTRA_FLAGS = -serial unix:/tmp/bt-server-bredr
|
QEMU_EXTRA_FLAGS = -serial unix:/tmp/bt-server-bredr
|
||||||
|
|
||||||
include $(TIMO_BASE)/Makefile.inc
|
include $(ZEPHYR_BASE)/Makefile.inc
|
||||||
|
|
|
@ -36,6 +36,6 @@ BSP ?= generic_pc
|
||||||
KERNEL_TYPE = nano
|
KERNEL_TYPE = nano
|
||||||
CONF_FILE = prj_$(ARCH).conf
|
CONF_FILE = prj_$(ARCH).conf
|
||||||
QEMU_EXTRA_FLAGS = -serial unix:/tmp/bt-server-bredr
|
QEMU_EXTRA_FLAGS = -serial unix:/tmp/bt-server-bredr
|
||||||
SOURCE_DIR = $(TIMO_BASE)/samples/bluetooth/shell/src/
|
SOURCE_DIR = $(ZEPHYR_BASE)/samples/bluetooth/shell/src/
|
||||||
|
|
||||||
include $(TIMO_BASE)/Makefile.inc
|
include $(ZEPHYR_BASE)/Makefile.inc
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
BSP ?= generic_pc
|
BSP ?= generic_pc
|
||||||
KERNEL_TYPE = nano
|
KERNEL_TYPE = nano
|
||||||
SOURCE_DIR = $(TIMO_BASE)/samples/microkernel/apps/hello_world/src/
|
SOURCE_DIR = $(ZEPHYR_BASE)/samples/microkernel/apps/hello_world/src/
|
||||||
|
|
||||||
|
|
||||||
include ${TIMO_BASE}/Makefile.inc
|
include ${ZEPHYR_BASE}/Makefile.inc
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
BSP ?= generic_pc
|
BSP ?= generic_pc
|
||||||
KERNEL_TYPE = nano
|
KERNEL_TYPE = nano
|
||||||
SOURCE_DIR = $(TIMO_BASE)/samples/microkernel/apps/philosophers/src/
|
SOURCE_DIR = $(ZEPHYR_BASE)/samples/microkernel/apps/philosophers/src/
|
||||||
|
|
||||||
include ${TIMO_BASE}/Makefile.inc
|
include ${ZEPHYR_BASE}/Makefile.inc
|
||||||
|
|
|
@ -9,9 +9,9 @@ CONF_quark = quark/prj.conf
|
||||||
|
|
||||||
KERNEL_TYPE = nano
|
KERNEL_TYPE = nano
|
||||||
CONF_FILE = $(CONF_$(BSP))
|
CONF_FILE = $(CONF_$(BSP))
|
||||||
SOURCE_DIR = $(TIMO_BASE)/samples/microkernel/benchmark/boot_time/src/
|
SOURCE_DIR = $(ZEPHYR_BASE)/samples/microkernel/benchmark/boot_time/src/
|
||||||
|
|
||||||
include $(TIMO_BASE)/Makefile.inc
|
include $(ZEPHYR_BASE)/Makefile.inc
|
||||||
|
|
||||||
$(if $(CONF_FILE),,$(error no prj.conf file available))
|
$(if $(CONF_FILE),,$(error no prj.conf file available))
|
||||||
$(if $(wildcard $(CONF_FILE)),,$(error no $(CONF_FILE) file available))
|
$(if $(wildcard $(CONF_FILE)),,$(error no $(CONF_FILE) file available))
|
||||||
|
|
|
@ -6,7 +6,7 @@ KERNEL_TYPE = nano
|
||||||
CONF_FILE = prj_$(TEST)_$(ARCH).conf
|
CONF_FILE = prj_$(TEST)_$(ARCH).conf
|
||||||
CFLAGS += -DTEST_$(TEST)
|
CFLAGS += -DTEST_$(TEST)
|
||||||
|
|
||||||
include $(TIMO_BASE)/Makefile.inc
|
include $(ZEPHYR_BASE)/Makefile.inc
|
||||||
|
|
||||||
ifeq ($(ARCH),ARM)
|
ifeq ($(ARCH),ARM)
|
||||||
ifneq ($(TEST),min)
|
ifneq ($(TEST),min)
|
||||||
|
|
|
@ -3,6 +3,6 @@ PC8253_BSP_VARIANTS=generic_pc pentium4 minuteia
|
||||||
BSP ?= generic_pc
|
BSP ?= generic_pc
|
||||||
KERNEL_TYPE = nano
|
KERNEL_TYPE = nano
|
||||||
CONF_FILE = prj.conf
|
CONF_FILE = prj.conf
|
||||||
SOURCE_DIR = $(TIMO_BASE)/samples/microkernel/benchmark/latency_measure/src/
|
SOURCE_DIR = $(ZEPHYR_BASE)/samples/microkernel/benchmark/latency_measure/src/
|
||||||
|
|
||||||
include $(TIMO_BASE)/Makefile.inc
|
include $(ZEPHYR_BASE)/Makefile.inc
|
||||||
|
|
|
@ -2,4 +2,4 @@ BSP ?= generic_pc
|
||||||
KERNEL_TYPE = nano
|
KERNEL_TYPE = nano
|
||||||
CONF_FILE = prj_console.conf
|
CONF_FILE = prj_console.conf
|
||||||
|
|
||||||
include $(TIMO_BASE)/Makefile.inc
|
include $(ZEPHYR_BASE)/Makefile.inc
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
# POSSIBILITY OF SUCH DAMAGE.
|
# POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
include $(subst \,/,${TIMO_BASE})/make/env/defs.base
|
include $(subst \,/,${ZEPHYR_BASE})/make/env/defs.base
|
||||||
|
|
||||||
# default BSP
|
# default BSP
|
||||||
BSP ?= generic_pc
|
BSP ?= generic_pc
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
# POSSIBILITY OF SUCH DAMAGE.
|
# POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
include $(subst \,/,${TIMO_BASE})/make/env/defs.base
|
include $(subst \,/,${ZEPHYR_BASE})/make/env/defs.base
|
||||||
|
|
||||||
# default BSP
|
# default BSP
|
||||||
BSP ?= generic_pc
|
BSP ?= generic_pc
|
||||||
|
|
|
@ -2,4 +2,4 @@ BSP ?= ti_lm3s6965
|
||||||
KERNEL_TYPE = nano
|
KERNEL_TYPE = nano
|
||||||
CONF_FILE = prj.conf
|
CONF_FILE = prj.conf
|
||||||
|
|
||||||
include $(TIMO_BASE)/Makefile.inc
|
include $(ZEPHYR_BASE)/Makefile.inc
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
BSP ?= generic_pc
|
BSP ?= generic_pc
|
||||||
KERNEL_TYPE = nano
|
KERNEL_TYPE = nano
|
||||||
CONF_FILE = prj_$(ARCH).conf
|
CONF_FILE = prj_$(ARCH).conf
|
||||||
SOURCE_DIR = $(TIMO_BASE)/samples/bluetooth/test_bluetooth/
|
SOURCE_DIR = $(ZEPHYR_BASE)/samples/bluetooth/test_bluetooth/
|
||||||
|
|
||||||
include $(TIMO_BASE)/Makefile.inc
|
include $(ZEPHYR_BASE)/Makefile.inc
|
||||||
|
|
|
@ -2,4 +2,4 @@ BSP ?= generic_pc
|
||||||
KERNEL_TYPE = nano
|
KERNEL_TYPE = nano
|
||||||
CONF_FILE = prj_$(ARCH).conf
|
CONF_FILE = prj_$(ARCH).conf
|
||||||
|
|
||||||
include $(TIMO_BASE)/Makefile.inc
|
include $(ZEPHYR_BASE)/Makefile.inc
|
||||||
|
|
|
@ -2,4 +2,4 @@ BSP ?= generic_pc
|
||||||
KERNEL_TYPE = nano
|
KERNEL_TYPE = nano
|
||||||
CONF_FILE = prj_$(ARCH).conf
|
CONF_FILE = prj_$(ARCH).conf
|
||||||
|
|
||||||
include $(TIMO_BASE)/Makefile.inc
|
include $(ZEPHYR_BASE)/Makefile.inc
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
BSP ?= generic_pc
|
BSP ?= generic_pc
|
||||||
KERNEL_TYPE = nano
|
KERNEL_TYPE = nano
|
||||||
CONF_FILE = prj_$(ARCH).conf
|
CONF_FILE = prj_$(ARCH).conf
|
||||||
SOURCE_DIR = $(TIMO_BASE)/samples/microkernel/test/test_fp_sharing/src/
|
SOURCE_DIR = $(ZEPHYR_BASE)/samples/microkernel/test/test_fp_sharing/src/
|
||||||
|
|
||||||
include $(TIMO_BASE)/Makefile.inc
|
include $(ZEPHYR_BASE)/Makefile.inc
|
||||||
|
|
|
@ -2,4 +2,4 @@ BSP ?= generic_pc
|
||||||
KERNEL_TYPE = nano
|
KERNEL_TYPE = nano
|
||||||
CONF_FILE = prj_$(ARCH).conf
|
CONF_FILE = prj_$(ARCH).conf
|
||||||
|
|
||||||
include $(TIMO_BASE)/Makefile.inc
|
include $(ZEPHYR_BASE)/Makefile.inc
|
||||||
|
|
|
@ -2,4 +2,4 @@ BSP ?= generic_pc
|
||||||
KERNEL_TYPE = nano
|
KERNEL_TYPE = nano
|
||||||
CONF_FILE = prj_$(ARCH).conf
|
CONF_FILE = prj_$(ARCH).conf
|
||||||
|
|
||||||
include $(TIMO_BASE)/Makefile.inc
|
include $(ZEPHYR_BASE)/Makefile.inc
|
||||||
|
|
|
@ -2,4 +2,4 @@ BSP ?= generic_pc
|
||||||
KERNEL_TYPE = nano
|
KERNEL_TYPE = nano
|
||||||
CONF_FILE = prj_$(ARCH).conf
|
CONF_FILE = prj_$(ARCH).conf
|
||||||
|
|
||||||
include $(TIMO_BASE)/Makefile.inc
|
include $(ZEPHYR_BASE)/Makefile.inc
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
BSP ?= generic_pc
|
BSP ?= generic_pc
|
||||||
KERNEL_TYPE = nano
|
KERNEL_TYPE = nano
|
||||||
CONF_FILE = prj_$(ARCH).conf
|
CONF_FILE = prj_$(ARCH).conf
|
||||||
SOURCE_DIR = $(TIMO_BASE)/samples/microkernel/test/test_stackprot/src/
|
SOURCE_DIR = $(ZEPHYR_BASE)/samples/microkernel/test/test_stackprot/src/
|
||||||
|
|
||||||
include $(TIMO_BASE)/Makefile.inc
|
include $(ZEPHYR_BASE)/Makefile.inc
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
BSP ?= generic_pc
|
BSP ?= generic_pc
|
||||||
KERNEL_TYPE = nano
|
KERNEL_TYPE = nano
|
||||||
CONF_FILE = prj_$(ARCH).conf
|
CONF_FILE = prj_$(ARCH).conf
|
||||||
SOURCE_DIR = $(TIMO_BASE)/samples/microkernel/test/test_static_idt/src/
|
SOURCE_DIR = $(ZEPHYR_BASE)/samples/microkernel/test/test_static_idt/src/
|
||||||
|
|
||||||
include $(TIMO_BASE)/Makefile.inc
|
include $(ZEPHYR_BASE)/Makefile.inc
|
||||||
|
|
|
@ -2,4 +2,4 @@ BSP ?= generic_pc
|
||||||
KERNEL_TYPE = nano
|
KERNEL_TYPE = nano
|
||||||
CONF_FILE = prj_$(ARCH).conf
|
CONF_FILE = prj_$(ARCH).conf
|
||||||
|
|
||||||
include $(TIMO_BASE)/Makefile.inc
|
include $(ZEPHYR_BASE)/Makefile.inc
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
BSP ?= generic_pc
|
BSP ?= generic_pc
|
||||||
KERNEL_TYPE = nano
|
KERNEL_TYPE = nano
|
||||||
CONF_FILE = prj_$(ARCH).conf
|
CONF_FILE = prj_$(ARCH).conf
|
||||||
SOURCE_DIR = $(TIMO_BASE)/samples/microkernel/test/test_xip/src/
|
SOURCE_DIR = $(ZEPHYR_BASE)/samples/microkernel/test/test_xip/src/
|
||||||
|
|
||||||
include $(TIMO_BASE)/Makefile.inc
|
include $(ZEPHYR_BASE)/Makefile.inc
|
||||||
|
|
|
@ -139,14 +139,14 @@ __a_flags = $(call flags,_a_flags)
|
||||||
__cpp_flags = $(call flags,_cpp_flags)
|
__cpp_flags = $(call flags,_cpp_flags)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
c_flags = -Wp,-MD,$(depfile) $(NOSTDINC_FLAGS) $(TIMOINCLUDE) \
|
c_flags = -Wp,-MD,$(depfile) $(NOSTDINC_FLAGS) $(ZEPHYRINCLUDE) \
|
||||||
$(__c_flags) $(modkern_cflags) \
|
$(__c_flags) $(modkern_cflags) \
|
||||||
-D"KBUILD_STR(s)=\#s" $(basename_flags) $(modname_flags)
|
-D"KBUILD_STR(s)=\#s" $(basename_flags) $(modname_flags)
|
||||||
|
|
||||||
a_flags = -Wp,-MD,$(depfile) $(NOSTDINC_FLAGS) $(TIMOINCLUDE) \
|
a_flags = -Wp,-MD,$(depfile) $(NOSTDINC_FLAGS) $(ZEPHYRINCLUDE) \
|
||||||
$(__a_flags) $(modkern_aflags)
|
$(__a_flags) $(modkern_aflags)
|
||||||
|
|
||||||
cpp_flags = -Wp,-MD,$(depfile) $(NOSTDINC_FLAGS) $(TIMOINCLUDE) \
|
cpp_flags = -Wp,-MD,$(depfile) $(NOSTDINC_FLAGS) $(ZEPHYRINCLUDE) \
|
||||||
$(__cpp_flags)
|
$(__cpp_flags)
|
||||||
|
|
||||||
ld_flags = $(LDFLAGS) $(ldflags-y)
|
ld_flags = $(LDFLAGS) $(ldflags-y)
|
||||||
|
|
|
@ -39,8 +39,8 @@
|
||||||
|
|
||||||
exe_name=$(basename $0)
|
exe_name=$(basename $0)
|
||||||
|
|
||||||
do_checkpatch_bin=${TIMO_BASE}/scripts/do_checkpatch.sh
|
do_checkpatch_bin=${ZEPHYR_BASE}/scripts/do_checkpatch.sh
|
||||||
timestamp_bin=${TIMO_BASE}/scripts/timestamp
|
timestamp_bin=${ZEPHYR_BASE}/scripts/timestamp
|
||||||
|
|
||||||
declare update=n
|
declare update=n
|
||||||
declare quiet=n
|
declare quiet=n
|
||||||
|
@ -89,7 +89,7 @@ uid=$(id -u)
|
||||||
pid=$$
|
pid=$$
|
||||||
suffix=${uid}-${pid}-${ts}
|
suffix=${uid}-${pid}-${ts}
|
||||||
checkpatch_results=/tmp/checkpatch.results-${suffix}
|
checkpatch_results=/tmp/checkpatch.results-${suffix}
|
||||||
known_checkpatch_issues=${TIMO_BASE}/scripts/known_checkpatch_issues
|
known_checkpatch_issues=${ZEPHYR_BASE}/scripts/known_checkpatch_issues
|
||||||
checkpatch_issues=/tmp/checkpatch_issues-${suffix}
|
checkpatch_issues=/tmp/checkpatch_issues-${suffix}
|
||||||
git_log_params="\
|
git_log_params="\
|
||||||
--abbrev=8 \
|
--abbrev=8 \
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
dirs_to_check="arch drivers include kernel lib"
|
dirs_to_check="arch drivers include kernel lib"
|
||||||
files=$(for d in ${dirs_to_check}; do find $d/ -type f -name '*.[ch]'; done)
|
files=$(for d in ${dirs_to_check}; do find $d/ -type f -name '*.[ch]'; done)
|
||||||
for i in $files; do
|
for i in $files; do
|
||||||
${TIMO_BASE}/scripts/checkpatch.pl --mailback --no-tree -f --emacs --summary-file --show-types --ignore BRACES,PRINTK_WITHOUT_KERN_LEVEL,SPLIT_STRING --max-line-length=100 $i >> $1
|
${ZEPHYR_BASE}/scripts/checkpatch.pl --mailback --no-tree -f --emacs --summary-file --show-types --ignore BRACES,PRINTK_WITHOUT_KERN_LEVEL,SPLIT_STRING --max-line-length=100 $i >> $1
|
||||||
done
|
done
|
||||||
grep ERROR: $1 |cut -d : -f 3,4 |sort -u > $1_error.types
|
grep ERROR: $1 |cut -d : -f 3,4 |sort -u > $1_error.types
|
||||||
grep WARNING: $1 |cut -d : -f 3,4 |sort -u > $1_warning.types
|
grep WARNING: $1 |cut -d : -f 3,4 |sort -u > $1_warning.types
|
||||||
|
|
|
@ -2,18 +2,18 @@
|
||||||
#
|
#
|
||||||
# link tinymountain
|
# link tinymountain
|
||||||
#
|
#
|
||||||
# tinymountain is linked from the objects selected by $(KBUILD_TIMO_INIT) and
|
# zephyr is linked from the objects selected by $(KBUILD_ZEPHYR_INIT) and
|
||||||
# $(KBUILD_TIMO_MAIN). Most are built-in.o files from top-level directories
|
# $(KBUILD_ZEPHYR_MAIN). Most are built-in.o files from top-level directories
|
||||||
# in the kernel tree, others are specified in arch/$(ARCH)/Makefile.
|
# in the kernel tree, others are specified in arch/$(ARCH)/Makefile.
|
||||||
# Ordering when linking is important, and $(KBUILD_TIMO_INIT) must be first.
|
# Ordering when linking is important, and $(KBUILD_ZEPHYR_INIT) must be first.
|
||||||
#
|
#
|
||||||
# tinymountain
|
# tinymountain
|
||||||
# ^
|
# ^
|
||||||
# |
|
# |
|
||||||
# +-< $(KBUILD_TIMO_INIT)
|
# +-< $(KBUILD_ZEPHYR_INIT)
|
||||||
# | +--< init/version.o + more
|
# | +--< init/version.o + more
|
||||||
# |
|
# |
|
||||||
# +--< $(KBUILD_TIMO_MAIN)
|
# +--< $(KBUILD_ZEPHYR_MAIN)
|
||||||
# | +--< drivers/built-in.o mm/built-in.o + more
|
# | +--< drivers/built-in.o mm/built-in.o + more
|
||||||
# |
|
# |
|
||||||
# +-< ${kallsymso} (see description in KALLSYMS section)
|
# +-< ${kallsymso} (see description in KALLSYMS section)
|
||||||
|
@ -49,7 +49,7 @@ linker_params()
|
||||||
echo "-L ${objtree}/include/generated" >> ${1}
|
echo "-L ${objtree}/include/generated" >> ${1}
|
||||||
echo "-u _OffsetAbsSyms -u _ConfigAbsSyms" >> ${1}
|
echo "-u _OffsetAbsSyms -u _ConfigAbsSyms" >> ${1}
|
||||||
echo "-e __start" >> ${1}
|
echo "-e __start" >> ${1}
|
||||||
echo "--start-group ${KBUILD_TIMO_MAIN}" >> ${1}
|
echo "--start-group ${KBUILD_ZEPHYR_MAIN}" >> ${1}
|
||||||
echo "${objtree}/include/generated/offsets.o" >> ${1}
|
echo "${objtree}/include/generated/offsets.o" >> ${1}
|
||||||
echo "--end-group" >> ${1}
|
echo "--end-group" >> ${1}
|
||||||
echo "${LIB_INCLUDE_DIR} ${LIBS}" >> ${1}
|
echo "${LIB_INCLUDE_DIR} ${LIBS}" >> ${1}
|
||||||
|
@ -133,7 +133,7 @@ kallsyms()
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local aflags="${KBUILD_AFLAGS} ${KBUILD_AFLAGS_KERNEL} \
|
local aflags="${KBUILD_AFLAGS} ${KBUILD_AFLAGS_KERNEL} \
|
||||||
${NOSTDINC_FLAGS} ${TIMOINCLUDE} ${KBUILD_CPPFLAGS}"
|
${NOSTDINC_FLAGS} ${ZEPHYRINCLUDE} ${KBUILD_CPPFLAGS}"
|
||||||
|
|
||||||
${NM} -n ${1} | \
|
${NM} -n ${1} | \
|
||||||
scripts/kallsyms ${kallsymopt} | \
|
scripts/kallsyms ${kallsymopt} | \
|
||||||
|
|
|
@ -48,9 +48,9 @@ checkpatch_switches="\
|
||||||
"
|
"
|
||||||
ignore_list=BRACES,PRINTK_WITHOUT_KERN_LEVEL,SPLIT_STRING,FILE_PATH_CHANGES
|
ignore_list=BRACES,PRINTK_WITHOUT_KERN_LEVEL,SPLIT_STRING,FILE_PATH_CHANGES
|
||||||
|
|
||||||
timestamp_bin=${TIMO_BASE}/scripts/timestamp
|
timestamp_bin=${ZEPHYR_BASE}/scripts/timestamp
|
||||||
timestamp="${timestamp_bin} -u"
|
timestamp="${timestamp_bin} -u"
|
||||||
checkpatch_bin=${TIMO_BASE}/scripts/checkpatch.pl
|
checkpatch_bin=${ZEPHYR_BASE}/scripts/checkpatch.pl
|
||||||
checkpatch="${checkpatch_bin} ${checkpatch_switches} --ignore ${ignore_list}"
|
checkpatch="${checkpatch_bin} ${checkpatch_switches} --ignore ${ignore_list}"
|
||||||
|
|
||||||
ts=$(${timestamp})
|
ts=$(${timestamp})
|
||||||
|
|
|
@ -33,20 +33,20 @@
|
||||||
|
|
||||||
# Import common sanity check definitions
|
# Import common sanity check definitions
|
||||||
#
|
#
|
||||||
if [ -z ${TIMO_BASE} ]; then
|
if [ -z ${ZEPHYR_BASE} ]; then
|
||||||
echo "shell variables required to build Zephyr OS are not set"
|
echo "shell variables required to build Zephyr OS are not set"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
if [ ! -d ${TIMO_BASE} ] ; then
|
if [ ! -d ${ZEPHYR_BASE} ] ; then
|
||||||
echo "directory ${TIMO_BASE} not found"
|
echo "directory ${ZEPHYR_BASE} not found"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
source ${TIMO_BASE}/scripts/sanity_chk/common.defs
|
source ${ZEPHYR_BASE}/scripts/sanity_chk/common.defs
|
||||||
|
|
||||||
# Location of master project directory
|
# Location of master project directory
|
||||||
#
|
#
|
||||||
PRJ_PATH=${TIMO_BASE}/samples
|
PRJ_PATH=${ZEPHYR_BASE}/samples
|
||||||
KLIBS_PRJ_PATH=${TIMO_BASE}/samples
|
KLIBS_PRJ_PATH=${ZEPHYR_BASE}/samples
|
||||||
TEST_PRJ_PATH=./
|
TEST_PRJ_PATH=./
|
||||||
|
|
||||||
# Pseudo-file describing sample projects to be sanitized
|
# Pseudo-file describing sample projects to be sanitized
|
||||||
|
|
|
@ -60,12 +60,12 @@ KEEP_LOGS=0
|
||||||
SANITY_CHK_LOG="sanity_chk.log"
|
SANITY_CHK_LOG="sanity_chk.log"
|
||||||
|
|
||||||
# directory containing code coverage results
|
# directory containing code coverage results
|
||||||
CC_DIR=${TIMO_BASE}/codecoverage/`${BASENAME} $0`/
|
CC_DIR=${ZEPHYR_BASE}/codecoverage/`${BASENAME} $0`/
|
||||||
HTML_CC_DIR=${TIMO_BASE}/codecoverage_html/`${BASENAME} $0`/
|
HTML_CC_DIR=${ZEPHYR_BASE}/codecoverage_html/`${BASENAME} $0`/
|
||||||
|
|
||||||
# temporary files used when selecting projects to be sanitized
|
# temporary files used when selecting projects to be sanitized
|
||||||
TEMP_AWK_PROG="${TIMO_BASE}/.tempawkprog"
|
TEMP_AWK_PROG="${ZEPHYR_BASE}/.tempawkprog"
|
||||||
TEMP_PRJ_LIST="${TIMO_BASE}/.tempprojlist"
|
TEMP_PRJ_LIST="${ZEPHYR_BASE}/.tempprojlist"
|
||||||
|
|
||||||
# maximum time (in seconds) to allow QEMU to execute a project
|
# maximum time (in seconds) to allow QEMU to execute a project
|
||||||
QEMU_TIME_LIMIT=300
|
QEMU_TIME_LIMIT=300
|
||||||
|
|
|
@ -33,22 +33,22 @@
|
||||||
|
|
||||||
# Import common sanity check definitions
|
# Import common sanity check definitions
|
||||||
#
|
#
|
||||||
if [ -z ${TIMO_BASE} ]; then
|
if [ -z ${ZEPHYR_BASE} ]; then
|
||||||
echo "shell variables required to build Zephyr OS are not set"
|
echo "shell variables required to build Zephyr OS are not set"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
if [ ! -d ${TIMO_BASE} ] ; then
|
if [ ! -d ${ZEPHYR_BASE} ] ; then
|
||||||
echo "directory ${TIMO_BASE} not found"
|
echo "directory ${ZEPHYR_BASE} not found"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
source ${TIMO_BASE}/scripts/sanity_chk/common.defs
|
source ${ZEPHYR_BASE}/scripts/sanity_chk/common.defs
|
||||||
|
|
||||||
# Additional commands used in script
|
# Additional commands used in script
|
||||||
SIZE="${TIMO_BASE}/scripts/truesize"
|
SIZE="${ZEPHYR_BASE}/scripts/truesize"
|
||||||
|
|
||||||
# Location of master project directory
|
# Location of master project directory
|
||||||
#
|
#
|
||||||
PRJ_PATH=${TIMO_BASE}/samples
|
PRJ_PATH=${ZEPHYR_BASE}/samples
|
||||||
|
|
||||||
# Pseudo-file describing sample projects to be characterized
|
# Pseudo-file describing sample projects to be characterized
|
||||||
#
|
#
|
||||||
|
|
|
@ -36,18 +36,18 @@ exit 0
|
||||||
|
|
||||||
# Import common sanity check definitions
|
# Import common sanity check definitions
|
||||||
#
|
#
|
||||||
if [ -z ${TIMO_BASE} ]; then
|
if [ -z ${ZEPHYR_BASE} ]; then
|
||||||
echo "shell variables required to build Zephyr OS are not set"
|
echo "shell variables required to build Zephyr OS are not set"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
if [ ! -d ${TIMO_BASE} ] ; then
|
if [ ! -d ${ZEPHYR_BASE} ] ; then
|
||||||
echo "directory ${TIMO_BASE} not found"
|
echo "directory ${ZEPHYR_BASE} not found"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
source ${TIMO_BASE}/scripts/sanity_chk/common.defs
|
source ${ZEPHYR_BASE}/scripts/sanity_chk/common.defs
|
||||||
|
|
||||||
# Out of tree location
|
# Out of tree location
|
||||||
OUT_OF_TREE_BASE_REL=${TIMO_BASE}/../$(basename ${TIMO_BASE})-sanity
|
OUT_OF_TREE_BASE_REL=${ZEPHYR_BASE}/../$(basename ${ZEPHYR_BASE})-sanity
|
||||||
OUT_OF_TREE_BASE=$(${ABS_PATH} ${OUT_OF_TREE_BASE_REL})
|
OUT_OF_TREE_BASE=$(${ABS_PATH} ${OUT_OF_TREE_BASE_REL})
|
||||||
|
|
||||||
# Location of master project directory
|
# Location of master project directory
|
||||||
|
@ -132,8 +132,8 @@ possible; if desired the script can be instructed to skip the QEMU execution
|
||||||
step.
|
step.
|
||||||
|
|
||||||
BSPs and samples are copied to:
|
BSPs and samples are copied to:
|
||||||
TIMO_BASE/../sanity/bsp
|
ZEPHYR_BASE/../sanity/bsp
|
||||||
TIMO_BASE/../sanity/samples
|
ZEPHYR_BASE/../sanity/samples
|
||||||
|
|
||||||
The script returns 0 on success. If an error is encountered at any point
|
The script returns 0 on success. If an error is encountered at any point
|
||||||
the script returns the exit value of the command that failed, the function
|
the script returns the exit value of the command that failed, the function
|
||||||
|
@ -246,13 +246,13 @@ main() {
|
||||||
${MKDIR} -p ${OUT_OF_TREE_BASE}
|
${MKDIR} -p ${OUT_OF_TREE_BASE}
|
||||||
|
|
||||||
# copy the BSPs
|
# copy the BSPs
|
||||||
${CP} -r ${TIMO_BASE}/target/bsp ${OUT_OF_TREE_BASE}
|
${CP} -r ${ZEPHYR_BASE}/target/bsp ${OUT_OF_TREE_BASE}
|
||||||
[ $? -eq 0 ] || fail_exit $? $FUNCNAME $LINENO
|
[ $? -eq 0 ] || fail_exit $? $FUNCNAME $LINENO
|
||||||
|
|
||||||
# copy the samples/include directory used by certain projects
|
# copy the samples/include directory used by certain projects
|
||||||
${MKDIR} -p ${PRJ_PATH}
|
${MKDIR} -p ${PRJ_PATH}
|
||||||
[ $? -eq 0 ] || fail_exit $? $FUNCNAME $LINENO
|
[ $? -eq 0 ] || fail_exit $? $FUNCNAME $LINENO
|
||||||
${CP} -r ${TIMO_BASE}/samples/include ${PRJ_PATH}
|
${CP} -r ${ZEPHYR_BASE}/samples/include ${PRJ_PATH}
|
||||||
[ $? -eq 0 ] || fail_exit $? $FUNCNAME $LINENO
|
[ $? -eq 0 ] || fail_exit $? $FUNCNAME $LINENO
|
||||||
|
|
||||||
# build (and optionally execute) projects
|
# build (and optionally execute) projects
|
||||||
|
@ -271,7 +271,7 @@ main() {
|
||||||
${MKDIR} -p ${PRJ_PATH}/${PRJ_NAME[${cur_proj}]}
|
${MKDIR} -p ${PRJ_PATH}/${PRJ_NAME[${cur_proj}]}
|
||||||
[ $? -eq 0 ] || fail_exit $? $FUNCNAME $LINENO
|
[ $? -eq 0 ] || fail_exit $? $FUNCNAME $LINENO
|
||||||
|
|
||||||
${CP} -r ${TIMO_BASE}/samples/${PRJ_NAME[${cur_proj}]}/* ${PRJ_PATH}/${PRJ_NAME[${cur_proj}]}
|
${CP} -r ${ZEPHYR_BASE}/samples/${PRJ_NAME[${cur_proj}]}/* ${PRJ_PATH}/${PRJ_NAME[${cur_proj}]}
|
||||||
[ $? -eq 0 ] || fail_exit $? $FUNCNAME $LINENO
|
[ $? -eq 0 ] || fail_exit $? $FUNCNAME $LINENO
|
||||||
|
|
||||||
# build project
|
# build project
|
||||||
|
|
|
@ -33,19 +33,19 @@
|
||||||
|
|
||||||
# Import common sanity check definitions
|
# Import common sanity check definitions
|
||||||
#
|
#
|
||||||
if [ -z ${TIMO_BASE} ]; then
|
if [ -z ${ZEPHYR_BASE} ]; then
|
||||||
echo "shell variables required to build Zephyr OS are not set"
|
echo "shell variables required to build Zephyr OS are not set"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
if [ ! -d ${TIMO_BASE} ] ; then
|
if [ ! -d ${ZEPHYR_BASE} ] ; then
|
||||||
echo "directory ${TIMO_BASE} not found"
|
echo "directory ${ZEPHYR_BASE} not found"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
source ${TIMO_BASE}/scripts/sanity_chk/common.defs
|
source ${ZEPHYR_BASE}/scripts/sanity_chk/common.defs
|
||||||
|
|
||||||
# Location of master project directory
|
# Location of master project directory
|
||||||
#
|
#
|
||||||
PRJ_PATH=${TIMO_BASE}/samples
|
PRJ_PATH=${ZEPHYR_BASE}/samples
|
||||||
|
|
||||||
# Pseudo-file describing sample projects to be sanitized
|
# Pseudo-file describing sample projects to be sanitized
|
||||||
#
|
#
|
||||||
|
|
|
@ -33,20 +33,20 @@
|
||||||
|
|
||||||
# Import common sanity check definitions
|
# Import common sanity check definitions
|
||||||
#
|
#
|
||||||
if [ -z ${TIMO_BASE} ]; then
|
if [ -z ${ZEPHYR_BASE} ]; then
|
||||||
echo "shell variables required to build Zephyr OS are not set"
|
echo "shell variables required to build Zephyr OS are not set"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
if [ ! -d ${TIMO_BASE} ] ; then
|
if [ ! -d ${ZEPHYR_BASE} ] ; then
|
||||||
echo "directory ${TIMO_BASE} not found"
|
echo "directory ${ZEPHYR_BASE} not found"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
source ${TIMO_BASE}/scripts/sanity_chk/common.defs
|
source ${ZEPHYR_BASE}/scripts/sanity_chk/common.defs
|
||||||
|
|
||||||
# Symbols used in this script only
|
# Symbols used in this script only
|
||||||
#
|
#
|
||||||
SCRIPT_PATH=${TIMO_BASE}/scripts/sanity_chk
|
SCRIPT_PATH=${ZEPHYR_BASE}/scripts/sanity_chk
|
||||||
HOST_TOOLS_SRC_PATH=${TIMO_BASE}/host/src
|
HOST_TOOLS_SRC_PATH=${ZEPHYR_BASE}/host/src
|
||||||
|
|
||||||
# print script usage
|
# print script usage
|
||||||
#
|
#
|
||||||
|
|
|
@ -1052,7 +1052,7 @@ def kernel_main_h_generate():
|
||||||
subprocess.check_call([
|
subprocess.check_call([
|
||||||
"cp",
|
"cp",
|
||||||
"-f",
|
"-f",
|
||||||
os.environ["TIMO_BASE"] +
|
os.environ["ZEPHYR_BASE"] +
|
||||||
"/kernel/microkernel/include/kernel_main.h",
|
"/kernel/microkernel/include/kernel_main.h",
|
||||||
output_dir])
|
output_dir])
|
||||||
|
|
||||||
|
@ -1070,7 +1070,7 @@ def kernel_struct_h_generate():
|
||||||
subprocess.check_call([
|
subprocess.check_call([
|
||||||
"cp",
|
"cp",
|
||||||
"-f",
|
"-f",
|
||||||
os.environ["TIMO_BASE"] +
|
os.environ["ZEPHYR_BASE"] +
|
||||||
"/kernel/microkernel/include/kernel_struct.h",
|
"/kernel/microkernel/include/kernel_struct.h",
|
||||||
output_dir])
|
output_dir])
|
||||||
|
|
||||||
|
|
|
@ -9,9 +9,9 @@ fi
|
||||||
# run (if it exists) by this script.
|
# run (if it exists) by this script.
|
||||||
|
|
||||||
# identify OS source tree root directory
|
# identify OS source tree root directory
|
||||||
export TIMO_BASE=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
export ZEPHYR_BASE=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
||||||
|
|
||||||
scripts_path=${TIMO_BASE}/scripts
|
scripts_path=${ZEPHYR_BASE}/scripts
|
||||||
echo "${PATH}" | grep -q "${scripts_path}"
|
echo "${PATH}" | grep -q "${scripts_path}"
|
||||||
[ $? != 0 ] && export PATH=${scripts_path}:${PATH}
|
[ $? != 0 ] && export PATH=${scripts_path}:${PATH}
|
||||||
unset scripts_path
|
unset scripts_path
|
||||||
|
|
Loading…
Reference in a new issue