From patchwork Wed May 31 21:02:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 769348 X-Patchwork-Delegate: f.fainelli@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3wdNHd3Q8Wz9s8J for ; Thu, 1 Jun 2017 07:03:41 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="b7IKK9k9"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="O6IvyBrD"; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Subject:Message-Id: Date:To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Jb9RvmmUP/o5JzxNUvKuljO13QJxxqf8SS1VhIGy79o=; b=b7IKK9k9rMGpml 6KWp7ETVpDivorWoaVjSeibs5Swz/xFm8mSGXnj6zeahInOpJtiuYUsF7rugtv9KmSQkiY2Sh5Rfw 41bwN2IdWEMD0Cx7TuAvZBpoOLI01Zy8eT2B5ucNERKMY7IP7qFaSnhTEa3RCuHPhVksr6Q9Hnzei hfBnbyC90EOnXXfr3WSkt2FqN5fzx5zgyxADfa9munmWSKsPHekOT4E2iYHR8Y/aFjat6raRiQztX VuM8k3rDuwtVDOjk0dZZEkowQ2U3kgtkO1CAsJZcRiKoPkM9qY/5BHESjLPwpk4uaeu1UOT7yiKyF cb49kl2la4wf7y3Hjl0A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dGAmA-0000Am-0E; Wed, 31 May 2017 21:03:30 +0000 Received: from mail-qt0-x241.google.com ([2607:f8b0:400d:c0d::241]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dGAm6-00009C-JD for lede-dev@lists.infradead.org; Wed, 31 May 2017 21:03:28 +0000 Received: by mail-qt0-x241.google.com with SMTP id r58so3420842qtb.2 for ; Wed, 31 May 2017 14:03:06 -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=4EmVOjvlh9BbwYMGSjGIU3t1qfc1trDCPtdXl/T9hQw=; b=O6IvyBrDMJVNEG9NFCrnBufflDjqq8cYIG+DmXyyXbC0KQeyqJvaWQ3h4N9Gn1z/ny 3I7BdkMvPfoDT7zJviXnXJJQNBcU8dizE757lqk7lvn4+0wgE+u96gHZwoE6q0ukzhoD JNJxUQaxjqtKNGzj679ka5QMfr9gqBHJYd16dSFGdCVe2ft4gxkL+3HOWpQxbZyA99Px F4TtzWmSx1yQaqGJdt94469hVVtthRPaOAS5IhMSGKkDgCWpB7X6jR1Sg0a62wcOVqmy PP4DNHzSq6NWN1ue+m/YxsEO37iag7Py3cwBW5yxlY4ZdzBOJAgX50e8fyCdP1kVXUn4 sI7A== 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=4EmVOjvlh9BbwYMGSjGIU3t1qfc1trDCPtdXl/T9hQw=; b=eRIg8UjtbOEctYp20xocHYjjT1Mlb6sG1CfOpCRp5bALvRfwr1UjfdeiVTlMtDVFts r29pUTqpsvaq+LCPh4mGYFfjGCTMUh/erff+38GJ+tOafiNlDKAhjTJBJhyR+CK/6VRE 2wY3ykAqFHDP4a4vy+J4yv/6y5jZ90pvrFXhbG174huRhEksTZvFYv/Bk92cwYlacfSC 8ZZAOZHknIQaiTdNJi290L9wupuooqFidM+9mO2LQW4Rs+8LqgGUNodwTrWkDrpSkkJ5 JzAR7XHN3AGrMiHfJ8XYzO1p41tIkI9184p05ZrnTmhGUG42+VH4+hprGJRAbduoGdTY gZww== X-Gm-Message-State: AODbwcADQhYnNwpnDmFZMr/MsdOOOMxx1oFoP6KJFaRAeQQ9ok1Hpbzk BRy9AfGvPni60eMB7YM= X-Received: by 10.200.56.243 with SMTP id g48mr30865921qtc.79.1496264585195; Wed, 31 May 2017 14:03:05 -0700 (PDT) Received: from stb-bld-03.irv.broadcom.com ([192.19.255.250]) by smtp.gmail.com with ESMTPSA id r14sm9405259qkr.19.2017.05.31.14.03.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 31 May 2017 14:03:04 -0700 (PDT) From: Florian Fainelli To: lede-dev@lists.infradead.org Date: Wed, 31 May 2017 14:02:56 -0700 Message-Id: <20170531210256.2284-1-f.fainelli@gmail.com> X-Mailer: git-send-email 2.13.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170531_140326_715969_5583AA66 X-CRM114-Status: UNSURE ( 7.36 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.0 (--) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-2.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [2607:f8b0:400d:c0d:0:0:0:241 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (f.fainelli[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 Subject: [LEDE-DEV] [PATCH procd] upgraded: cmake: Find and include uloop.h X-BeenThere: lede-dev@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Florian Fainelli , mschiffer@universe-factory.net, john@phrozen.org MIME-Version: 1.0 Sender: "Lede-dev" Errors-To: lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Add a CMake FIND_PATH and INCLUDE_DIRECTORIES searching for libubox/uloop.h. Some external toolchains which do not include standard locations would fail to find the header otherwise. Signed-off-by: Florian Fainelli --- upgraded/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/upgraded/CMakeLists.txt b/upgraded/CMakeLists.txt index 00d8ce575c25..fd7d6bb58b78 100644 --- a/upgraded/CMakeLists.txt +++ b/upgraded/CMakeLists.txt @@ -1,6 +1,8 @@ cmake_minimum_required(VERSION 2.6) PROJECT(upgraded C) +FIND_PATH(ubox_include_dir libubox/uloop.h) +INCLUDE_DIRECTORIES(${ubox_include_dir}) ADD_DEFINITIONS(-Os -ggdb -Wall -Werror --std=gnu99 -Wmissing-declarations) ADD_EXECUTABLE(upgraded upgraded.c ../watchdog.c) TARGET_LINK_LIBRARIES(upgraded ubox)