Skip to content

Commit 487edfd

Browse files
authored
Merge pull request #2425 from nasa/integration-candidate
cFE Integration candidate for fast-tracked PRs
2 parents 8852743 + d2d77fe commit 487edfd

File tree

5 files changed

+30
-8
lines changed

5 files changed

+30
-8
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## Development Build: v7.0.0-rc4+dev362
4+
- 'Fix #2421, adjust dependencies on table lib'
5+
- 'Fix #2423, avoid use of abspath make function'
6+
- See: <https://github.com/nasa/cFE/pull/2422> <https://github.com/nasa/cFE/pull/2424>
7+
8+
39
## Development Build: v7.0.0-rc4+dev356
410
- 'Fix #2415, use correct object extension in table build'
511
- See: <https://github.com/nasa/cFE/pull/2416>
@@ -109,6 +115,12 @@
109115
## Development Build: v7.0.0-rc4+dev197
110116
- Remove # Changelog
111117

118+
## Development Build: v7.0.0-rc4+dev362
119+
- 'Fix #2421, adjust dependencies on table lib'
120+
- 'Fix #2423, avoid use of abspath make function'
121+
- See: <https://github.com/nasa/cFE/pull/2422> <https://github.com/nasa/cFE/pull/2424>
122+
123+
112124
## Development Build: v7.0.0-rc4+dev356
113125
- 'Fix #2415, use correct object extension in table build'
114126
- See: <https://github.com/nasa/cFE/pull/2416>

cmake/arch_build.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ function(add_cfe_tables TABLE_FQNAME TBL_DEFAULT_SRC_FILES)
324324

325325
# Add a custom target to generate the config file
326326
add_custom_target(generate_table_${TGT}_${APP_NAME}_${TABLE_BASENAME}
327-
DEPENDS "${TABLE_RULEFILE}"
327+
DEPENDS "${TABLE_RULEFILE}" ${TABLE_LIBNAME}
328328
)
329329
add_dependencies(cfetables generate_table_${TGT}_${APP_NAME}_${TABLE_BASENAME})
330330

@@ -335,7 +335,7 @@ function(add_cfe_tables TABLE_FQNAME TBL_DEFAULT_SRC_FILES)
335335
# On older versions one may not reference the TARGET_OBJECTS property from the custom command.
336336
# As a workaround this is built into a static library, and then the desired object is extracted
337337
# before passing to elf2cfetbl. It is roundabout but it works.
338-
add_library(${TABLE_LIBNAME} STATIC ${TABLE_SELECTED_SRCS})
338+
add_library(${TABLE_LIBNAME} STATIC EXCLUDE_FROM_ALL ${TABLE_SELECTED_SRCS})
339339
target_compile_definitions(${TABLE_LIBNAME} PRIVATE
340340
CFE_CPU_NAME=${TGT}
341341
)

cmake/tables/elf2cfetbl_rules.mk

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Rule for traditional CFE table generation via elf2cfetbl
22

3+
# The dependency of this target should always be an absolute pathname to
4+
# the intermediate library file as it is generated by a CMake script via
5+
# the TARGET_FILE property. Therefore, the same path should still work
6+
# after the "cd" command. The "cd" is so the ar tool writes the object file
7+
# into a separate dir, in case of similarly-named files on different cpus.
38
elf/%:
4-
@mkdir -pv $(dir $(@))
5-
cd $(dir $(@)) && $(AR) x $(abspath $(<)) $(notdir $(@))
9+
@mkdir -pv "$(dir $(@))"
10+
cd "$(dir $(@))" && $(AR) x "$(<)" "$(notdir $(@))"

cmake/tables/tabletool_rule.mk

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@
44
cfetables:
55
@echo "Table build completed"
66

7-
#%.tbl: $(TBLTOOL)
7+
# The dependency of this rule should always be a relative path starting with elf/,
8+
# at least with the current rule generator script, so it matches the elf/% pattern rule.
9+
# But because elf2cfetbl only writes its output to the current working dir, it has to be run
10+
# after changing dirs into the staging area. Thus the path to the elf file needs to be adjusted.
11+
# Ideally this chould be done with the $(abspath f...) function but this doesn't exist in older versions.
12+
# As a workaround, $CURDIR is used.
813
staging/%.tbl:
9-
@mkdir -pv $(dir $(@))
10-
cd $(dir $(@)) && $(TBLTOOL) $(TBLTOOL_FLAGS) $(abspath $(^))
14+
@mkdir -pv "$(dir $(@))"
15+
cd "$(dir $(@))" && $(TBLTOOL) $(TBLTOOL_FLAGS) "$(CURDIR)/$(<)"

modules/core_api/fsw/inc/cfe_version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#define CFE_VERSION_H
2727

2828
/* Development Build Macro Definitions */
29-
#define CFE_BUILD_NUMBER 356 /**< @brief Development: Number of development git commits since CFE_BUILD_BASELINE */
29+
#define CFE_BUILD_NUMBER 362 /**< @brief Development: Number of development git commits since CFE_BUILD_BASELINE */
3030
#define CFE_BUILD_BASELINE "v7.0.0-rc4" /**< @brief Development: Reference git tag for build number */
3131

3232
/* See \ref cfsversions for definitions */

0 commit comments

Comments
 (0)