summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/dos2unix.bbclass14
1 files changed, 14 insertions, 0 deletions
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 @@
1# Class for use to convert all CRLF line terminators to LF
2# provided that some projects are being developed/maintained
3# on Windows so they have different line terminators(CRLF) vs
4# on Linux(LF), which can cause annoying patching errors during
5# git push/checkout processes.
6
7do_convert_crlf_to_lf[depends] += "dos2unix-native:do_populate_sysroot"
8
9# Convert CRLF line terminators to LF
10do_convert_crlf_to_lf () {
11 find ${S} -type f -exec dos2unix {} \;
12}
13
14addtask convert_crlf_to_lf after do_unpack before do_patch