pastebin - collaborative debugging tool
eckelmann.kpaste.net RSS


install_alternative_tree platform suffixes
Posted by Anonymous on Thu 26th Sep 2019 13:35
raw | new post

  1. Using ptxdist 2018.11 we experienced the following behavior:
  2.  
  3. we have two files with the platform suffixes mx6 and mx25 inside our projectroot
  4.  
  5. /projectroot/usr/lib/systemd/network/enp1s0.network.mx6
  6. /projectroot/usr/lib/systemd/network/enp1s0.network.mx25
  7.  
  8. after running './p-mx6 targetinstall systemd' (where p-mx6 is a script that hardcodes platformconfig and ptxconfig for mx6)
  9. both files appear on the target inside /usr/lib/systemd/network/ with their platform suffixes.
  10.  
  11. We spotted that 'install_alternative_tree' inside rules/systemd.make seems to be the culprit.
  12.  
  13. <snip>
  14. 384 ifdef PTXCONF_SYSTEMD_NETWORK                                                
  15. 385     @$(call install_tree, systemd, 0, 0, -, /usr/lib/systemd/network)        
  16. 386     @$(call install_alternative_tree, systemd, 0, 0, /usr/lib/systemd/network)
  17. 387 endif                                                                        
  18. 388     @$(call install_alternative, systemd, 0, 0, 0644, \                      
  19. 389         /usr/lib/systemd/network/99-default.link)                            
  20. 390                                                                              
  21. </snip>
  22.  
  23. Does install_alternative_tree respect platform suffixes? Should we avoid placing files inside /projectroot/usr/lib/systemd?

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}





All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at