dos2unix.bbclass 561 B

123456789101112131415161718
  1. #
  2. # Copyright OpenEmbedded Contributors
  3. #
  4. # Class for use to convert all CRLF line terminators to LF
  5. # provided that some projects are being developed/maintained
  6. # on Windows so they have different line terminators(CRLF) vs
  7. # on Linux(LF), which can cause annoying patching errors during
  8. # git push/checkout processes.
  9. do_convert_crlf_to_lf[depends] += "dos2unix-native:do_populate_sysroot"
  10. # Convert CRLF line terminators to LF
  11. do_convert_crlf_to_lf () {
  12. find ${S} -type f -exec dos2unix {} \;
  13. }
  14. addtask convert_crlf_to_lf after do_unpack before do_patch