Skip to content

Commit

Permalink
Merged OSAL 4.1 files (developed outsid of git)
Browse files Browse the repository at this point in the history
  • Loading branch information
alanc-gsfc committed Feb 7, 2014
1 parent 8d0dbec commit 00b08cd
Show file tree
Hide file tree
Showing 101 changed files with 20,595 additions and 0 deletions.
33 changes: 33 additions & 0 deletions build/unit-tests/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
all:
make -C oscore-test
make -C osloader-test
make -C osloader-test -f Modules.mak
make -C osfilesys-test
make -C osfile-test
make -C osnetwork-test
make -C ostimer-test

clean:
make -C oscore-test clean
make -C osloader-test clean
make -C osloader-test -f Modules.mak clean
make -C osfilesys-test clean
make -C osfile-test clean
make -C osnetwork-test clean
make -C ostimer-test clean

depend:
make -C oscore-test depend
make -C osloader-test depend
make -C osfilesys-test depend
make -C osfile-test depend
make -C osnetwork-test depend
make -C ostimer-test depend

gcov:
make -C oscore-test gcov
make -C ostimer-test gcov
make -C osfilesys-test gcov
make -C osfile-test gcov
make -C osloader-test gcov
make -C osnetwork-test gcov
107 changes: 107 additions & 0 deletions build/unit-tests/oscore-test/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
###############################################################################
# File: OSAL Application Makefile
#
#
# History:
#
###############################################################################
#
# Subsystem produced by this makefile.
#
APPTARGET = oscore-test

#
# Unit test object files
#
OBJS = ut_oscore_test.o ut_oscore_task_test.o ut_oscore_binsem_test.o ut_oscore_mutex_test.o \
ut_oscore_countsem_test.o ut_oscore_queue_test.o ut_oscore_misc_test.o

#
# Core object files
#
OBJS += osapi.o osfileapi.o osfilesys.o osloader.o osnetwork.o ostimer.o

#
# BSP Object files
#
OBJS += bsp_start.o bsp_voltab.o

#
# Unit test shared object files
#
OBJS += ut_os_stubs.o

#
# Source files required to build subsystem; used to generate dependencies.
# As long as there are no assembly files this can be automated.
#
SOURCES = $(OBJS:.o=.c)

##
## Specify extra C Flags needed to build this subsystem
##
LOCAL_COPTS =

##
## EXEDIR is defined here, just in case it needs to be different for a custom
## build
##
EXEDIR=./

########################################################################
# Should not have to change below this line, except for customized
# directory structures
########################################################################
#
# no core objects, since all objs for unit tests are built in this directory
#
CORE_OBJS =

##
## Include all necessary make rules
## Any of these can be copied to a local file and
## changed if needed.
##
##
## osal-config.mak contians arch, BSP, and OS selection
##
include ../../osal-config.mak
##
## debug-opts.mak contains debug switches
##
include ../../debug-opts.mak
##
## compiler-opts.mak contains compiler definitions and switches/defines
##
include $(OSAL_SRC)/bsp/$(BSP)/make/compiler-opts.mak

##
## Setup the include path for this subsystem
## The OS specific includes are in the build-rules.make file
##
## If this subsystem needs include files from another app, add the path here.
##
INCLUDE_PATH = \
-I$(OSAL_SRC)/inc \
-I$(OSAL_SRC)/os/inc \
-I$(OSAL_SRC)/unit-tests/shared \
-I$(OSAL_SRC)/unit-tests/$(APPTARGET) \
-I../../inc

##
## Define the VPATH make variable.
## This can be modified to include source from another directory.
## If there is no corresponding app in the apps directory, then this can be discarded, or
## if the mission chooses to put the src in another directory such as "src", then that can be
## added here as well.
##
VPATH = $(OSAL_SRC)/unit-tests/$(APPTARGET)
VPATH += $(OSAL_SRC)/unit-tests/shared
VPATH += $(OSAL_SRC)/os/$(OS)
VPATH += $(OSAL_SRC)/bsp/$(BSP)/src

##
## Include the common make rules for building an OSAL Application
##
include $(OSAL_SRC)/make/app-rules.mak

107 changes: 107 additions & 0 deletions build/unit-tests/osfile-test/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
###############################################################################
# File: OSAL Application Makefile
#
#
# History:
#
###############################################################################
#
# Subsystem produced by this makefile.
#
APPTARGET = osfile-test

#
# Object files required to build subsystem.
#
OBJS = ut_osfile_dirio_test.o ut_osfile_fileio_test.o ut_osfile_test.o

#
# Core object files
#
OBJS += osapi.o osfileapi.o osfilesys.o osloader.o osnetwork.o ostimer.o

#
# BSP Object files
#
OBJS += bsp_start.o bsp_voltab.o

#
# Unit test shared object files
#
OBJS += ut_os_stubs.o

#
# Source files required to build subsystem; used to generate dependencies.
# As long as there are no assembly files this can be automated.
#
SOURCES = $(OBJS:.o=.c)

##
## Specify extra C Flags needed to build this subsystem
##
LOCAL_COPTS =


##
## EXEDIR is defined here, just in case it needs to be different for a custom
## build
##
EXEDIR=./

########################################################################
# Should not have to change below this line, except for customized
# directory structures
########################################################################

CORE_OBJS =

##
## Include all necessary make rules
## Any of these can be copied to a local file and
## changed if needed.
##
##
## osal-config.mak contians arch, BSP, and OS selection
##
include ../../osal-config.mak
##
## debug-opts.mak contains debug switches
##
include ../../debug-opts.mak
##
## compiler-opts.mak contains compiler definitions and switches/defines
##
include $(OSAL_SRC)/bsp/$(BSP)/make/compiler-opts.mak

##
## Setup the include path for this subsystem
## The OS specific includes are in the build-rules.make file
##
## If this subsystem needs include files from another app, add the path here.
##
INCLUDE_PATH = \
-I$(OSAL_SRC)/inc \
-I$(OSAL_SRC)/os/inc \
-I$(OSAL_SRC)/unit-tests/shared \
-I$(OSAL_SRC)/unit-tests/$(APPTARGET) \
-I../../inc

##
## Define the VPATH make variable.
## This can be modified to include source from another directory.
## If there is no corresponding app in the apps directory, then this can be discarded, or
## if the mission chooses to put the src in another directory such as "src", then that can be
## added here as well.
##
VPATH = $(OSAL_SRC)/unit-tests/$(APPTARGET)
VPATH += $(OSAL_SRC)/unit-tests/shared
VPATH += $(OSAL_SRC)/os/$(OS)
VPATH += $(OSAL_SRC)/bsp/$(BSP)/src


##
## Include the common make rules for building an OSAL Application
##
include $(OSAL_SRC)/make/app-rules.mak


106 changes: 106 additions & 0 deletions build/unit-tests/osfilesys-test/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
###############################################################################
# File: OSAL Application Makefile
#
#
# History:
#
###############################################################################
#
# Subsystem produced by this makefile.
#
APPTARGET = osfilesys-test

#
# Object files required to build subsystem.
#
OBJS = ut_osfilesys_diskio_test.o ut_osfilesys_test.o

#
# Core object files
#
OBJS += osapi.o osfileapi.o osfilesys.o osloader.o osnetwork.o ostimer.o

#
# BSP Object files
#
OBJS += bsp_start.o bsp_voltab.o

#
# Unit test shared object files
#
OBJS += ut_os_stubs.o


#
# Source files required to build subsystem; used to generate dependencies.
# As long as there are no assembly files this can be automated.
#
SOURCES = $(OBJS:.o=.c)

##
## Specify extra C Flags needed to build this subsystem
##
LOCAL_COPTS =

##
## EXEDIR is defined here, just in case it needs to be different for a custom
## build
##
EXEDIR=./

########################################################################
# Should not have to change below this line, except for customized
# directory structures
########################################################################

CORE_OBJS =

##
## Include all necessary make rules
## Any of these can be copied to a local file and
## changed if needed.
##
##
## osal-config.mak contians arch, BSP, and OS selection
##
include ../../osal-config.mak
##
## debug-opts.mak contains debug switches
##
include ../../debug-opts.mak
##
## compiler-opts.mak contains compiler definitions and switches/defines
##
include $(OSAL_SRC)/bsp/$(BSP)/make/compiler-opts.mak

##
## Setup the include path for this subsystem
## The OS specific includes are in the build-rules.make file
##
## If this subsystem needs include files from another app, add the path here.
##
INCLUDE_PATH = \
-I$(OSAL_SRC)/inc \
-I$(OSAL_SRC)/os/inc \
-I$(OSAL_SRC)/unit-tests/shared \
-I$(OSAL_SRC)/unit-tests/$(APPTARGET) \
-I../../inc

##
## Define the VPATH make variable.
## This can be modified to include source from another directory.
## If there is no corresponding app in the apps directory, then this can be discarded, or
## if the mission chooses to put the src in another directory such as "src", then that can be
## added here as well.
##
VPATH = $(OSAL_SRC)/unit-tests/$(APPTARGET)
VPATH += $(OSAL_SRC)/unit-tests/shared
VPATH += $(OSAL_SRC)/os/$(OS)
VPATH += $(OSAL_SRC)/bsp/$(BSP)/src

##
## Include the common make rules for building an OSAL Application
##
include $(OSAL_SRC)/make/app-rules.mak


Loading

0 comments on commit 00b08cd

Please sign in to comment.