Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 4D46FE00B62; Thu, 11 May 2017 09:58:02 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM autolearn=no version=3.3.1 X-Spam-HAM-Report: * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider * (raj.khem[at]gmail.com) * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's * domain * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature * 0.5 RCVD_IN_SORBS_SPAM RBL: SORBS: sender is a spam source * [209.85.192.193 listed in dnsbl.sorbs.net] * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [209.85.192.193 listed in list.dnswl.org] Received: from mail-pf0-f193.google.com (mail-pf0-f193.google.com [209.85.192.193]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 2E0A3E0095F for ; Thu, 11 May 2017 09:57:58 -0700 (PDT) Received: by mail-pf0-f193.google.com with SMTP id a23so3901891pfe.0 for ; Thu, 11 May 2017 09:57:58 -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; bh=5PhVwiIkEDL0KfLy98ZzmKN7m25c3xwVoSKeFqqiNZY=; b=hjGu4MZ5t9bZofanJ8wjr5OUjWGEcYLfryGmwKUvhsHLbu2/BvFExqKzMpJKMPjgS4 /SVm5Wf1WOyaCj/KZBylmM/7ikqjM5IYIZI0q/X0lbuPlP+mXjDWUne+SsgVoWnQvJeN Q7ZwUo3K5Jg4muvjKEcdgU0KgO5ivtcAg5XJzNkhb5Ce5/Td04AHJjw2pG12cSq3cKC7 6pwlnMV6vKfxoQ8ZNQEwqkL/P6ko3ssHKgsMcVxZIsRoahU790iqeXkShuvjdmyKHcku pUiu/HhHB8s4mIyFZrCjqCJBr6LENZI1va/MhizsUPRfOrGcHryHzOUFpNaje9guB8P4 MDCA== 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; bh=5PhVwiIkEDL0KfLy98ZzmKN7m25c3xwVoSKeFqqiNZY=; b=C1YFDEsGXiOnzM4ZqbzIT91I8PteURfB86O54Q9u2W1Txd81Ish+jppfFwXDEyOU+7 meWDnn/yDM68b/EjnGDlMfCWXxbOL0lyoSdWWGhpTN+24qjctJGBu5oMQjfb+KzdZtme edETpgF+zI5ziceOfSpiQdmY8apzJmFSIiy+A+Bs5gnZ3BoMBp8vxhQKPMkt/F2swBoc zdi9swHOR+D4IvwZlGg/9eMz3xUXM0Z6dSs5PtqMgFdsmyrI0PnYB+5QqBS806WUCPJ+ IbxvTe7reAlhtBbU4JynJqovjcANgoDmFbyBOiOXvtWG1xpF2RGdXgM+r9LMrWd7qfNr KSYQ== X-Gm-Message-State: AODbwcA4e4EZ7hU46QMh567tI8ELeuL+p4My7GUW9iKDTFJbB4eJM02X sQK6mrR6HeF4huNZ X-Received: by 10.99.54.137 with SMTP id d131mr133212pga.72.1494521877656; Thu, 11 May 2017 09:57:57 -0700 (PDT) Received: from localhost.localdomain ([2601:646:8882:b8c::c232]) by smtp.gmail.com with ESMTPSA id z68sm1588778pgz.14.2017.05.11.09.57.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 May 2017 09:57:56 -0700 (PDT) From: Khem Raj To: meta-freescale@yoctoproject.org, otavio@ossystems.com.br Date: Thu, 11 May 2017 09:57:46 -0700 Message-Id: <20170511165746.17093-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.12.2 Cc: Khem Raj Subject: [PATCH] imx-kobs: Fix build with musl X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 May 2017 16:58:02 -0000 Signed-off-by: Khem Raj --- ...d-missing-includes-as-pointed-out-by-musl.patch | 33 ++++++++++++++++++++++ recipes-bsp/imx-kobs/imx-kobs_git.bb | 1 + 2 files changed, 34 insertions(+) create mode 100644 recipes-bsp/imx-kobs/imx-kobs/0001-Add-missing-includes-as-pointed-out-by-musl.patch diff --git a/recipes-bsp/imx-kobs/imx-kobs/0001-Add-missing-includes-as-pointed-out-by-musl.patch b/recipes-bsp/imx-kobs/imx-kobs/0001-Add-missing-includes-as-pointed-out-by-musl.patch new file mode 100644 index 00000000..9c86f074 --- /dev/null +++ b/recipes-bsp/imx-kobs/imx-kobs/0001-Add-missing-includes-as-pointed-out-by-musl.patch @@ -0,0 +1,33 @@ +From c183a648958ab4454247cfd88d01da7730a53d19 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Thu, 11 May 2017 00:59:07 -0700 +Subject: [PATCH] Add missing includes as pointed out by musl + +These headers are indrectly included when building with +glibc, this is exposed when compiling with musl systems + +Signed-off-by: Khem Raj +--- + src/mtd.h | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/src/mtd.h b/src/mtd.h +index 6cb0ca2..0eaea48 100644 +--- a/src/mtd.h ++++ b/src/mtd.h +@@ -25,9 +25,12 @@ + #ifndef MTD_H + #define MTD_H + ++#define _GNU_SOURCE ++#include + #include + #include + #include ++#include + + #include "BootControlBlocks.h" + #include "rom_nand_hamming_code_ecc.h" +-- +2.12.2 + diff --git a/recipes-bsp/imx-kobs/imx-kobs_git.bb b/recipes-bsp/imx-kobs/imx-kobs_git.bb index b228ab51..baa71d39 100644 --- a/recipes-bsp/imx-kobs/imx-kobs_git.bb +++ b/recipes-bsp/imx-kobs/imx-kobs_git.bb @@ -10,6 +10,7 @@ SRCREV = "b402243a04e5a6760a860445e5ff6a931d86f794" SRC_URI = "git://github.com/NXPmicro/imx-kobs.git;protocal=https \ file://fix-compile.patch \ + file://0001-Add-missing-includes-as-pointed-out-by-musl.patch \ " S = "${WORKDIR}/git" -- 2.12.2