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

cmake: Refactor into seperate files #469

Merged
merged 1 commit into from
Sep 18, 2016
Merged

cmake: Refactor into seperate files #469

merged 1 commit into from
Sep 18, 2016

Conversation

xor-gate
Copy link
Member

I have seen problems with travis infrastructure and old tools versions the git/project version gets broken. Now this is more reliable and has always a fallback to the .version file. When the utilities are build the version is linked into the executable and printed on startup like OpenOCD does.

@nekromant could you review this works for you, as I have moved stuff all over the place and maybe have broken debian packaging.

@xor-gate xor-gate added this to the v1.3.0 milestone Sep 16, 2016
@xor-gate
Copy link
Member Author

As everybody is fearly busy and some contribution is pending for debian packaging (fixes) we need this merged. I will merge it myself for now, when there are questions feel free to place them here.

@xor-gate xor-gate deleted the cmake-fixes branch September 18, 2016 12:45
@nekromant
Copy link
Contributor

nekromant commented Sep 18, 2016

@xor-gate Terribly sorry, I'm currently away fishing till Wednesday-Thursday and there's (a. Very poor cellphone coverage b. I have no deb-pkg stuff on my 'field' laptop). I'll check everything once I'm back, hope you're not in a terrible hurry. (And it looks like my homeserver infrastructure along with jenkins is down as well due to a power outage).

@xor-gate
Copy link
Member Author

Hi @nekromant yeah I just figured out a few days ago. It is no showstopper. I already have merged as someone else is improving the debian packaging. Have fun fishing!

@nekromant
Copy link
Contributor

@xor-gate, @OsterlaD I'm finally back. Looks like I've missed all the fun with the recent debian packaging fixes. Anyways, I've tested the current master, debian packaging and did a full ci run, everything looks fine so far.
Regarding the recent deb packaging fixes by OsterlaD that I've missed out:

  1. Do we really need to duplicate all the file installation rules in debian/rules? I suggest we do as much of the installation as possible with CMakeLists.txt, so that debian/rules would do as much as possible automatically.
  2. Is there any rationale for building both debug and release builds of stlink when packaging?

@OsterlaD
Copy link
Contributor

  1. Use of cmake install would be better in terms of maintenance.
    • I am not sure how to tell cmake where to install
    • adapt debian/*.install files to copy from cmake install dir, instead of from debian/tmp
    • or you can manage to install to debain/tmp with cmake
    • cmake should handle multiarch library paths
  2. Just that tests depends on debug build. The build stage calls make all and all depends on release. The tests stage calls make test and test depends on debug. This is why both where build. I think automated tests where a good thing and should run, but you can disable it by add override_dh_auto_tests: to debian/rules, if you want.

@stlink-org stlink-org locked and limited conversation to collaborators Sep 22, 2016
@xor-gate
Copy link
Member Author

We will continue discussion in this issue:
#482

@Nightwalker-87 Nightwalker-87 linked an issue Mar 16, 2020 that may be closed by this pull request
@stlink-org stlink-org unlocked this conversation Mar 17, 2020
@stlink-org stlink-org locked as resolved and limited conversation to collaborators Apr 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

st-util version information
4 participants