From patchwork Sat Aug 18 19:25: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: 144518 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp2216667ljj; Sat, 18 Aug 2018 12:26:27 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxzsZxxWoq1y40Op0ashvcvYuXLca8pL95l2ibXmvpuY/m8r/B5bvy054UcRiNyENAXkPjy X-Received: by 2002:a62:4083:: with SMTP id f3-v6mr41829563pfd.229.1534620386949; Sat, 18 Aug 2018 12:26:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534620386; cv=none; d=google.com; s=arc-20160816; b=hzhgLefVyILrRpiqaGdAuzVOOQ7upbHiRxrMn0BP5vxJA/ICqcKQBKfhiHSTHLXs3+ 2sOU8HAiW0tP3iuaFuQe8Uv4gCX3fUzsD2fw3gs+/8/D1PoeMZ5v9YgjCwZdcoha+3Ub LcBttiqL/+N0lN7pCTlWRTy8sQg2u1L8lLM/dPLISBf093nu2zzFNa/eVz4slLqzpqFp 5IHnQiMgPlac2bPS3pMD9c7Upc1pWlpvJ1BMjGYPWvhX1AW+nUVl3Vrvb6CbFueEdIHd KR14xCpTdBzvP9b5BmF3jNgz4SAl2DkCDmsnisS5l9vqZoVdptzx9qZ9z2nXk5c+LXCs TAwA== 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=FfuEBAx7IuF5Y5a/v5z3G1MymaJYI+fNwxs8S6GQvu7qDUrO2hIURLbF6xgZHbLcuS OGyWLrPTiisveu7jMcZnKTAHY4adWmG2cX3LFj1RpTyhwapnValjVHzkQpv7I57ya/ci heGF9hfmlleCJTXCw+DtGklhpeuS+Y3ROP4p1ueF/8iobyquJZu20Bkw0sRVdpn2ay3/ Ihew9Ll8WAwIl7s+Db6xOumKj6xoc/Hbi7u55tlEjC4X04hyQzvW26u6DzDOYiP9+c9J fWfoZ9d6QCyps+VIPjA7xhSE6hwXsMPNJvVNzVTABfQLZwtwl3fwy5oXKoDhyXnljhzO C8iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b="C0s/uQBQ"; 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 s23-v6si5159260pga.563.2018.08.18.12.26.26; Sat, 18 Aug 2018 12:26:26 -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="C0s/uQBQ"; 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 88B0479240; Sat, 18 Aug 2018 19:26:10 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pg1-f194.google.com (mail-pg1-f194.google.com [209.85.215.194]) by mail.openembedded.org (Postfix) with ESMTP id 2129D7920E for ; Sat, 18 Aug 2018 19:25:49 +0000 (UTC) Received: by mail-pg1-f194.google.com with SMTP id n7-v6so4969839pgq.4 for ; Sat, 18 Aug 2018 12:25:50 -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=C0s/uQBQFC6diPyvb5J2Plz0gZaDU28z2M8jT8c24Og+QK+GmmiSuAsNpSRaaAG8x+ lDb7R+zRpSM4g8QOTQ+k93BXcAt0g9Bvauqi+EysxBQG2wrU4NCkGX7jqTtoANOFaJiI vAh7V3F3HGBNBtDT379wD4bGNnE9/rqwbvz5M72+T/hQe6gQGa0YTG2it2BiQ4CBsofY ItxwobZnUWJef0VNW1HxXCtPx8o4rox38+IgnPLMspHT4Hc9Nq+0EkGoRNDQvL5iRI7z 4ENM8hY9i8TEkZfQMhMLCNwYO0hKWSYHdEK91xTmeWPKjezEhcbYdxRWP4RHwAJcAhP3 oJPA== 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=PgcaJ/pi7HchpGwHW7BnhfG6nttVm7coh14PECLPWYcrBzM9L1QDv0Vt7+rgxCA66K PFWo1aet5n+hM6Epe/ufrGFPJnLWl5mTa/HcQJELZcv266a0VahBnjLetYBcij2oClOr ZmGfxLhPv3VIPRFVzSrLiWz4pQphprXkQ8dFJdX5HdZ3FVqJXHCvwjYU2BFaH6EcGEFX TgU04GaUJ7mRS3WJ8RdvdKe1mSWQ+Q5oc4geqcRUgZWmofZQa3XcpOqrOtSV6YDtqz08 FaCtWqGFU5xIvy0VJ2EZ62duGUkcV0j/359DnIh+gCg1haXaQBKYflm17mHDC00mFqOr qKag== X-Gm-Message-State: AOUpUlEHYCCQFUnlfjniL7lE9ra2hNouBg2GgoVFPFrgi3rU8A7jAZgx VqVt3K2GxeLxBW60lJHfRhSf7z9V X-Received: by 2002:a62:6283:: with SMTP id w125-v6mr41589468pfb.108.1534620349975; Sat, 18 Aug 2018 12:25:49 -0700 (PDT) Received: from localhost.localdomain ([2601:646:877f:9499::4add]) by smtp.gmail.com with ESMTPSA id k64-v6sm6723068pgd.47.2018.08.18.12.25.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 18 Aug 2018 12:25:49 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Sat, 18 Aug 2018 12:25:36 -0700 Message-Id: <17f1f013ccf6a321b25fffeac5e40fad6bb9c15e.1534620189.git.raj.khem@gmail.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: References: Subject: [OE-core] [PATCH 4/6] 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