diff options
| author | Khem Raj <raj.khem@gmail.com> | 2018-08-19 10:23:36 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-08-20 17:38:22 +0100 |
| commit | f98f7baa8393cc80dea267fa1b13f89f5bb39100 (patch) | |
| tree | 834e53186eea9548a558d89401b2f0f6d6c0959a | |
| parent | e0d395a046beba8e8495781f6cedd4456cb0c32e (diff) | |
| download | poky-f98f7baa8393cc80dea267fa1b13f89f5bb39100.tar.gz | |
dos2unix.bbclass: Move to oe-core
- 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.
(From OE-Core rev: bd4a02d8d3cfb476a2da0f4616605c92604266c0)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/classes/dos2unix.bbclass | 14 |
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 | |||
| 7 | do_convert_crlf_to_lf[depends] += "dos2unix-native:do_populate_sysroot" | ||
| 8 | |||
| 9 | # Convert CRLF line terminators to LF | ||
| 10 | do_convert_crlf_to_lf () { | ||
| 11 | find ${S} -type f -exec dos2unix {} \; | ||
| 12 | } | ||
| 13 | |||
| 14 | addtask convert_crlf_to_lf after do_unpack before do_patch | ||
