From patchwork Mon Jul 11 19:07:08 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 647037 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2001:1868:205::9]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3rpF6r2rfTz9sCg for ; Tue, 12 Jul 2016 05:10:44 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=X2iCZiqR; dkim-atps=neutral Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bMgYI-0004Vo-V2; Mon, 11 Jul 2016 19:07:34 +0000 Received: from mail-pf0-x244.google.com ([2607:f8b0:400e:c00::244]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bMgYG-0004Tv-Gc for lede-dev@lists.infradead.org; Mon, 11 Jul 2016 19:07:32 +0000 Received: by mail-pf0-x244.google.com with SMTP id i123so13816487pfg.3 for ; Mon, 11 Jul 2016 12:07:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=9o1a5BdRHULIRdEWieVXUjXDasmVwKLYi1eW2RjhrB8=; b=X2iCZiqR6ey2I9EZ+Nc50osFWxsxK7W+m62iq4/G2SFCeiwIgyY8hN5A9Otu2McMZm c5Kl8ehRUSJT0PptvmJd/2zi8IFl/xe130cu4U95tTIuhJ72FDUkJAIt13w1CgEKbMNg +rigYStCtY+2PAVc0LvXa/ZbXLHYtZrdJInCyGXnHnk0LSgvY/tXXq0mw54hPuwX5oaZ /PxNX1ODLGr0h0JWCARtyjVA+/dNLvU/1QiA+fPMFszTg2Uk80djoutQqm5voQw+Dxnt RFDaJxgGsFY0daUQom1RFj1aQlat9VlRoqHH62TZBZ1LUriFr7jBw+E0VlKihopDDoTU +N2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=9o1a5BdRHULIRdEWieVXUjXDasmVwKLYi1eW2RjhrB8=; b=QVeNr0/FO7/RzHIEtGvSpZOBQNJsBaZM7yOqcDAVHWUZ9x6Mu9y80GyHrzpQOClQ/y 44DCVO9LoZUfmhzMxJqlTuuaUSN2EDr5bEFR0PZ/p3msN0uHVIIDk4k88FHWD9yBDBoH nfoDJgPyFbalyJk4VCWyktHF3YeU/DTifR3UPoUBs3iwv93sI3k8erTdLP2KXoM2WNXC +lJv2Nie8tbhEJYIYT/zkDjfJI68d4ZvK0w3DiGXCn2HRnthFoEqcZXPSFVl2Ft2jEAG ru1cUUfixFh7YsLEDhZUHwBdxPwiDUpo2PiplM/+ooxop/ijC4V33dSWO1XFBBd64ETz 5FGw== X-Gm-Message-State: ALyK8tJnd1thcX4vGVNETp4ePKnyBDc85C9pv3YYStlZKtTAP+fDn+ePzlH3ZF+QPbocfQ== X-Received: by 10.98.9.141 with SMTP id 13mr37906315pfj.130.1468264031583; Mon, 11 Jul 2016 12:07:11 -0700 (PDT) Received: from fainelli-desktop.broadcom.com (5520-maca-inet1-outside.broadcom.com. [216.31.211.11]) by smtp.gmail.com with ESMTPSA id s3sm6202129pfb.87.2016.07.11.12.07.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 11 Jul 2016 12:07:10 -0700 (PDT) From: Florian Fainelli To: lede-dev@lists.infradead.org Date: Mon, 11 Jul 2016 12:07:08 -0700 Message-Id: <1468264028-1973-1-git-send-email-f.fainelli@gmail.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160711_120732_586373_FB7FE659 X-CRM114-Status: UNSURE ( 6.78 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2607:f8b0:400e:c00:0:0:0:244 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 Message has at least one valid DKIM or DK signature -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 Subject: [LEDE-DEV] [PATCH firewall3] cmake: Find uci.h X-BeenThere: lede-dev@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Florian Fainelli , john@phrozen.org, nbd@nbd.name 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 uci.h. Some external toolchains which do not include standard locations would fail to find the header otherwise. Signed-off-by: Florian Fainelli --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 22e890dff9c6..00d14449d151 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,6 +17,9 @@ ELSE() ADD_DEFINITIONS(-DDISABLE_IPV6) ENDIF() +FIND_PATH(uci_include_dir uci.h) +INCLUDE_DIRECTORIES(${uci_include_dir}) + ADD_EXECUTABLE(firewall3 main.c options.c defaults.c zones.c forwards.c rules.c redirects.c snats.c utils.c ubus.c ipsets.c includes.c iptables.c) TARGET_LINK_LIBRARIES(firewall3 uci ubox ubus xtables m dl ${iptc_libs} ${ext_libs})