Skip to content

Commit 2b88448

Browse files
authored
Merge pull request #1222 from skliper/ic-20210312
Integration candidate: 2021-03-12
2 parents 9bc7bfd + c0fc43a commit 2b88448

7 files changed

+37
-9
lines changed

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ The detailed cFE user's guide can be viewed at <https://github.com/nasa/cFS/blob
1010

1111
## Version History
1212

13+
### Development Build: v6.8.0-rc1+dev402
14+
15+
- HOTFIX 20210312, updates to work with older CMake
16+
- Fix #972, reorganize directory structure
17+
- HOTFIX IC 2021-03-05: Correct static app build issue
18+
- See <https://github.com/nasa/cFE/pull/1222>
19+
1320
### Development Build: v6.8.0-rc1+dev392
1421

1522
- Fix #665, update pipe name documentation.

cmake/arch_build.cmake

+12-4
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,17 @@ function(add_cfe_tables APP_NAME TBL_SRC_FILES)
189189
else()
190190
message("NOTE: Selected ${TBL_SRC} as source for ${TBLWE}")
191191
endif()
192-
193-
add_library(${TGT}_${TBLWE}-obj OBJECT ${TBL_SRC})
192+
193+
# NOTE: On newer CMake versions this should become an OBJECT library which makes this simpler.
194+
# On older versions one may not referece the TARGET_OBJECTS property from the custom command.
195+
# As a workaround this is built into a static library, and then the desired object is extracted
196+
# before passing to elf2cfetbl. It is roundabout but it works.
197+
add_library(${TGT}_${TBLWE}-obj STATIC ${TBL_SRC})
194198
target_link_libraries(${TGT}_${TBLWE}-obj PRIVATE core_api)
195199

200+
get_filename_component(TBLOBJ ${TBL} NAME)
201+
string(APPEND TBLOBJ ${CMAKE_C_OUTPUT_EXTENSION})
202+
196203
# IMPORTANT: This rule assumes that the output filename of elf2cfetbl matches
197204
# the input file name but with a different extension (.o -> .tbl)
198205
# The actual output filename is embedded in the source file (.c), however
@@ -201,7 +208,8 @@ function(add_cfe_tables APP_NAME TBL_SRC_FILES)
201208
# current content of a dependency (rightfully so).
202209
add_custom_command(
203210
OUTPUT "${TABLE_DESTDIR}/${TBLWE}.tbl"
204-
COMMAND ${MISSION_BINARY_DIR}/tools/elf2cfetbl/elf2cfetbl $<TARGET_OBJECTS:${TGT}_${TBLWE}-obj>
211+
COMMAND ${CMAKE_AR} x $<TARGET_FILE:${TGT}_${TBLWE}-obj>
212+
COMMAND ${MISSION_BINARY_DIR}/tools/elf2cfetbl/elf2cfetbl "${TBLOBJ}"
205213
DEPENDS ${MISSION_BINARY_DIR}/tools/elf2cfetbl/elf2cfetbl ${TGT}_${TBLWE}-obj
206214
WORKING_DIRECTORY ${TABLE_DESTDIR}
207215
)
@@ -462,7 +470,7 @@ function(cfs_app_check_intf MODULE_NAME)
462470
configure_file(${CFE_SOURCE_DIR}/cmake/check_header.c.in ${CMAKE_CURRENT_BINARY_DIR}/src/check_${HDR}.c)
463471
list(APPEND ${MODULE_NAME}_hdrcheck_SOURCES ${CMAKE_CURRENT_BINARY_DIR}/src/check_${HDR}.c)
464472
endforeach(HDR ${ARGN})
465-
add_library(${MODULE_NAME}_headercheck OBJECT ${${MODULE_NAME}_hdrcheck_SOURCES})
473+
add_library(${MODULE_NAME}_headercheck STATIC EXCLUDE_FROM_ALL ${${MODULE_NAME}_hdrcheck_SOURCES})
466474

467475
# This causes the check to compile with the same set of defines and include dirs as specified
468476
# in the "INTERFACE" properties of the actual module

cmake/cfe-usersguide.doxyfile.in

+3
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,6 @@ PREDEFINED += @USERGUIDE_PREDEFINED@
2222

2323
# Bring in the cFE header files for the documentation of the various API calls
2424
INPUT += @MISSION_USERGUIDE_HEADERFILES@
25+
26+
# Resolve references
27+
INPUT += @MISSION_SOURCE_DIR@/psp/fsw/inc

cmake/mission-detaildesign.doxyfile.in

+11-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,17 @@ INPUT += @MISSION_DEFS@ \
1313
@MISSION_SOURCE_DIR@/osal/src/os/shared \
1414
@MISSION_SOURCE_DIR@/psp/fsw/inc \
1515
@MISSION_SOURCE_DIR@/psp/fsw/shared \
16-
@MISSION_SOURCE_DIR@/cfe/fsw/cfe-core/src
16+
@MISSION_SOURCE_DIR@/cfe/modules/core_api/fsw \
17+
@MISSION_SOURCE_DIR@/cfe/modules/core_private/fsw \
18+
@MISSION_SOURCE_DIR@/cfe/modules/es/fsw \
19+
@MISSION_SOURCE_DIR@/cfe/modules/evs/fsw \
20+
@MISSION_SOURCE_DIR@/cfe/modules/fs/fsw \
21+
@MISSION_SOURCE_DIR@/cfe/modules/msg/fsw \
22+
@MISSION_SOURCE_DIR@/cfe/modules/resourceid/fsw \
23+
@MISSION_SOURCE_DIR@/cfe/modules/sb/fsw \
24+
@MISSION_SOURCE_DIR@/cfe/modules/sbr/fsw \
25+
@MISSION_SOURCE_DIR@/cfe/modules/tbl/fsw \
26+
@MISSION_SOURCE_DIR@/cfe/modules/time/fsw
1727

1828
STRIP_FROM_PATH += @MISSION_DEFS@
1929

cmake/mission_defaults.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ set(MISSION_MODULE_SEARCH_PATH
5151

5252
# The path for specific components can also be set via
5353
# a variable named "<component>_SEARCH_PATH". This is
54-
# used for locating cfe-core and osal which are not part
54+
# used for locating other modules that are not part
5555
# of the standard search path.
5656
set(osal_SEARCH_PATH ".")
5757
set(psp_SEARCH_PATH ".")

modules/core_api/fsw/inc/cfe_es_core_internal.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ int32 CFE_ES_RegisterCDSEx(CFE_ES_CDSHandle_t *HandlePtr, size_t UserBlockSize,
128128
** \return #CFE_ES_CDS_WRONG_TYPE_ERR \copydoc CFE_ES_CDS_WRONG_TYPE_ERR
129129
** \return #CFE_ES_CDS_OWNER_ACTIVE_ERR \copydoc CFE_ES_CDS_OWNER_ACTIVE_ERR
130130
** \return #CFE_ES_ERR_NAME_NOT_FOUND \copydoc CFE_ES_ERR_NAME_NOT_FOUND
131-
** \return Any of the return values from #CFE_ES_UpdateCDSRegistry
132-
** \return Any of the return values from #CFE_ES_GenPoolPutBlock
131+
** \return Any of the return values from CFE_ES_UpdateCDSRegistry
132+
** \return Any of the return values from CFE_ES_GenPoolPutBlock
133133
**
134134
******************************************************************************/
135135
int32 CFE_ES_DeleteCDS(const char *CDSName, bool CalledByTblServices);

modules/core_api/fsw/inc/cfe_version.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434

3535
/* Development Build Macro Definitions */
36-
#define CFE_BUILD_NUMBER 392 /*!< Development Build: Number of commits since baseline */
36+
#define CFE_BUILD_NUMBER 402 /*!< Development Build: Number of commits since baseline */
3737
#define CFE_BUILD_BASELINE "v6.8.0-rc1" /*!< Development Build: git tag that is the base for the current development */
3838

3939
/* Version Macro Definitions */

0 commit comments

Comments
 (0)