mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 21:09:03 +02:00

- 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>
15 lines
518 B
Plaintext
15 lines
518 B
Plaintext
# 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"
|
|
|
|
# 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
|