Skip to content

Fix debian/rules makefile: use shell commands instead of dollar replacements #621

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

Merged
merged 4 commits into from
Jun 6, 2020

Conversation

qiluo-msft
Copy link
Contributor

@qiluo-msft qiluo-msft commented Jun 6, 2020

because:

  1. make evaluates conditionals (e.g., ifeq) at the time it reads a Makefile.
  2. no need to replace with shell command outputs

ref: https://stackoverflow.com/a/11994561/2514803

replacements because:
1. `ifeq` evaluates conditionals when it reads a Makefile.
2. no need to replace with shell command outputs

ref: https://stackoverflow.com/a/11994561/2514803
jleveque
jleveque previously approved these changes Jun 6, 2020
@jleveque
Copy link
Contributor

jleveque commented Jun 6, 2020

@qiluo-msft: FYI, I made a small change to your description above. Looks good to me. Nice find!

jleveque
jleveque previously approved these changes Jun 6, 2020
jleveque
jleveque previously approved these changes Jun 6, 2020
@qiluo-msft qiluo-msft merged commit 322dd01 into sonic-net:master Jun 6, 2020
@qiluo-msft qiluo-msft deleted the qiluo/fixmake branch June 6, 2020 04:49
pettershao-ragilenetworks pushed a commit to pettershao-ragilenetworks/sonic-sairedis that referenced this pull request Nov 18, 2022
…cements (sonic-net#621)

* Fix debian/rules makefile: use shell commands instead of dollar
replacements because:
1. `ifeq` evaluates conditionals when it reads a Makefile.
2. no need to replace with shell command outputs
ref: https://stackoverflow.com/a/11994561/2514803
* Fix one more `echo`
* Revert back one shell replacement
* Fix some bash command and Makefile escaping issue
jianyuewu pushed a commit to jianyuewu/sonic-sairedis that referenced this pull request Feb 7, 2025
…nic-net#621)

[fast-reboot] Check if ASIC config has changed before fast reboot
* Adds script to compare checksums for config files between SONiC images
* Adds pre-check to fast reboot script to confirm config files match before performing fast reboot

Signed-off-by: Danny Allen <[email protected]>

* Fix formatting

* Incorporate feedback

* Add check for reboot type and override ability

* Clean up error checking
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.

2 participants