Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] px4io driver always build io firmware #11042

Closed
wants to merge 1 commit into from
Closed

Conversation

dagar
Copy link
Member

@dagar dagar commented Dec 14, 2018

If the cmake configure and build steps are split we should be able to BUILD_ALWAYS and achieve what we want.

TODO:

fixes #11036

@bkueng
Copy link
Member

bkueng commented Jan 7, 2019

Thanks @dagar. What's the ETA?

@PX4 PX4 deleted a comment from stale bot Jul 10, 2019
@stale stale bot removed the Admin: Wont fix label Jul 10, 2019
DEPENDS px4io_firmware
COMMAND ${CMAKE_OBJCOPY} -O binary ${fw_io_exe} ${config_io_board}.bin
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${config_io_board}.bin ${PX4_BINARY_DIR}/romfs_extras/${config_io_board}.bin
DEPENDS px4io_firmware px4_io-v2_default.elf
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I remember add_custom_command can't depend on a file but only on targets, so you need to add a target in-between, e.g.:

add_custom_target(
    px4_io_v2_default_elf_target
    DEPENDS px4_io-v2_default.elf
    )

See: https://samthursfield.wordpress.com/2015/11/21/cmake-dependencies-between-targets-and-files-and-custom-commands/

jlecoeur added a commit that referenced this pull request Aug 25, 2019
This fixes incremental build of the px4io firmware on targets that use the px4io driver.

fixes #11042
@dagar dagar closed this in 32fb4a9 Aug 25, 2019
@julianoes julianoes deleted the pr-px4io_cmake branch August 26, 2019 10:03
bozkurthan pushed a commit to bozkurthan/Firmware that referenced this pull request Sep 4, 2019
This fixes incremental build of the px4io firmware on targets that use the px4io driver.

fixes PX4#11042
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incremental build issues for IO
3 participants