Hi Khem,

On 19/08/2018 19.23, Khem Raj wrote:
- Import from meta-oe layer

- This is useful for many packages where CR-LF
   needs to be adjusted, many recipes depend on it
   e.g. meta-multimedia libebml and so on.

Signed-off-by: Khem Raj <raj.k...@gmail.com>
---
  meta/classes/dos2unix.bbclass | 14 ++++++++++++++
  1 file changed, 14 insertions(+)
  create mode 100644 meta/classes/dos2unix.bbclass

diff --git a/meta/classes/dos2unix.bbclass b/meta/classes/dos2unix.bbclass
new file mode 100644
index 0000000000..3fc17e2196
--- /dev/null
+++ b/meta/classes/dos2unix.bbclass
@@ -0,0 +1,14 @@
+# Class for use to convert all CRLF line terminators to LF
+# provided that some projects are being developed/maintained
+# on Windows so they have different line terminators(CRLF) vs
+# on Linux(LF), which can cause annoying patching errors during
+# git push/checkout processes.
+
+do_convert_crlf_to_lf[depends] += "dos2unix-native:do_populate_sysroot"

Shouldn't the dos2unix recipe live in oe-core also, when a class depends upon it?

// Martin

+
+# Convert CRLF line terminators to LF
+do_convert_crlf_to_lf () {
+       find ${S} -type f -exec dos2unix {} \;
+}
+
+addtask convert_crlf_to_lf after do_unpack before do_patch


--
Kind regards,
Martin Hundebøll
Embedded Linux Consultant

+45 61 65 54 61
mar...@geanix.com

Geanix IVS
https://geanix.com
DK39600706
--
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to