From patchwork Tue Sep 3 23:01:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 172891 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp484317ily; Tue, 3 Sep 2019 16:02:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqy7139CMwRG7Gw6pBeJRHy2ZpxwffIW2gCdF6Cqky8jO+dV9udkz7aKUVGosR0ndqiWHhS9 X-Received: by 2002:a63:2364:: with SMTP id u36mr31342149pgm.449.1567551729493; Tue, 03 Sep 2019 16:02:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567551729; cv=none; d=google.com; s=arc-20160816; b=eIS2qaovMabupmBk6gQTH/nrvPKNmUar25e3ueczGs7ghlNS9vmBtT9/M35f5KcqNP jB7obTiIYESmqmckWlI3ijZPk1VLqH/ek7cZjp1VL67BaYXypNPHrfrANyLamcwEeeMj pjdeuf2BfvAnv8Ejab8/aYIQAZVZsIfXaQMQ/F1cPOLG5u1+3HRFDuSVx7N3Q+Rqiul/ tvVCf88khY6JGnh0DTk3S3SceAqEn/2EW3pUNDToF66GW9ims2ErubsVjSIug31ynub2 afjHHhmHKe/zNQj3xweSRcZN2WUkuaSBUTeENzKQM/OJeByPs7L/VJ5CPeQDTvKFwWHf VFKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:delivered-to; bh=k6XMpxRisD0Gq5dwrKZnCcbjdLdYrnE0yQ57nHnf0f8=; b=lhK9lN7//WZmcUc2ZXs4+eSR90SVM/ATRT5MHbCUHA12UpiJGlVrEPjgCaufY6Fb9F xNQQesLGPSfRDEaqj1+XAZFUZvENaZL2/KCd8A1QHqvtv0m0Jy60KiEjhoNXyvJAVzRK w0G/mqPKTORxFvCGxVmOOCESAJUQQyqy73D5ZhzEIULPUC1Qy94gy/IzFD4QRzwUIOq/ Kzk7RGAVZQiRcSdJrb3UqnWHxSzHzWp1K9vzXL1E8k85PBp2UvAqFPhhWAhFwjh6lCpc edeRReHIFsljAUdTQhdjfMb4RO+4WGIsQlMYDBpeCqXdVOGuEugYoT9NZQ3qwUa8WQxJ rKKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b="eu/OOZYN"; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-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 a13si15307072pgt.217.2019.09.03.16.02.09; Tue, 03 Sep 2019 16:02:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-devel-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="eu/OOZYN"; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 6769D7F2E9; Tue, 3 Sep 2019 23:02:07 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pg1-f196.google.com (mail-pg1-f196.google.com [209.85.215.196]) by mail.openembedded.org (Postfix) with ESMTP id 74F977F2E2 for ; Tue, 3 Sep 2019 23:01:31 +0000 (UTC) Received: by mail-pg1-f196.google.com with SMTP id n190so10059795pgn.0 for ; Tue, 03 Sep 2019 16:01:32 -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 :mime-version:content-transfer-encoding; bh=a7E5rvQmq2Afbu1OBtfnBIG3mezIvst1YizrMJQhPcY=; b=eu/OOZYNugd9B9zeEiP8QmZTrYO2TI3aM0EnaTDbZFK1KHnxQ5yLGzDQ6+M0lTfOd/ h+gBnMGvQud6sw5gU9rZasxktU0aViXIDMi0/KqZAo1zaBT/JU/eEcsuH23uJMVRWNIg OKqd4AwTg6MGkQtIIF9C2CB4bWs9ZBOTcKZ8/4gP2ICZL8wXQB8fWvKRG6uzp2J8uN/c DdPiF+GOX+GDQICgEffVkr3tJkW5oOad3XsS7KGAfmQWLhKM1pZK4WrM5pF2ZH6VojpZ HOJl+hYjVMqUDytnC2trrXfwcKKgo9PwWNYri81ZqGCwXEJRjW3COV7SRfbzoUu1HRpW QJkg== 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:mime-version:content-transfer-encoding; bh=a7E5rvQmq2Afbu1OBtfnBIG3mezIvst1YizrMJQhPcY=; b=DUIanqPiaIFNe0qlLuDBIH8gA5oWeEBPpSDcBmEwo1oQofWzG08KQetNxuRAOFHkmd dax3Khxplg6GpvNk1FEwtaBtB/QAHOFOOEdr7//QIPIaVzngdZp0QA5TthQeTNQ/bVas V5Vyu/zlItCncVH4gZZ+01QiKjwolk/sylivqEHox2YtYfU4a6+g/8+x5aMdGuD0XwZL WZDWJpMKbYvI0x4kh3z2tJbq6XZRiJAO87PnqlReopBYO/JDaobtkVltbXB/+GbTrFel oZL7FE9Eg9NT1zw7l0bKIpnS39wcCHdRV1W+lrj+IpSrG3ms2kO8kgOJdSMloe31TRhB rzMg== X-Gm-Message-State: APjAAAUO2MhRVwxE7mr393hIhQ376kd/x+BtVVYVh5qjtPr24vuenRUe Pg/2gbtlHzznLqURT4CtWfki8T2cHh8= X-Received: by 2002:a17:90a:c70e:: with SMTP id o14mr1832472pjt.56.1567551692118; Tue, 03 Sep 2019 16:01:32 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net (c-73-71-176-3.hsd1.ca.comcast.net. [73.71.176.3]) by smtp.gmail.com with ESMTPSA id z25sm19314164pfa.91.2019.09.03.16.01.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2019 16:01:31 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Tue, 3 Sep 2019 16:01:23 -0700 Message-Id: <20190903230123.37609-2-raj.khem@gmail.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190903230123.37609-1-raj.khem@gmail.com> References: <20190903230123.37609-1-raj.khem@gmail.com> MIME-Version: 1.0 Subject: [oe] [meta-initramfs][PATCH 2/2] klibc: Fix build with 5.2+ kernel headers X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org Signed-off-by: Khem Raj --- ...01-Fix-missing-include-in-sys-mman.h.patch | 36 +++++++++++++++++++ .../recipes-devtools/klibc/klibc.inc | 1 + 2 files changed, 37 insertions(+) create mode 100644 meta-initramfs/recipes-devtools/klibc/files/0001-Fix-missing-include-in-sys-mman.h.patch -- 2.23.0 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-initramfs/recipes-devtools/klibc/files/0001-Fix-missing-include-in-sys-mman.h.patch b/meta-initramfs/recipes-devtools/klibc/files/0001-Fix-missing-include-in-sys-mman.h.patch new file mode 100644 index 0000000000..4bedef8052 --- /dev/null +++ b/meta-initramfs/recipes-devtools/klibc/files/0001-Fix-missing-include-in-sys-mman.h.patch @@ -0,0 +1,36 @@ +From 36360b16833400de7818151be5588b16ac4fd5bc Mon Sep 17 00:00:00 2001 +From: Barret Rhoden +Date: Thu, 14 Mar 2019 17:30:38 -0400 +Subject: [PATCH] Fix missing include in sys/mman.h + +Linux commit 746c9398f5ac ("arch: move common mmap flags to +linux/mman.h") moved a few mmap flags, particularly MAP_PRIVATE, from +asm/mman.h to linux/mman.h. This broke klibc's build, which uses +MAP_PRIVATE. + +linux/mman.h includes asm/mman.h, so this commit merely includes +linux/mman.h instead of asm/mman.h. + +Signed-off-by: Barret Rhoden +Signed-off-by: Ben Hutchings +--- +Upstream-Status: Backport [https://git.kernel.org/pub/scm/libs/klibc/klibc.git/commit/?id=d4853d030639cf3542ae39129c18b654d8d4f020] + usr/include/sys/mman.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/usr/include/sys/mman.h b/usr/include/sys/mman.h +index 56f0b65c..3fd626e7 100644 +--- a/usr/include/sys/mman.h ++++ b/usr/include/sys/mman.h +@@ -7,7 +7,7 @@ + + #include + #include +-#include ++#include + + #define MAP_FAILED ((void *)-1) + +-- +2.23.0 + diff --git a/meta-initramfs/recipes-devtools/klibc/klibc.inc b/meta-initramfs/recipes-devtools/klibc/klibc.inc index 86aae33407..26689f87e7 100644 --- a/meta-initramfs/recipes-devtools/klibc/klibc.inc +++ b/meta-initramfs/recipes-devtools/klibc/klibc.inc @@ -23,6 +23,7 @@ SRC_URI = "git://git.kernel.org/pub/scm/libs/klibc/klibc.git \ file://0001-klibc-add-getrandom-syscall.patch \ file://0001-klibc-Kbuild-Accept-EXTRA_KLIBCAFLAGS.patch \ file://0001-Define-ulocked_-fgets-fread-fwrite-aliases.patch \ + file://0001-Fix-missing-include-in-sys-mman.h.patch \ " ARMPATCHES ?= ""