File tree Expand file tree Collapse file tree 5 files changed +30
-8
lines changed Expand file tree Collapse file tree 5 files changed +30
-8
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
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
+
3
9
## Development Build: v7.0.0-rc4+dev356
4
10
- 'Fix #2415 , use correct object extension in table build'
5
11
- See: < https://github.com/nasa/cFE/pull/2416 >
109
115
## Development Build: v7.0.0-rc4+dev197
110
116
- Remove # Changelog
111
117
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
+
112
124
## Development Build: v7.0.0-rc4+dev356
113
125
- 'Fix #2415 , use correct object extension in table build'
114
126
- See: < https://github.com/nasa/cFE/pull/2416 >
Original file line number Diff line number Diff line change @@ -324,7 +324,7 @@ function(add_cfe_tables TABLE_FQNAME TBL_DEFAULT_SRC_FILES)
324
324
325
325
# Add a custom target to generate the config file
326
326
add_custom_target (generate_table_${TGT}_${APP_NAME}_${TABLE_BASENAME}
327
- DEPENDS "${TABLE_RULEFILE} "
327
+ DEPENDS "${TABLE_RULEFILE} " ${TABLE_LIBNAME}
328
328
)
329
329
add_dependencies (cfetables generate_table_${TGT}_${APP_NAME}_${TABLE_BASENAME} )
330
330
@@ -335,7 +335,7 @@ function(add_cfe_tables TABLE_FQNAME TBL_DEFAULT_SRC_FILES)
335
335
# On older versions one may not reference the TARGET_OBJECTS property from the custom command.
336
336
# As a workaround this is built into a static library, and then the desired object is extracted
337
337
# 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} )
339
339
target_compile_definitions (${TABLE_LIBNAME} PRIVATE
340
340
CFE_CPU_NAME=${TGT}
341
341
)
Original file line number Diff line number Diff line change 1
1
# Rule for traditional CFE table generation via elf2cfetbl
2
2
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.
3
8
elf/% :
4
- @mkdir -pv $(dir $(@ ) )
5
- cd $(dir $(@ ) ) && $(AR ) x $( abspath $( < ) ) $(notdir $(@ ) )
9
+ @mkdir -pv " $( dir $( @) ) "
10
+ cd " $( dir $( @) ) " && $(AR ) x " $( < ) " " $( notdir $( @) ) "
Original file line number Diff line number Diff line change 4
4
cfetables :
5
5
@echo " Table build completed"
6
6
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.
8
13
staging/% .tbl :
9
- @mkdir -pv $(dir $(@ ) )
10
- cd $(dir $(@ ) ) && $(TBLTOOL ) $(TBLTOOL_FLAGS ) $( abspath $( ^ ) )
14
+ @mkdir -pv " $( dir $( @) ) "
15
+ cd " $( dir $( @) ) " && $(TBLTOOL ) $(TBLTOOL_FLAGS ) " $( CURDIR ) / $( < ) "
Original file line number Diff line number Diff line change 26
26
#define CFE_VERSION_H
27
27
28
28
/* 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 */
30
30
#define CFE_BUILD_BASELINE "v7.0.0-rc4" /**< @brief Development: Reference git tag for build number */
31
31
32
32
/* See \ref cfsversions for definitions */
You can’t perform that action at this time.
0 commit comments