mirror of
https://github.com/odriverobotics/ODrive.git
synced 2026-02-07 07:51:49 +08:00
Force version to be regenerated on each compile
This commit is contained in:
@@ -28,7 +28,9 @@ endif
|
||||
$(info board version: $(CONFIG_BOARD_VERSION))
|
||||
|
||||
all:
|
||||
@tup --quiet --no-environ-check
|
||||
@mkdir -p autogen
|
||||
@$(PY_CMD) ../tools/odrive/version.py --output autogen/version.c
|
||||
@tup --quiet -no-environ-check
|
||||
@$(PY_CMD) interface_generator_stub.py --definitions odrive-interface.yaml --template ../tools/enums_template.j2 --output ../tools/odrive/enums.py
|
||||
|
||||
# Copy libfibre files to odrivetool if they were built
|
||||
|
||||
@@ -405,17 +405,17 @@ print('Using python command "'..python_command..'"')
|
||||
-- - On Windows, tup is unhappy with writing outside of the tup directory
|
||||
--tup.frule{command=python_command..' interface_generator_stub.py --definitions odrive-interface.yaml --template enums_template.j2 --output ../tools/odrive/enums.py'}
|
||||
|
||||
tup.frule{
|
||||
command=python_command..' ../tools/odrive/version.py --output %o',
|
||||
outputs={'autogen/version.c'}
|
||||
}
|
||||
-- tup.frule{
|
||||
-- command=python_command..' ../tools/odrive/version.py --output %o',
|
||||
-- outputs={'autogen/version.c'}
|
||||
-- }
|
||||
|
||||
-- Autogen files from YAML interface definitions
|
||||
root_interface = board.include[1].root_interface
|
||||
tup.frule{inputs={'fibre-cpp/interfaces_template.j2'}, command=python_command..' interface_generator_stub.py --definitions odrive-interface.yaml --template %f --output %o', outputs='autogen/interfaces.hpp'}
|
||||
tup.frule{inputs={'fibre-cpp/function_stubs_template.j2'}, command=python_command..' interface_generator_stub.py --definitions odrive-interface.yaml --template %f --output %o', outputs='autogen/function_stubs.hpp'}
|
||||
tup.frule{inputs={'fibre-cpp/endpoints_template.j2'}, command=python_command..' interface_generator_stub.py --definitions odrive-interface.yaml --generate-endpoints '..root_interface..' --template %f --output %o', outputs='autogen/endpoints.hpp'}
|
||||
tup.frule{inputs={'fibre-cpp/type_info_template.j2'}, command=python_command..' interface_generator_stub.py --definitions odrive-interface.yaml --template %f --output %o', outputs='autogen/type_info.hpp'}
|
||||
tup.frule{inputs={'fibre-cpp/interfaces_template.j2', extra_inputs='odrive-interface.yaml'}, command=python_command..' interface_generator_stub.py --definitions odrive-interface.yaml --template %f --output %o', outputs='autogen/interfaces.hpp'}
|
||||
tup.frule{inputs={'fibre-cpp/function_stubs_template.j2', extra_inputs='odrive-interface.yaml'}, command=python_command..' interface_generator_stub.py --definitions odrive-interface.yaml --template %f --output %o', outputs='autogen/function_stubs.hpp'}
|
||||
tup.frule{inputs={'fibre-cpp/endpoints_template.j2', extra_inputs='odrive-interface.yaml'}, command=python_command..' interface_generator_stub.py --definitions odrive-interface.yaml --generate-endpoints '..root_interface..' --template %f --output %o', outputs='autogen/endpoints.hpp'}
|
||||
tup.frule{inputs={'fibre-cpp/type_info_template.j2', extra_inputs='odrive-interface.yaml'}, command=python_command..' interface_generator_stub.py --definitions odrive-interface.yaml --template %f --output %o', outputs='autogen/type_info.hpp'}
|
||||
|
||||
|
||||
add_pkg(freertos_pkg)
|
||||
|
||||
Reference in New Issue
Block a user