From patchwork Sun Aug 19 17:23:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 144535 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp3089637ljj; Sun, 19 Aug 2018 10:24:16 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzHhVSXQDrR18zEB5o6ZgzP1akW7O6TJJn12x9buGpjBtkYjtwI3R59QlJKUkZusHZs8iUJ X-Received: by 2002:a17:902:64c1:: with SMTP id y1-v6mr12873351pli.85.1534699456794; Sun, 19 Aug 2018 10:24:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534699456; cv=none; d=google.com; s=arc-20160816; b=eHo0KuZjZ1JtMRzlJxtNHqSR6GZC9c+PsjFv0CQoVMghUkYvjtxyORe6rQQXzokCXs CS2t2EBLDr57w5FiSI6cfwJ0+ykvH6y/shXVIAcSKBHVEIHTxEuCHHUBeisYs4OYZLXm k0efxohcJH/RAezn32fOsPlRFI+LDnuy+q8+YlUUI75hWuxeTihneFbORHe8n//kzxTI GaAS11VfZRCAmbsxYTSWGJ6QLdLnbDvXwJ/kvNUecL3LiH37R5dJqiLPzM799JrYtGIH w58aFsifp7RfL9q8buokJYdoaJcW7S1JAl8yDFXx2qc7DXcHj7INZK2+KTcpga3BUxCN 5qEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=LwHXUTMq9+ZkBD5gZ4A+wt98FJVF+B7zpIQqDe3G0/I=; b=EKCvrPN0OP2LANlPFCDGWTaAjelQR7dhyglSeUzEfUBN0fv2QiB82+YZAXNQYQs8+w jJpb3X5z0k5yKCDkk4h7u5UVhNd/TCHdz637WTSH/9PfpAhGcwDyaRCbdALMQFn0Cs1o rfnH+BhS2ADiRlROcWQmhfTp//rIf5s2S2aN++6R/lh8GYH0EZB+S7W95EyWX9mFPZ9o H2Zttto8sNBd35+gt9MxAqrwLF652lx8xdHaZhfGwC+akH5+I1c+jCQvH7dLVprCjCrc rFv+8F0DFVFGj3okZFDlfOMSOmkJkL+OOefq7upBmJG1aSYCC38iVdl3Nt//LKe6+0vC 0CBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=NI+5uJun; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id f24-v6si7250193pgh.287.2018.08.19.10.24.16; Sun, 19 Aug 2018 10:24:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=NI+5uJun; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from layers.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 5530E79252; Sun, 19 Aug 2018 17:24:00 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pf1-f195.google.com (mail-pf1-f195.google.com [209.85.210.195]) by mail.openembedded.org (Postfix) with ESMTP id 49DC879223 for ; Sun, 19 Aug 2018 17:23:52 +0000 (UTC) Received: by mail-pf1-f195.google.com with SMTP id k21-v6so5602657pff.11 for ; Sun, 19 Aug 2018 10:23:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=cRvlbR+wfYBR/Oj+8cfsSdOvd7S7k40ieppO+sH52Oc=; b=NI+5uJunEsXr85+DAC5By9cl+HYmQh8Ymptj7cCfrZy1VrPa44YT0VVO8Gf75LLsUK r51DA+fJ1a6jpH6BqxWg0Y0La3ZkqedC/vjmi0KokE79gL7QILIj4sKl80BVcOdxtO4E LilbaNaDqF5UhcGHyaoxUzI7sAdaFGYgYmNQBQFpQRrt1GsnWT6jFwS5idB1UaL3TGW8 V4REA+jVQO7gzJDL7gXkYK8OeR0ZN6DJ1JRJrEuWryOHVIzqPOKGFnZ5YVWB8sqtoYGJ 2Hu45iY0GYrT0NjzyqsG0NZ624dqICoYxTzupCaVZsH3OQsleSgPcPe3VuwU32XGbbxd 5XVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=cRvlbR+wfYBR/Oj+8cfsSdOvd7S7k40ieppO+sH52Oc=; b=Iu/hXQE6UaZIwYoofUUO9uZOyUVam1m1bTrJPoGIwyIRzOBDZPPREWRussAfJgqtgG +BS0jGLyufz0aQznvRU+Wttat/1Jfbfcm+4H3Sw/h7iehuYVtKlsa3T2Pr5ZYpZxnHU6 8LIAmaKjjNtUqLDU+dPbkH22GvmDUw7czsp+C2mZMj9BfnwOnTCZFXtCNVy9dv2yGhNE YFbNe7B6iMJl33tLxYCr55+8Tq+rfP5g9CWN0pnj72XxyFiz+95xXAHiYHaRHgQPMrfk Y45pzwNpxL7pclmmh3YML00M6Dkwcq6BobLBUgfftu2w8IYqPMDppm0DsNQXXCiRKOR3 xtLg== X-Gm-Message-State: AOUpUlEx6dQSWhYRvZ7SSD9X4811x/nkHXnNeTe++0/hp2mN0zqTjhR6 z21TuzUXZ1WOT7lh4P4CYNGhaUOs X-Received: by 2002:a63:7f0b:: with SMTP id a11-v6mr12437048pgd.22.1534699432972; Sun, 19 Aug 2018 10:23:52 -0700 (PDT) Received: from localhost.localdomain ([2601:646:877f:9499::4add]) by smtp.gmail.com with ESMTPSA id x1-v6sm8293466pgr.59.2018.08.19.10.23.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 19 Aug 2018 10:23:52 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Sun, 19 Aug 2018 10:23:36 -0700 Message-Id: X-Mailer: git-send-email 2.18.0 In-Reply-To: References: Subject: [OE-core] [PATCH 4/9] dos2unix.bbclass: Move to oe-core X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org - 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 --- meta/classes/dos2unix.bbclass | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 meta/classes/dos2unix.bbclass -- 2.18.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core 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" + +# 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