From patchwork Sun Sep 29 23:55:00 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Armin Kuster X-Patchwork-Id: 174697 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp6444348ill; Sun, 29 Sep 2019 16:56:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqxTxx1/tGk/u1OLf/NIGVO/Qos73CMByPKsqGUIJluUl18pJ64UDF6sX/l+J/2RJNgGWjsd X-Received: by 2002:a65:6081:: with SMTP id t1mr19822323pgu.95.1569801378327; Sun, 29 Sep 2019 16:56:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569801378; cv=none; d=google.com; s=arc-20160816; b=XotN74/+tJ6DYFy7MMGXys0wJIek5KvZoztJklawk26ee52cCPEPc1fOUfeVIo0A82 ewDn/rzkNCftBARDsXWyGdLX9IZJRy67FZdtZksF5d8bWbnOcm82sfPuLOe5tz2rwX6z MWZPOFGvox7ZR7Gr9n7+akEegyvoJKis26fjmoPuIsyaJbx38HYONH/ImbQmxhE9US1f HeuPr1amiBO8vI0FRQ/MeM31xYcjnFDYmiFjExgdAbfXFyRbj+B72ZmPAY2ELAdRlSM9 FjnipbxlVyudxMkir7PR16JwXIw5arfn4Mh4pVGJJYh/3t3UFKaAAAaCc/5hBQpG8KZM ypJQ== 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; bh=kWX/8ZKgGc9rnzuAgOrwgNT0rncq1BEYzZjRfFfc+Rg=; b=dO0rFakJInlEQoIafxcphBw8RSkKvUfkN/DN3Xb1dd9Ea9PfgvqresZVwKiNk77HtL LI8CodGN/Jwc7NqELLz0HHQGOAQK4ayegkbP/yYFEgiNxuUAXg1Yl2ecHVqaVBK9dEWR i57XKnWUOxPzUvbUFlrMf0ZuwTCmxXC95YL+ICc6qtoqFalzEdFKsSj0Yo4I5I5KyKIN y1+hXHQvQ5zHeBzsXcLItFyxQ/yMUk5AVukdIx/xmLiZt46iosdh32SdZbSEQgeqiXi8 oJoB3JDv0CwT4J0UkkeSuvercKGB9VBAD12+jYvGHgThJf1AiIJtDnNhshPsjgPbExES b1ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=Sm9fDnQf; 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 73si10029817ple.423.2019.09.29.16.56.18; Sun, 29 Sep 2019 16:56:18 -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=Sm9fDnQf; 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 CD0837F2C5; Sun, 29 Sep 2019 23:56:09 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) by mail.openembedded.org (Postfix) with ESMTP id 709287F281 for ; Sun, 29 Sep 2019 23:55:18 +0000 (UTC) Received: by mail-pl1-f179.google.com with SMTP id d22so3171139pls.0 for ; Sun, 29 Sep 2019 16:55:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=C4HQTK8Cvc+JvSwv5yTWqUthc8wj6bVwc6BgEI06GqE=; b=Sm9fDnQfs9R56OtZXSsmT9+g/ycY4alJxNrTt7HfBPfu3dsTnkIICL/4m/oSNidMV6 PR5SQmJWdLllDpZ8FV3NzJOi1jgwEynQOC1fovZ8OZ/thCEtYbhrMEU8U2seiWqXpPMR NEX4kvMjJXZm97PCmPjVBveKuUG4WSV3DVZIbNweEWO3B8djJoNkmxvhMMS0WiSeJvuZ 0lnm0gSUkiHs033hT12VSf4KPa023eXUl8ENh/r+g2esP+HBeDUhg7ZyxN92iZlQnvam A9d8jjuRknk+wkiZmQYs8cbCfQ7OAjraxvzE9C3+DDZxd9868umuSUWE420tMleDGDH1 o7kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=C4HQTK8Cvc+JvSwv5yTWqUthc8wj6bVwc6BgEI06GqE=; b=NEZtRImncqt07hFsATtWXD1bLJq0iCcAzmo+0+mNuTlRUDVBGSsw1iYDhgwuM6w7gg x/o9U/SNxaBIvFDV62FBlY0LJzRWo4LKNHz+QhgNy1tVhx9ha2UZK++qOofBLiAFNV8s mbg+3RMeJxRaUXjj/kp8DLgvswRln3IcXOzqwA5Y+SOqhw7Yuoj611mx7Ze3nRg6U8qs mMRcf43p/FE2QBZgUObj5jcYGz3b9GJeSzPdjWiOMcb6hoqlxuM0AMbolEp8/oLF30+p c4jzmjZ0hoPvFWUeSaV9imRLnIuSemKDEzFjcxEtQghnkDcNddn7kNUWClspI+PuUlSr IzEw== X-Gm-Message-State: APjAAAUj34ipUvck5ffhB613Yvf8mTJCMtoW4PZEUiWkgNcTulJPyqXv YAbfJdfy4ES85yMy/SKqGOChc+2KrD8= X-Received: by 2002:a17:902:bd43:: with SMTP id b3mr17501916plx.327.1569801319037; Sun, 29 Sep 2019 16:55:19 -0700 (PDT) Received: from akuster-ThinkPad-T460s.hsd1.ca.comcast.net ([2601:202:4180:a5c0:edf9:811d:ad92:85c2]) by smtp.gmail.com with ESMTPSA id p190sm14474778pfb.160.2019.09.29.16.55.18 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 29 Sep 2019 16:55:18 -0700 (PDT) From: Armin Kuster To: openembedded-devel@lists.openembedded.org Date: Sun, 29 Sep 2019 16:55:00 -0700 Message-Id: <58736b6483c97dffaf9e3c5a097377a786d79edd.1569801183.git.akuster808@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: Subject: [oe] [warrior-next 02/10] redis: Fix build with clang/x86 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: , MIME-Version: 1.0 Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org From: Khem Raj Need to link with libatomics for 64bit atomics support Fixes i686-yoe-linux/i686-yoe-linux-ld: networking.o: in function `createClient': | /usr/src/debug/redis/4.0.14-r0/redis-4.0.14/src/networking.c:103: undefined reference to `__atomic_fetch_add_8' Signed-off-by: Khem Raj (cherry picked from commit 2b49254d61ca817799a206cd022617854aa5bc0b) Signed-off-by: Armin Kuster --- .../redis/0001-src-Do-not-reset-FINAL_LIBS.patch | 32 ++++++++++++++++++++++ meta-oe/recipes-extended/redis/redis_4.0.14.bb | 5 +++- 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 meta-oe/recipes-extended/redis/redis/0001-src-Do-not-reset-FINAL_LIBS.patch -- 2.7.4 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-oe/recipes-extended/redis/redis/0001-src-Do-not-reset-FINAL_LIBS.patch b/meta-oe/recipes-extended/redis/redis/0001-src-Do-not-reset-FINAL_LIBS.patch new file mode 100644 index 0000000..04af15d --- /dev/null +++ b/meta-oe/recipes-extended/redis/redis/0001-src-Do-not-reset-FINAL_LIBS.patch @@ -0,0 +1,32 @@ +From 97584e1eb78dc18599534b47b6670c20c63f5ee2 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Tue, 10 Sep 2019 20:04:26 -0700 +Subject: [PATCH] src: Do not reset FINAL_LIBS + +This helps case where additional libraries are needed to be passed from +environment to get it going + +e.g. -latomic is needed on clang/x86 to provide for 64bit atomics + +Upstream-Status: Pending +Signed-off-by: Khem Raj +--- + src/Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/Makefile b/src/Makefile +index 7f7c625..c71dd3b 100644 +--- a/src/Makefile ++++ b/src/Makefile +@@ -66,7 +66,7 @@ endif + + FINAL_CFLAGS=$(STD) $(WARN) $(OPT) $(DEBUG) $(CFLAGS) $(REDIS_CFLAGS) + FINAL_LDFLAGS=$(LDFLAGS) $(REDIS_LDFLAGS) $(DEBUG) +-FINAL_LIBS=-lm ++FINAL_LIBS+=-lm + DEBUG=-g -ggdb + + ifeq ($(uname_S),SunOS) +-- +2.23.0 + diff --git a/meta-oe/recipes-extended/redis/redis_4.0.14.bb b/meta-oe/recipes-extended/redis/redis_4.0.14.bb index 5df5312..45ea29b 100644 --- a/meta-oe/recipes-extended/redis/redis_4.0.14.bb +++ b/meta-oe/recipes-extended/redis/redis_4.0.14.bb @@ -11,6 +11,7 @@ SRC_URI = "http://download.redis.io/releases/${BP}.tar.gz \ file://lua-update-Makefile-to-use-environment-build-setting.patch \ file://oe-use-libc-malloc.patch \ file://Fixed-stack-trace-generation-on-aarch64.patch \ + file://0001-src-Do-not-reset-FINAL_LIBS.patch \ file://redis.conf \ file://init-redis-server \ file://redis.service \ @@ -25,11 +26,13 @@ SRC_URI[sha256sum] = "1e1e18420a86cfb285933123b04a82e1ebda20bfb0a289472745a08758 inherit autotools-brokensep update-rc.d systemd useradd +FINAL_LIBS_x86_toolchain-clang = "-latomic" +export FINAL_LIBS + USERADD_PACKAGES = "${PN}" USERADD_PARAM_${PN} = "--system --home-dir /var/lib/redis -g redis --shell /bin/false redis" GROUPADD_PARAM_${PN} = "--system redis" - REDIS_ON_SYSTEMD = "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}" do_compile_prepend() { From patchwork Sun Sep 29 23:55:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Armin Kuster X-Patchwork-Id: 174698 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp6444522ill; Sun, 29 Sep 2019 16:56:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqzJir19zsJ1T/NC6ERKHTXn8AGfRl3XqhTSanJ2xY1scyKa+lKkuOLfkkDVfWBZZ3iU3TP1 X-Received: by 2002:a63:6b49:: with SMTP id g70mr20624851pgc.92.1569801394844; Sun, 29 Sep 2019 16:56:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569801394; cv=none; d=google.com; s=arc-20160816; b=Len/LkWgPLQLx86kh+bH9fn+iPyv+z8JLtunwM3DrH+SIIEBz1R2yrGhMmw5ne3C6+ FEScKUIH0U0SyejvOm0+NY01UuDQC/b948G/XpvR8IDD7+Z0VOU1jPrWiyonx2EJ80JM og6031/2rH9Xa7kGdZH7CprVdVVv4JLfBMispyrylA2Og1qAhIOlELEQm/TMkzO6j2iD SRrc+ROUhylPbRyxXmWg4PUkSYTMjqDorhha4DWAtJtMiVKwBiwr6mdjD9uoN7DVslTk A6iNjfD+hneCnxLm90mNh+tLKTiO5exELczG4/qqxtRMJzBwUcEM6Jos4B/wQ/AKMpqK 72LQ== 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; bh=AZ3cc95ga9xAdA12vRCrQQEvtNrLxdjgtlyLRWKDrqw=; b=NayFZrf3fuJiSN4931wcZ55AodnSn5edvDdR1pHE7IxgphFfCQf7BP8h/o597WGgh9 NmjfzVldfxRWlBfk4l+YR3CRuymm/E39alML6JuZ3lBQeZ85tFSmgG60HTH2r3GRA3yE MbPrSHOGIUp80bf8Ps6+w5xLUNLmiP1bn4+uF1VjsHMDInK9xZJbx5zprbq6hBHZ7+Qd xLe47rkH3F9SFOoVVRvR2+JfGupiD9x0fo44TIjMIJ8A5r4IebS9jLhJ4uFoeX26gSMo Nw4VhhKrrB7sDHK2w87om4Cc4dGsYZH6OpUHoHLPsumBauAh+HTJihgVMZhqI1vgqnYB sRqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=RX6LsLAf; 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 b12si12203614pgt.61.2019.09.29.16.56.34; Sun, 29 Sep 2019 16:56:34 -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=RX6LsLAf; 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 546077F2DE; Sun, 29 Sep 2019 23:56:12 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pf1-f174.google.com (mail-pf1-f174.google.com [209.85.210.174]) by mail.openembedded.org (Postfix) with ESMTP id A87807F273 for ; Sun, 29 Sep 2019 23:55:20 +0000 (UTC) Received: by mail-pf1-f174.google.com with SMTP id b128so4515847pfa.1 for ; Sun, 29 Sep 2019 16:55:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=zhL90kITEdvR3O8Xziu0SXEcH4fCgbnJ3ng0fWMkiX8=; b=RX6LsLAftDVkTVAWNY7nou2v9CiYraHQxIKADmvWmX7JIWKhw9GXBcgeqSLDVXs4kX +L3epV2keE2sG8FKsjHke2SuFnfrsJ4lDW42JCqDKC9X87cucR8A/sXTh4T9QWtbogQe EKbQ+VZWNebvbLBOXvKUbiM3Vm0tz/jAg/5gXnsj/6TAwuChOMIA4iqRMDbVYB+3niLV uZEA7BLUmnx/11Z6ftvSsZ/ehr0rRWVYcOwfTXE5TjiBjrFmjdHgRrKqhOHn6NGl4zmJ kyhgb0NDrWJvP341kax4UWgJWVwr77c566a4gDUM3fGdeXcKj/0IghLDVzZwFEnaVgcJ j4Og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=zhL90kITEdvR3O8Xziu0SXEcH4fCgbnJ3ng0fWMkiX8=; b=M6Vp1H4H0t1FZy1UsXfZjwGZ8PA/Z5U9boXBsaR0W9mq3y1nuiYaAUBe0tnnvCjSnU 1gXXyHKgG0DortR2go5Wi3sUST4FaMSZEZdHWEwZTM+g5eSVZhUvepvb9OXQJ5Flh1I2 wSz+F8TU/z1+NHjfVsfal1l8HCIebqJeIgy3Fn+RQybFlq8GvsVUQfyRK4ZyNkPz38X/ 1xmYk4KFXvmQULdJG2/Ru9MxvuplHYX960PXtrTbnrEcIaQAhzGTupM81FlO+yRf/Rou FKmnCqidCzzN11wVfPf76nc0uZyu2Q8DPgIrmsiNi7ewmkxgqm5U/mpPzncCS2SHk5bq DY7w== X-Gm-Message-State: APjAAAXgsRD4x64phPMRxlEmPBMTXvAgNFzXAb4p97NUD1dRzF7fby1T AUHWPdZko4JgymkCjyLfiag8lC14994= X-Received: by 2002:a65:5043:: with SMTP id k3mr21950070pgo.406.1569801321553; Sun, 29 Sep 2019 16:55:21 -0700 (PDT) Received: from akuster-ThinkPad-T460s.hsd1.ca.comcast.net ([2601:202:4180:a5c0:edf9:811d:ad92:85c2]) by smtp.gmail.com with ESMTPSA id p190sm14474778pfb.160.2019.09.29.16.55.20 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 29 Sep 2019 16:55:20 -0700 (PDT) From: Armin Kuster To: openembedded-devel@lists.openembedded.org Date: Sun, 29 Sep 2019 16:55:02 -0700 Message-Id: X-Mailer: git-send-email 2.7.4 In-Reply-To: References: Subject: [oe] [warrior-next 04/10] klibc: Pass -fno-builtin-bcmp with musl/clang combo 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: , MIME-Version: 1.0 Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org From: Khem Raj clang would emit bcmp built-in for musl bases system but here we do not link in musl C library, so its best to disable it Fixes git/usr/klibc/memmem.c:38: undefined reference to `bcmp' Signed-off-by: Khem Raj Cc: Andrea Adami (cherry picked from commit 11bc2775af3e47399ac268a2e6fbd63185e478ef) Signed-off-by: Armin Kuster --- meta-initramfs/recipes-devtools/klibc/klibc.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) -- 2.7.4 -- _______________________________________________ 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/klibc.inc b/meta-initramfs/recipes-devtools/klibc/klibc.inc index 5805448..7faf0ca 100644 --- a/meta-initramfs/recipes-devtools/klibc/klibc.inc +++ b/meta-initramfs/recipes-devtools/klibc/klibc.inc @@ -33,6 +33,9 @@ ARMPATCHES_arm = "file://klibc-config-eabi.patch \ S = "${WORKDIR}/git" +OPTFLAGS = "${TUNE_CCARGS} -Os" +OPTFLAGS_append_libc-musl_toolchain-clang = " -fno-builtin-bcmp" + PARALLEL_MAKE = "" EXTRA_OEMAKE = "'KLIBCARCH=${KLIBC_ARCH}' \ 'CROSS_COMPILE=${TARGET_PREFIX}' \ @@ -43,7 +46,7 @@ EXTRA_OEMAKE = "'KLIBCARCH=${KLIBC_ARCH}' \ 'INSTALLDIR=${libdir}/klibc' \ 'SHLIBDIR=${libdir}' \ '${KLIBCTHUMB}' \ - 'KLIBCOPTFLAGS=${TUNE_CCARGS} -Os' \ + 'KLIBCOPTFLAGS=${OPTFLAGS}' \ V=1 \ " From patchwork Sun Sep 29 23:55:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Armin Kuster X-Patchwork-Id: 174699 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp6444646ill; Sun, 29 Sep 2019 16:56:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqwtSQllSfOtq3b/CuWoq5WoWsOQSVcNQUu/QpUJI89ZmwIAfu53/jbT3dCApyDCEWZ3Frl0 X-Received: by 2002:aa7:9116:: with SMTP id 22mr18049048pfh.81.1569801403148; Sun, 29 Sep 2019 16:56:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569801403; cv=none; d=google.com; s=arc-20160816; b=oLaO/dHkVqsMyePGvKItVZoR1fvTc/PdUQVy1QauBCeyGW+oRhccW9GEhpEC7d0eak hIIzstl3pzsl+2vIwETU++SEYQII6jBjnIB1TlC6ZBjU85TuGZO4P7HRPFw4/GBnjnEl Q0BFXrA1QZ2r1Eye68VHUIkBcooBMmRgrkZ5c3FSTC454YYk4jShh2SlCdIiXu5B4RvV jWhWsPBTG15HXkbYeO2Red7LxUseRPErZtJCiADjTYkqOUEuRkpSdfXzCvI4/U/AulVj RVgDCweIMHNfvYemR/up0N20OQ/WESX6U8TX8hQsLHGVkNH3HdtlQ+GzMU1Hc6enEvmt /ujQ== 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; bh=51iF6/Wpl5FIYVVQksedNHu5Xpmh9UQysVIQULj/g7I=; b=vC1Y6P8TuX3LyB6QOTq+GrHH9cDVSfNxd9w3FN2JNPr8nU27rUERkAljpm51wKlo3D BM9348skgjbsndqLRk1pFc1TWYizEDvLKIDccs8AKIsp1Bm3jqNQDI7KhzuQVZWTVUg2 0Cx/aDZYAFO7irYtN77gTDTi934xCh+4ongoE4lajMo8tjklWzoGnPb7bc1Lj6BcB5Zw lIgqdcBzn+bbaLIX7z0UouOaiMX2PZkJaHa9XLjp2OmQyL/VuSS6MfDFpEWe9jsU7czX lofqVLxb/CEyXkUGvzRjibl1hCJUhdf5edJCSJYG6oKjiyvpOPXCgjLcZxiGxFQpKnDc tsCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=V+V5NSad; 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 a13si10341523pln.349.2019.09.29.16.56.42; Sun, 29 Sep 2019 16:56:43 -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=V+V5NSad; 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 0169B7F287; Sun, 29 Sep 2019 23:56:17 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) by mail.openembedded.org (Postfix) with ESMTP id 5F2C37F278 for ; Sun, 29 Sep 2019 23:55:21 +0000 (UTC) Received: by mail-pf1-f175.google.com with SMTP id a2so4491677pfo.10 for ; Sun, 29 Sep 2019 16:55:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=UpItrfm/12uCk7WJ0JxhYqbLmZEWF/7b8kL62mAkLlo=; b=V+V5NSadBrxyEVR8ONTPYXVbcf8QI+5rZTcyYmv95L/5qAzCeRKefDob3ROkv+8uOK y9bKHSDYDEcQh+TUYkhIbP+8pAHRtyKVJ83a/e5oGl4GpaYmn1pmbkPKXCHCKuVNyWDZ nsbe1EUNgPSaxvLAbC8EYNEw/UhKI5xdJHDAiwg+2n75lE/7YU7MAEQSpv/drXQEEKZv r7m6soYWzJhWNG8DtGGze7buaCJXb78U6U6AxLowlJ2JwBNRCDwPlhsxb4J57RwAK76x QG2GGLZ0Rn3eTO7zRCO7cV5wC/wsnhc5TjcrlxUsUHVnEDSU9dJ43Ei3S7lTrBrzZfUD n3pA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=UpItrfm/12uCk7WJ0JxhYqbLmZEWF/7b8kL62mAkLlo=; b=m3e8e2sPqmUCsveKDUGZiKxaaM0uZmjmwiq/3R3fUAAE1Sz+ioq56sKrQRd4B8p/zk 4gdDNIZ32GXGkfO2+5AOpJoIFSHnd+Te3Eq4QA4WQKed4Tl8clYwuauN0fTgXwrEJIK+ hWuxqJiwEsZURlV3Dqt7sciSF3WSIYvtNhGBKFkshb3u/oxG6wlAWOUWRTLw57RloHsL ZhNukQqBcYUdOZ7fGAI3hiMMVbhcPa556w/BAz+kFxT/3eP3Szsh2dKHXdhNkrl2rtlJ AIbUOfY/BhP1S3c+BUnwPd1Km+GVr4d5bGmvw+in3a5ufV7EgoYfHW8k7zebJioNk2qR uASA== X-Gm-Message-State: APjAAAUrhUy5GFMcQVOR4q//xpn3M3nEakSgJ8hamClgiE7pmcA4IDLF Q2b2kHC+Jr+azZe+BZOkroOrpKXEh9Q= X-Received: by 2002:a62:2ccf:: with SMTP id s198mr18480760pfs.216.1569801322359; Sun, 29 Sep 2019 16:55:22 -0700 (PDT) Received: from akuster-ThinkPad-T460s.hsd1.ca.comcast.net ([2601:202:4180:a5c0:edf9:811d:ad92:85c2]) by smtp.gmail.com with ESMTPSA id p190sm14474778pfb.160.2019.09.29.16.55.21 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 29 Sep 2019 16:55:21 -0700 (PDT) From: Armin Kuster To: openembedded-devel@lists.openembedded.org Date: Sun, 29 Sep 2019 16:55:03 -0700 Message-Id: <206ee91b621de630fcfb4e792eb0fa8627b11b29.1569801183.git.akuster808@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: Subject: [oe] [warrior-next 05/10] klibc: Disable bcmp builtin for clang on glibc as well 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: , MIME-Version: 1.0 Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org From: Khem Raj Signed-off-by: Khem Raj (cherry picked from commit 806fbbf81788648e567dc79c2bea98de69f79cc0) Signed-off-by: Armin Kuster --- meta-initramfs/recipes-devtools/klibc/klibc.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 -- _______________________________________________ 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/klibc.inc b/meta-initramfs/recipes-devtools/klibc/klibc.inc index 7faf0ca..86aae33 100644 --- a/meta-initramfs/recipes-devtools/klibc/klibc.inc +++ b/meta-initramfs/recipes-devtools/klibc/klibc.inc @@ -34,7 +34,7 @@ ARMPATCHES_arm = "file://klibc-config-eabi.patch \ S = "${WORKDIR}/git" OPTFLAGS = "${TUNE_CCARGS} -Os" -OPTFLAGS_append_libc-musl_toolchain-clang = " -fno-builtin-bcmp" +OPTFLAGS_append_toolchain-clang = " -fno-builtin-bcmp" PARALLEL_MAKE = "" EXTRA_OEMAKE = "'KLIBCARCH=${KLIBC_ARCH}' \ From patchwork Sun Sep 29 23:55:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Armin Kuster X-Patchwork-Id: 174700 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp6444727ill; Sun, 29 Sep 2019 16:56:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqyrqJqmKl1T28qpzNo+SYCz4m1+vZIBJPxGPWl35APxSp3WtQEi/HaPNqrzYiSniqXo9ylG X-Received: by 2002:a17:902:9044:: with SMTP id w4mr16688504plz.228.1569801410910; Sun, 29 Sep 2019 16:56:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569801410; cv=none; d=google.com; s=arc-20160816; b=krnA9EbNcUwFvVO/+qWucJPGqoV01aZBF73vYxI5i/aGl3MOV3l/0Ps4MNYeSxm4tQ mYiEGH3TLw01YF/Si46THVRUP357MXlvA5ckugtYP1sfN8ErIvX0mhqX/qiad6FchE5e JayMxJ038oeo9/PcDDfGChQa4D3Uh0XHUMoYuDsLQt/YPv9dT+Qoez8EbhXIqlzNw/+Q 5zdnPfPl8hn4/2rANRrq2u+HGVhCxGhSq82G9t5dfDrJjohLdsTKPgNyaIrtTEMn5tKu rVm1Fc3YqEAc37SRFFQClNAjMpvjrs+LYt77U+vRWnjJGRZkT+n0hL70/ySNeUHrhSB8 iIXQ== 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; bh=K2WpGqjea9ief1PiBtI/esmcZURkxdPbjCzd8qY83Lo=; b=HzulKxgKN9E/ng3Y3RwaihT5r+eXuVupkiLDb0MDmaG13RjgdkMtlU8Vaxg+b5N5PE w/O0h50iVxllXQQ9VWXQN0H+Sfg8508eD5J1crA/+wzhw/wNakSL2AFiTwsFcnxam/js uM8d+ZSktgmnCqNUvHX6+hexM0TW2i/t8Omd8IItBnwepzmIex0sk4oYy8Q5U2I1bplC 9+gIun7Pv+1fVtmk1VX+twJtU+iIwNy6Vf3Q1cXTHz1vVb3loyVE6+X1iHE+zJ3/WP1B 5Edo+1tvZVuFQbA86oaaKxiO7cRO4PaPoo+Aa8PxqNPcbCVGRlMw+AvX/6ki9Y7HQtY+ Qe1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b="BCZ//APG"; 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 j3si10385977pfi.199.2019.09.29.16.56.50; Sun, 29 Sep 2019 16:56:50 -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="BCZ//APG"; 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 242CB7F2EA; Sun, 29 Sep 2019 23:56:19 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pf1-f194.google.com (mail-pf1-f194.google.com [209.85.210.194]) by mail.openembedded.org (Postfix) with ESMTP id 8C6917F281 for ; Sun, 29 Sep 2019 23:55:22 +0000 (UTC) Received: by mail-pf1-f194.google.com with SMTP id q7so4495097pfh.8 for ; Sun, 29 Sep 2019 16:55:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=ObP6cnjm3WasINurilKzWRcavrYn46HbOvg//zwK4+0=; b=BCZ//APGPevN3ikhH/EuaZjSCalAlWsHZYQYwD3kq5y7K6bbZGtP3OxluSyI2B0C2T c9jhQoXnaI/6FIBtzqmCZ1kwIIHyD71SmINo0rhkvGvP4c43PYjtTqmB3YH6EtfAdxKJ qBJdhlUInfg+twSPr2xyfniKviuX01TQwmQrkCjw7t6kxGfdVxZGEeIa2FfCyUDurRSs Ra9rLu0NsmhclT4xXdprruLgNLktGkLnfzzayRrNm7BGgi69WcnasZm4qNDpOeYn25fR VoshalCBnR+cDKu8rb2G0DLz0MC8jNRfOtOBLtUHtFJwxa2O05eljzjn8E04jeQ5lozW lyQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=ObP6cnjm3WasINurilKzWRcavrYn46HbOvg//zwK4+0=; b=lBY0KcamXDW5g2BywbAaHlPFiNtsipONahsP07jF+cnhjmaGaA3ObK9K8ub/JpRRBc +gUhjxxhq7sl/PNaXtRbIg7ztqV62WJJiUb2hOHa+L81lX5fpe5/HjLIvhPfovoE3TV5 GsXKkD3D5hrQ06qUY2ePNAdjE8+ZCV+gwQz0c4YeisvhZVYXFzn1OTf9/tf7RUViJVzK +4Si0BI17hpKEN2imZ9XZOsT183s5WrpYjMXoiaUXQiDW0+xaJ92rTBUYK67U0Qi8s3Q GMUjQbceDAknrSIVwD23vJidBQPKJr/r3nmSzc0kg+0ZIJBOTiFj9F1wtWTY/+Jxqmac 1hYQ== X-Gm-Message-State: APjAAAV8KYBdMI8KR8jMGVo6dWeM9RDjg+Sg5DBNFxoBg23PC63vseS8 ArDSCw5kYrkzhPFu3+KytJOn6zNvLJ4= X-Received: by 2002:a65:6102:: with SMTP id z2mr21156396pgu.391.1569801323370; Sun, 29 Sep 2019 16:55:23 -0700 (PDT) Received: from akuster-ThinkPad-T460s.hsd1.ca.comcast.net ([2601:202:4180:a5c0:edf9:811d:ad92:85c2]) by smtp.gmail.com with ESMTPSA id p190sm14474778pfb.160.2019.09.29.16.55.22 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 29 Sep 2019 16:55:22 -0700 (PDT) From: Armin Kuster To: openembedded-devel@lists.openembedded.org Date: Sun, 29 Sep 2019 16:55:04 -0700 Message-Id: <6748bb66d50cab6acb56a0c4596d9d3c7650e4fb.1569801183.git.akuster808@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: Subject: [oe] [warrior-next 06/10] 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: , MIME-Version: 1.0 Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org From: Khem Raj Signed-off-by: Khem Raj (cherry picked from commit ab3072ee4cf555eb5eb8b6200fd0ffb3eab3f947) Signed-off-by: Armin Kuster --- .../0001-Fix-missing-include-in-sys-mman.h.patch | 36 ++++++++++++++++++++++ meta-initramfs/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.7.4 -- _______________________________________________ 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 0000000..4bedef8 --- /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 86aae33..26689f8 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 ?= "" From patchwork Sun Sep 29 23:55:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Armin Kuster X-Patchwork-Id: 174701 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp6444834ill; Sun, 29 Sep 2019 16:56:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqwEHPwB5ho0uA2oIO0Pdebf4XO2Z9QFue+Jsy3abS0A9M1XUX3QJ8O2c+7eU6gO2hJWpzHq X-Received: by 2002:a63:475d:: with SMTP id w29mr21458344pgk.46.1569801418618; Sun, 29 Sep 2019 16:56:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569801418; cv=none; d=google.com; s=arc-20160816; b=JDuSFB4c3DjF/Y+/syJJLi0LVd44sBk18Iho8uu2GZaxsNMI0+MNoGPjiYyPuW/3S+ pivtU6KkS+3qW+4LrbdfqQDprsj2pT7Silt/snfcU5F/Hzw+1ZEgMgDd7INvVMd7Yn5+ LggM8z8+rvhoSUOFWOBfH1QPZBbIUWwSggRiCbe2RWFZNsvYi1OClmjpLJTNtJOnbkSk fKaouk3dZnrAcZKGYf+vpTya4Pn+e5FXgWC+UnfB/gZDNID37EGiDKxCpnKEHIZ0nbw1 2na2SGywdsGdoKuc+4gZAfSCSFXsqu4TiBuvGb5a4t5Yk7T0ufoJFUh7mluWBUBM6JwD J5lw== 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; bh=P5ATCzxIhpmV2T5RYUft6t+9QyYxACUhrVwQavnrStc=; b=ZxKCojj/vWXM/ToALs9jlb5Do6dEf9EKwCsi3caHsd2/uUb9WzvkfrKMTfQ4b49CKh ZPX/GsGyjkq9Iq9OsLhB/iba5ED5w4EwjZ3RWf35+FWyaHCGZO72efM05nv04nPQZBmO qqy3D4P84VoAjD8XOv93EY90Qtk5Co+TscAINAcUkT4mMfqyzw49uFjyZOijK1/Z1vGq U9GrwGyfyEWr4wdz20T/zmBzNB1A7zC78SvRyBI8jIAg/dxPSeeKDTSrY5P3BY0Is65X +Azmghx4qQxzTUN1YSDXh/nluV9yrfEOpZoL1ZvHLqQ6RuxHfspRSmPNQnTrPWXkp21K EIYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=SyfdDzvq; 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 123si10765332pfx.189.2019.09.29.16.56.58; Sun, 29 Sep 2019 16:56:58 -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=SyfdDzvq; 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 498307F2F1; Sun, 29 Sep 2019 23:56:20 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@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 8BF307F281 for ; Sun, 29 Sep 2019 23:55:23 +0000 (UTC) Received: by mail-pf1-f195.google.com with SMTP id a2so4491709pfo.10 for ; Sun, 29 Sep 2019 16:55:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=ArQrmhMTUaLiIL6VjFftZwTl2x/46SQLBDIlzVKmD7s=; b=SyfdDzvqMWVvBGK65t5xeFuhUanZILEIma9vD85u3TjggVj5yhfgLTYqc/RsKVsq99 PidjMj2CAxZt5IXmEH1PsD1Lqg+3zApJHqHG40iDf2tQbd3bPiXBfl2K9kwTliTwx5i2 v8MOrB7uULEYVOCN3t4JuXyS3nNm0K8ZvRKC7N24KI4+fgZq30sXPA2jCmHEHugTOewM zfN/BjESztRfcfQes3GLvaIeQDEXkCkMa7nRncAufpmpRvUCz3WYtH1tkZijqcHp6dWb hyQ1xhcpFceqMMJUODwdU9D2NRj2+8fWnGKYr9REQtgUPXciudY5v6JFFb70ZkL2p8yA FdEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=ArQrmhMTUaLiIL6VjFftZwTl2x/46SQLBDIlzVKmD7s=; b=RAYnUrJK5chCfJGGhxlKUQr+WMNt04onI5tdWzbo+5TVCkkoaSrxDt9mUvjTrf28O8 ZwQnLmptwbFFxCDGwfe+du5zLuEEcTd2uTAE9HbiC/yxoVlELjO1D/qeGGaoI62I3c5i Vu9SECaTAL0IthxdPkhoI32uDxaOjgqByQpsSTOdBAXkvlFUsMgrBT1slgBFXZ8jK84t w48U8u5OQyNsfFiDQrYjxdrTKyWKoPZeD+g+hGGsrry3NK0/RHP04L84wTpouT6bwMgM 2RjryTUpSoNOHdPM2G7EPj0NyggOfixnr1nvBc3rdi94Wy5ZF9ihMm+Bu+9OumoJZIYQ zEHA== X-Gm-Message-State: APjAAAUWq2bypftF9016OpTxSDwsC0R+mBkY2+9/9/QCn/WV+1Tw2z56 fv7hFjT+9YTD34n2om+2QC7env8kkL4= X-Received: by 2002:a65:4002:: with SMTP id f2mr21516456pgp.447.1569801324585; Sun, 29 Sep 2019 16:55:24 -0700 (PDT) Received: from akuster-ThinkPad-T460s.hsd1.ca.comcast.net ([2601:202:4180:a5c0:edf9:811d:ad92:85c2]) by smtp.gmail.com with ESMTPSA id p190sm14474778pfb.160.2019.09.29.16.55.23 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 29 Sep 2019 16:55:24 -0700 (PDT) From: Armin Kuster To: openembedded-devel@lists.openembedded.org Date: Sun, 29 Sep 2019 16:55:05 -0700 Message-Id: <7121ffac6230e8fe0ff09fcf98906bab03e27a75.1569801183.git.akuster808@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: Subject: [oe] [warrior-next 07/10] bpftool.bb: Disable SECURITY_CFLAGS 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: , MIME-Version: 1.0 Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org From: Khem Raj We do not pass CFLAGS to build and fortify sources needs some optimization to be enabled, its better to reset the additional flags and let the build system add them as it needs Fixes build failures like tools/include/tools/libc_compat.h:11:21: error: static declaration of 'reallocarray' follows non-static declaration | 11 | static inline void *reallocarray(void *ptr, size_t nmemb, size_t size) | | ^~~~~~~~~~~~ Signed-off-by: Khem Raj (cherry picked from commit d46e1e767f6b91dc25935e0c48d9d362dd50d879) Signed-off-by: Armin Kuster --- meta-oe/recipes-kernel/bpftool/bpftool.bb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.7.4 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-oe/recipes-kernel/bpftool/bpftool.bb b/meta-oe/recipes-kernel/bpftool/bpftool.bb index f75ac6f..a5df547 100644 --- a/meta-oe/recipes-kernel/bpftool/bpftool.bb +++ b/meta-oe/recipes-kernel/bpftool/bpftool.bb @@ -10,7 +10,9 @@ inherit bash-completion kernelsrc kernel-arch do_populate_lic[depends] += "virtual/kernel:do_patch" -EXTRA_OEMAKE = "-C ${S}/tools/bpf/bpftool O=${B} CROSS=${TARGET_PREFIX} CC="${CC}" LD="${LD}" AR=${AR} ARCH=${ARCH}" +EXTRA_OEMAKE = "V=1 -C ${S}/tools/bpf/bpftool O=${B} CROSS=${TARGET_PREFIX} CC="${CC}" LD="${LD}" AR=${AR} ARCH=${ARCH}" + +SECURITY_CFLAGS = "" do_configure[depends] += "virtual/kernel:do_shared_workdir" From patchwork Sun Sep 29 23:55:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Armin Kuster X-Patchwork-Id: 174702 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp6444937ill; Sun, 29 Sep 2019 16:57:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqxCePicMdkORKJvcGAT6/26wYWo4GLxTpR7d05HsvP4qoBYQVzRPQ4o7QM9BzDnQTxdf6sv X-Received: by 2002:a62:3844:: with SMTP id f65mr18662873pfa.142.1569801426257; Sun, 29 Sep 2019 16:57:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569801426; cv=none; d=google.com; s=arc-20160816; b=pCIvBiFzkbLhDdW2j/m8SHPeClD+j6iRqAWVeXD5qJ7fCWJ+sR7LLmfD+qzXUrouKe grviAnAPLkQnLk4wEfm0BCZcit0vNrSMNsXKxq8LgQZR7p2MjOmoPWQdo+1U0M7grNho xuF6znHE4C57opERiDQVowM0dU6r0tOYoab2mg0OMSJon/7xpTpp2h+GYlgnGa9HdbnQ LV3uZVXNXzPoD99cJrRXPdz6WCd1kkPmdxmo0Lc4KeSKIUeecCM7AC8o9wAMLdoJrdSz IqkyptQLrk7coim29XfQ2clwzSGAc3Ave6NidRuPlOkgjORazRKSSF+iqnJiEEE8fWs9 vsYg== 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; bh=zRBVNQd3wkR47jncjA1SdqxJzOzjxtEl8RnejMrNstU=; b=IKg4pcGbnoPKghZ+sS/wADH7SQx90xttYg4OTQBxrudxFkfr0b2h9fFPN0hufOsXpj jZE2yM4tVtOLzr8tgiC/AdGLvt9zGLH6stAXW9RdpHVxPf7CSOu4nDFgoJurhfr5ftuM qAzspQRDuDjavgesBPcMfuM6+p/n/AaSLDEAmG2NK/5Av1L84gyWCPDejL0MR/4jEQXt Ty/Husi6ec7hyG46/4AQXJ5opLI8n6uxPODdCxQnCncNTqjPEcOz2if6nK879CDDPciM A7zIdOrQH9zMIZYQ8NsG2W1nTgoMyJRBsNLUM/owSI96kGj7MW8K+Pp6BdiQ8roNqXi3 ulkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=FbmZejub; 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 w10si9447445ply.130.2019.09.29.16.57.05; Sun, 29 Sep 2019 16:57:06 -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=FbmZejub; 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 743F57F2FA; Sun, 29 Sep 2019 23:56:21 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pg1-f177.google.com (mail-pg1-f177.google.com [209.85.215.177]) by mail.openembedded.org (Postfix) with ESMTP id 63ABD7F2B1 for ; Sun, 29 Sep 2019 23:55:24 +0000 (UTC) Received: by mail-pg1-f177.google.com with SMTP id a24so6340666pgj.2 for ; Sun, 29 Sep 2019 16:55:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=PEqWDfRXHEVSLWj+xyD1p4p+vkFidV8qcfM21hdbrYs=; b=FbmZejubUIgelsr7QXlVXYm2JLn2JStrl8JAQ3JcHI9N+xXd/8nGo/nYNoHSacwTKf BGS7xkxt5MDbuIakklMUy5RTC2PuokYir1HqLpNC2R2rH7KComao1ZlbN3eReOlrPy9L bHdSO2yIPVh0svrSz4hD/ejk0yKnG6D4YOm1Ap24KwUjzEINyD6L1NFUQ7pcqcu6yWov 8p+zOudvpFpqJrSC6pcljzLJ8TIvwqwxW9CzrSshixZ+GdIOSsqf7FvEVdfCeKrUzx7R 7ESmpDjbWel8z+zfC+ERvaNHbk6VEm3hPXL95qiU0owzvU4Y4t3BXEyf/+JAeqwipluk OsEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=PEqWDfRXHEVSLWj+xyD1p4p+vkFidV8qcfM21hdbrYs=; b=YNhYN0kZ5+49AKhR/JRgjPAw4gTXUEo0T5SPVSK1yA/jHG3O37AkkmmfdG7H9ZsIrt gFUVRxXdsh85CIKrTU6uVofaPbHr1nyqqNK0Mp2+Lsf12lBgJ73SnDZ8DH5kunXPolVD Gt8lhrqR9LN0dLIim3tawmUUuYGPkHdPcwLzbtRmV/AfcdJqdvfyZ11l/Gbd6PDYvOZf LyYixiN9SHaQZNHp2IlspMafSRjDNNwlejeU3R+yO/P54hsQTdVC/iOj/XCIzbtstxyr G/bp/Y7fMZjpSMFeoBF1n2oyWk4ns3PjEqRw/trTa1AsQCX0SP+p72W0fEtXF7bh+gbX 5jxw== X-Gm-Message-State: APjAAAWDDznKsUAwNjpEogn3sGSJVHSwo7Icj8WpXB3xXTpkSrzb/oKr b6C3UO1kjPiVtVefvLz8HC7kg0tSHiI= X-Received: by 2002:a62:8749:: with SMTP id i70mr17604449pfe.12.1569801325332; Sun, 29 Sep 2019 16:55:25 -0700 (PDT) Received: from akuster-ThinkPad-T460s.hsd1.ca.comcast.net ([2601:202:4180:a5c0:edf9:811d:ad92:85c2]) by smtp.gmail.com with ESMTPSA id p190sm14474778pfb.160.2019.09.29.16.55.24 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 29 Sep 2019 16:55:24 -0700 (PDT) From: Armin Kuster To: openembedded-devel@lists.openembedded.org Date: Sun, 29 Sep 2019 16:55:06 -0700 Message-Id: X-Mailer: git-send-email 2.7.4 In-Reply-To: References: Subject: [oe] [warrior-next 08/10] linux-atm: Fix build with kernel headers 5.2+ 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: , MIME-Version: 1.0 Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org From: Khem Raj Signed-off-by: Khem Raj (cherry picked from commit dff93352c83660f965771a3dc91f39ff23b685c5) Signed-off-by: Armin Kuster --- ...mdump-Include-linux-sockios.h-for-SIOCGST.patch | 59 ++++++++++++++++++++++ .../recipes-support/linux-atm/linux-atm_2.5.2.bb | 1 + 2 files changed, 60 insertions(+) create mode 100644 meta-networking/recipes-support/linux-atm/linux-atm/0001-saaldump-atmdump-Include-linux-sockios.h-for-SIOCGST.patch -- 2.7.4 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-networking/recipes-support/linux-atm/linux-atm/0001-saaldump-atmdump-Include-linux-sockios.h-for-SIOCGST.patch b/meta-networking/recipes-support/linux-atm/linux-atm/0001-saaldump-atmdump-Include-linux-sockios.h-for-SIOCGST.patch new file mode 100644 index 0000000..a54869d --- /dev/null +++ b/meta-networking/recipes-support/linux-atm/linux-atm/0001-saaldump-atmdump-Include-linux-sockios.h-for-SIOCGST.patch @@ -0,0 +1,59 @@ +From 4456e13880803a300e4b6f263ad22a37481b5df5 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Thu, 29 Aug 2019 09:33:43 -0700 +Subject: [PATCH] saaldump,atmdump: Include linux/sockios.h for SIOCGSTAMP + +In linux kernel commit 0768e17073dc527ccd18ed5f96ce85f9985e9115 +the asm-generic/sockios.h header no longer defines SIOCGSTAMP. +Instead it provides only SIOCGSTAMP_OLD. + +The linux/sockios.h header now defines SIOCGSTAMP using either +SIOCGSTAMP_OLD or SIOCGSTAMP_NEW as appropriate. This linux only +header file is not pulled so we get a build failure. + +Fixes +../../../linux-atm-2.5.2/src/maint/atmdump.c:142:18: error: use of undeclared identifier 'SIOCGSTAMP' + if (ioctl(s,SIOCGSTAMP,&stamp) < 0) { + ^ +1 error generated. +make[3]: *** [Makefile:623: atmdump.o] Error 1 +make[3]: *** Waiting for unfinished jobs.... +../../../linux-atm-2.5.2/src/maint/saaldump.c:169:14: error: use of undeclared identifier 'SIOCGSTAMP' + if (ioctl(s,SIOCGSTAMP,&stamp) < 0) { + ^ +Upstream-Status: Pending +Signed-off-by: Khem Raj +--- + src/maint/atmdump.c | 2 +- + src/maint/saaldump.c | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/maint/atmdump.c b/src/maint/atmdump.c +index 8b17826..9e4853b 100644 +--- a/src/maint/atmdump.c ++++ b/src/maint/atmdump.c +@@ -5,7 +5,7 @@ + #if HAVE_CONFIG_H + #include + #endif +- ++#include + #include + #include + #include +diff --git a/src/maint/saaldump.c b/src/maint/saaldump.c +index 83bdde9..69429a8 100644 +--- a/src/maint/saaldump.c ++++ b/src/maint/saaldump.c +@@ -5,7 +5,7 @@ + #if HAVE_CONFIG_H + #include + #endif +- ++#include + #include + #include + #include +-- +2.23.0 + diff --git a/meta-networking/recipes-support/linux-atm/linux-atm_2.5.2.bb b/meta-networking/recipes-support/linux-atm/linux-atm_2.5.2.bb index 9ed7ca6..e594906 100644 --- a/meta-networking/recipes-support/linux-atm/linux-atm_2.5.2.bb +++ b/meta-networking/recipes-support/linux-atm/linux-atm_2.5.2.bb @@ -12,6 +12,7 @@ SRC_URI = "http://nchc.dl.sourceforge.net/project/${BPN}/${BPN}/${PV}/${BPN}-${P file://0001-ttcp-Add-printf-format-string.patch \ file://0003-mpoad-Drop-old-hack-to-compile-with-very-old-glibc.patch \ file://0001-IFNAMSIZ-is-defined-in-net-if.h.patch \ + file://0001-saaldump-atmdump-Include-linux-sockios.h-for-SIOCGST.patch \ " SRC_URI_append_libc-musl = " file://musl-no-on_exit.patch" From patchwork Sun Sep 29 23:55:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Armin Kuster X-Patchwork-Id: 174703 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp6445025ill; Sun, 29 Sep 2019 16:57:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqwZu2iEUX0DU9EQoDZZtPjql6JXZ5jb3WgOetCVeA+xopGEAbuAsU4q3dfaDkZoeCXN6lvP X-Received: by 2002:a63:1a5a:: with SMTP id a26mr21644328pgm.178.1569801433592; Sun, 29 Sep 2019 16:57:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569801433; cv=none; d=google.com; s=arc-20160816; b=te8bAjWLp0gl9EpCtNLMo2lnXmRCbo7xo7JTinQfKorHSgnxLFOjbqqm+Pa/Ci08jR tz/r/ZLyk2zPj0BTJEijalmfMgzMm2G1XdflM9p+GPUcOG61srFQ6SvdWyS1ws/pkFly JOOW6e8pTfhhtRJ+pUTVjbDkOz6KgrQBm1fQrH8deY+nBw5crYdXRTANyAQxtG1Tl36e 3Q5hDLSxcgQj9+N8YKRH+WXRr9pDI0CO+RSHE7CG/IhN5MFmF6cditIbFWHAEL3C0N66 D1ZR3zO9+GJwpxa6l6sA7ezRwcwdkw6KehHjn1Qqk3BW2B7vuly/yocuoCmCgLIpfeLL rfTw== 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; bh=4xk1HGYpKjjrLT3ZFEjk87PUmEOGiKjIyprOQDtX7Xs=; b=iPpDF3SG27GZbChRWf+OwktLY/IdC9N4XA00QHAut54CJhwwKfhXKh9x0XjwzjW2NY 8XrRH7/2rUelDt79iFTtQyfjgFzDF+rpHxHVlz49XdilBz7jGs3woGnK4dZKg7HqilcM 6dD5e5pfUh/Sp7c9fCqiWZ5EeneALWWvt2NpF9JquwFKhUMUrvGC0e9AWiuSwrtNpY2A mvBhlBc2RQPgrq/C4d26MzDrxa7d6WvwkJZTrWm0Zq/mzadcdx2PA33bGdlUb2Z86dsn 2ObDXA7iiq3AMp9j8/S1cFE81u08Wkf3t7pIaW/PPWzvDAa1U2QwS8Ol0kytp8fl3iKc 1gBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=oniLaPNZ; 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 h11si10775470plr.384.2019.09.29.16.57.13; Sun, 29 Sep 2019 16:57:13 -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=oniLaPNZ; 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 9CE687F304; Sun, 29 Sep 2019 23:56:22 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pf1-f194.google.com (mail-pf1-f194.google.com [209.85.210.194]) by mail.openembedded.org (Postfix) with ESMTP id 7D8E47F278 for ; Sun, 29 Sep 2019 23:55:25 +0000 (UTC) Received: by mail-pf1-f194.google.com with SMTP id 205so4512175pfw.2 for ; Sun, 29 Sep 2019 16:55:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=2voOa26MMBJ4XiiFd6qiEctK9a83dDlZ9oBKX1JsEJc=; b=oniLaPNZ27Y519PKFHRL4Y+jjQTqM6jUbwe1LyYCGtUnMMc3ZeaR/KdV1r96I9/1Ri 9/wbtkMlDJQILMYKc037rIKEozaV1TYw1CW0FwG3TgtYJCdtKa2ewv5GleNQguTIondD FTJJkN34+n+ANT7nsxD1tH9Nij3NjRepw0DkrMIi09dSZ5I1OluEoi6fPECpVWBsyiJF o2m3lGwGk1NX92YCvXONhhn6RLfWH0n+cR9L5WbtH7l3XUdJPGgZhEPWcnBE3l2MY/DN R+h0iA+N1vDQDMz+b5KliQpcBE44EY2+Z2gpoVxb13Sq8oxsE4YENVnrzL/5BKVXx6ne jXSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=2voOa26MMBJ4XiiFd6qiEctK9a83dDlZ9oBKX1JsEJc=; b=Kpl9ehSgO/Iv3AngwwPoQScJU9lso3+lLDIJO+iyhESe3SKPvmwRFYiszonVcKAZ9Z 3XslJi9z/flC8Kz1kiaCybY1gRiehsM/nOUSc9IxWnQg7de27czG6bLJqW7z4w6XrcTo SJp/Pw/S2yGQMPvvMlt2XQFwtBYDVz3LbWDq0c4Odbn32EsAkhZnGuwkjNHPQcemGwHt K9XgeA9mll3j9MaVcgoAe6rARvACEqLqDVrHfFr7uo3q2NmSChDoBfVXRwm3gSAgQ7Vl FqV6j0FlwDCYURnqATCxteWOYIA5tIuVyaxRsY6qqwnTC2512+IrgDEkeJ23BVTrp7v8 glUg== X-Gm-Message-State: APjAAAXrQZcpm3uDZ8o2lsBnmbEueP9M53ABK4oZGSS/UNMDTzF/WDhF 24qRRKDGZ0QbQ0kcP7ktXKHXQIrgkGg= X-Received: by 2002:a63:5007:: with SMTP id e7mr20315950pgb.2.1569801326470; Sun, 29 Sep 2019 16:55:26 -0700 (PDT) Received: from akuster-ThinkPad-T460s.hsd1.ca.comcast.net ([2601:202:4180:a5c0:edf9:811d:ad92:85c2]) by smtp.gmail.com with ESMTPSA id p190sm14474778pfb.160.2019.09.29.16.55.25 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 29 Sep 2019 16:55:25 -0700 (PDT) From: Armin Kuster To: openembedded-devel@lists.openembedded.org Date: Sun, 29 Sep 2019 16:55:07 -0700 Message-Id: <42f877f211aaa1b6299dc222c29f1c2d786a2987.1569801183.git.akuster808@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: Subject: [oe] [warrior-next 09/10] can-utils: Fix build with kernel headers >= 5.2 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: , MIME-Version: 1.0 Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org From: Khem Raj Signed-off-by: Khem Raj (cherry picked from commit 33608095e403cb6290ee3a100a1208e6c9faf9d0) Signed-off-by: Armin Kuster --- ...ude-to-find-SIOCGSTAMP-with-latest-kernel.patch | 106 +++++++++++++++++++++ .../recipes-extended/socketcan/can-utils_git.bb | 4 +- 2 files changed, 109 insertions(+), 1 deletion(-) create mode 100644 meta-oe/recipes-extended/socketcan/can-utils/0001-fix-include-to-find-SIOCGSTAMP-with-latest-kernel.patch -- 2.7.4 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-oe/recipes-extended/socketcan/can-utils/0001-fix-include-to-find-SIOCGSTAMP-with-latest-kernel.patch b/meta-oe/recipes-extended/socketcan/can-utils/0001-fix-include-to-find-SIOCGSTAMP-with-latest-kernel.patch new file mode 100644 index 0000000..cbf3aee --- /dev/null +++ b/meta-oe/recipes-extended/socketcan/can-utils/0001-fix-include-to-find-SIOCGSTAMP-with-latest-kernel.patch @@ -0,0 +1,106 @@ +From 20981c8a328747f823b7eef68d0c2812b3eaed30 Mon Sep 17 00:00:00 2001 +From: Fabrice Fontaine +Date: Sun, 14 Jul 2019 21:50:43 +0200 +Subject: [PATCH] fix include to find SIOCGSTAMP with latest kernel + +In linux kernel commit 0768e17073dc527ccd18ed5f96ce85f9985e9115 +the asm-generic/sockios.h header no longer defines SIOCGSTAMP. +Instead it provides only SIOCGSTAMP_OLD. + +The linux/sockios.h header now defines SIOCGSTAMP using either +SIOCGSTAMP_OLD or SIOCGSTAMP_NEW as appropriate. This linux only +header file is not pulled so we get a build failure. + +canlogserver.c: In function 'main': +canlogserver.c:404:21: error: 'SIOCGSTAMP' undeclared (first use in this function); did you mean 'SIOCGRARP'? + if (ioctl(s[i], SIOCGSTAMP, &tv) < 0) + ^~~~~~~~~~ + SIOCGRARP +canlogserver.c:404:21: note: each undeclared identifier is reported only once for each function it appears in + +Fixes: + - http://autobuild.buildroot.org/results/363de7d9bf433be8bc47ba4ee52ae0bb80fa9021 + +Upstream-Status: Backport [https://github.com/linux-can/can-utils/commit/e9590b1ca75d360eaf3211bebd86058214d48064] +Signed-off-by: Fabrice Fontaine +--- + canlogserver.c | 1 + + cansniffer.c | 1 + + isotpdump.c | 1 + + isotpperf.c | 1 + + isotpsniffer.c | 1 + + slcanpty.c | 1 + + 6 files changed, 6 insertions(+) + +diff --git a/canlogserver.c b/canlogserver.c +index e3350b7..f53165c 100644 +--- a/canlogserver.c ++++ b/canlogserver.c +@@ -61,6 +61,7 @@ + + #include + #include ++#include + #include + #include + +diff --git a/cansniffer.c b/cansniffer.c +index 7b0a3fa..bf7d72e 100644 +--- a/cansniffer.c ++++ b/cansniffer.c +@@ -61,6 +61,7 @@ + + #include + #include ++#include + + #include "terminal.h" + +diff --git a/isotpdump.c b/isotpdump.c +index b2b650a..36d8af3 100644 +--- a/isotpdump.c ++++ b/isotpdump.c +@@ -55,6 +55,7 @@ + + #include + #include ++#include + #include "terminal.h" + + #define NO_CAN_ID 0xFFFFFFFFU +diff --git a/isotpperf.c b/isotpperf.c +index db3a2b7..5852a57 100644 +--- a/isotpperf.c ++++ b/isotpperf.c +@@ -56,6 +56,7 @@ + + #include + #include ++#include + + #define NO_CAN_ID 0xFFFFFFFFU + #define PERCENTRES 2 /* resolution in percent for bargraph */ +diff --git a/isotpsniffer.c b/isotpsniffer.c +index f42e18b..d7a4c66 100644 +--- a/isotpsniffer.c ++++ b/isotpsniffer.c +@@ -55,6 +55,7 @@ + + #include + #include ++#include + #include "terminal.h" + + #define NO_CAN_ID 0xFFFFFFFFU +diff --git a/slcanpty.c b/slcanpty.c +index 431ca68..7dfaf5c 100644 +--- a/slcanpty.c ++++ b/slcanpty.c +@@ -40,6 +40,7 @@ + + #include + #include ++#include + + /* maximum rx buffer len: extended CAN frame with timestamp */ + #define SLC_MTU (sizeof("T1111222281122334455667788EA5F\r")+1) diff --git a/meta-oe/recipes-extended/socketcan/can-utils_git.bb b/meta-oe/recipes-extended/socketcan/can-utils_git.bb index a2d62c3..db5055f 100644 --- a/meta-oe/recipes-extended/socketcan/can-utils_git.bb +++ b/meta-oe/recipes-extended/socketcan/can-utils_git.bb @@ -5,7 +5,9 @@ LIC_FILES_CHKSUM = "file://include/linux/can.h;endline=43;md5=390a2c9a3c5e3595a0 DEPENDS = "libsocketcan" -SRC_URI = "git://github.com/linux-can/${BPN}.git;protocol=git;branch=master" +SRC_URI = "git://github.com/linux-can/${BPN}.git;protocol=git;branch=master \ + file://0001-fix-include-to-find-SIOCGSTAMP-with-latest-kernel.patch \ + " SRCREV = "4c8fb05cb4d6ddcd67299008db54af423f86fd05" PV = "0.0+gitr${SRCPV}"