From patchwork Thu Nov 1 15:36:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leif Lindholm X-Patchwork-Id: 149972 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp937756ljp; Thu, 1 Nov 2018 08:36:59 -0700 (PDT) X-Google-Smtp-Source: AJdET5d+bbbAQgpAIISWaTRivn7fy0rinOEwVRz5LJHJ9R+Mset/DAOIV2YiRzHUWWtbGfU6EMWr X-Received: by 2002:a63:1302:: with SMTP id i2-v6mr7747138pgl.380.1541086619233; Thu, 01 Nov 2018 08:36:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541086619; cv=none; d=google.com; s=arc-20160816; b=fxN5JF4kuEyYt1XlGLSaXs/9kao7LElz1wxqg0XEPbkhUZEqO7JB0qvImloims0zyB Ma0CRUNLxxYCcikB/IXnq7DSY+NxAj0Xh+Loqj9/horzMqo27YhSUgIe2u1PDfaDoMPf 0vCxbCdiAtjbvH2IUOl0kDrRq+qjsRoKPDWiKKTAbbPBg/qJl1QLM9hziV3l4OMvtDU/ waAF83L6EcpNBwt50+FA/oMl46pC4u9iS9P+RZ90Eg6PH7/TPd/F5AA1/A0D1ijz/nws OnJEomDPkyZzS6ITLpBZC45yUVD8+I0c3cqq9GBmFCyg7q0eNTgTC299NHZ1SnauG0/i flFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :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=1dtt6BdCc4afwTPY/tCdgbuNe+XAMA2vn6WtXILpfas=; b=AAhZ6MdFLbpnt1JpshfIoC7GW8jToSZqnifWDHbgTwduYhVKqxu0XGqY7ubo6W6WJg IZojSkGwQ404uhBJT4Z0QmEerYxoUr9lSEXo5dQXRKqFkdE2yCr8h/sKveV/zZ4g2Y7g o3kiFNaHEQYdtFRAyLdcoKjgf/l70nly6J3xZR2wy+z722H5/ydMVK+YYHwH1fyOpRP2 K5iTcb9LdB/gxb7xSabdjM+sDojH2pl0sAfUL9+UW3IgAJYSQ37yh9Mk9MsC4zI8Qzhh Dr+1UZ4OuzOO3YmIt5jHgbzemckYWnVxYI92I4zYUTKUPAr8uFciBDpajpe/9ZgtNUVk DkzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="Y5OVlp/Z"; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [198.145.21.10]) by mx.google.com with ESMTPS id 132si6091398pge.141.2018.11.01.08.36.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Nov 2018 08:36:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) client-ip=198.145.21.10; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="Y5OVlp/Z"; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 698C721189FAD; Thu, 1 Nov 2018 08:36:50 -0700 (PDT) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:4864:20::344; helo=mail-wm1-x344.google.com; envelope-from=leif.lindholm@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id E4C9621188C5B for ; Thu, 1 Nov 2018 08:36:48 -0700 (PDT) Received: by mail-wm1-x344.google.com with SMTP id b203-v6so1683334wme.5 for ; Thu, 01 Nov 2018 08:36:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=z7XlNjQA+3UguYdgmakTHs4M9+OBAH148FP8wKUG2yQ=; b=Y5OVlp/ZJuBqiMU8n4M0m7gJlKM+9UQzMdqDKPSrZpXM3o+ec3sEFP6WhG925nz5CY sYngtEq5PSjTnS2F+X+tmQD52xSUAtss8UPmeWGJ0mvvsurIldwdIVEcTWuEz5mypAP5 RT0x11A9ot07RRhDgmN9meoJmKayPJT6XhiKw= 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; bh=z7XlNjQA+3UguYdgmakTHs4M9+OBAH148FP8wKUG2yQ=; b=l8FGZaEvzAxBxB3Wqd9Sce1LI16tMgA/hv+beZwmuBZcYzJe3OViw+WE82RXIm9FhU d2v6ZRdhrrg66Rk1KGTI+ezxqni7fElx+Rb3xWzzFY9YC+JPpcC1P90Qclvjx7jlSYsY 7zoE7EsGJuWaSvsMyy/smUmVnUOJDVLNiiK42+KPkNXwXns2s3GvUAisUS6XksfBk/hU p0No77OgwBl1uye/73cqo+NIAAOmW6jmYwG7ldw87usSmiguNMDbzRlrGQ+yc47/7Qp6 tScQ/qGOfLCRElJcWANk8LAdFXpHzXL8GWc/7V4Kz4m4L+OvKAjkWljxqxHJhkVWJE+i Wghg== X-Gm-Message-State: AGRZ1gJTAXXbL//QEBsQ4uZ6VhsGt0BCvym8KSk1EmZi3fgow0uBO8w0 gMX6zhq8lxk33FV4/Wk7nlOghRjDZ7s= X-Received: by 2002:a1c:13d2:: with SMTP id 201-v6mr5760285wmt.58.1541086606885; Thu, 01 Nov 2018 08:36:46 -0700 (PDT) Received: from vanye.hemma.eciton.net (cpc92302-cmbg19-2-0-cust304.5-4.cable.virginm.net. [82.1.209.49]) by smtp.gmail.com with ESMTPSA id 195-v6sm29669157wmx.21.2018.11.01.08.36.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Nov 2018 08:36:45 -0700 (PDT) From: Leif Lindholm To: edk2-devel@lists.01.org Date: Thu, 1 Nov 2018 15:36:37 +0000 Message-Id: <20181101153642.11315-2-leif.lindholm@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20181101153642.11315-1-leif.lindholm@linaro.org> References: <20181101153642.11315-1-leif.lindholm@linaro.org> Subject: [edk2] [PATCH 1/6] AppPkg: fix webserver build for !Ia32/X64 X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jaben Carsey , Daryl McDaniel MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" The WebServer application is really quite Ia32/X64 specific, but fundamentally it builds for other architectures as long as the architecture-specific #include header file is filtered out. So add an architecture-based filter on that to enable AppPkg.dsc to build for AARCH64/ARM (both listed in SUPPORTED_ARCHITECTURES). Cc: Daryl McDaniel Cc: Jaben Carsey Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Leif Lindholm --- Note: there is definitely a case here for just disabling this component for !Ia32/X64, but the _interesting_ bits of this application are completely architecture independent, so my preference would be to do this for now, and worry about remaining issues (like MTRR dump) at some point in the future. AppPkg/Applications/Sockets/WebServer/WebServer.h | 2 ++ 1 file changed, 2 insertions(+) -- 2.11.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel diff --git a/AppPkg/Applications/Sockets/WebServer/WebServer.h b/AppPkg/Applications/Sockets/WebServer/WebServer.h index 21b07b63df..610abdcf9e 100644 --- a/AppPkg/Applications/Sockets/WebServer/WebServer.h +++ b/AppPkg/Applications/Sockets/WebServer/WebServer.h @@ -20,7 +20,9 @@ #include +#if defined(__x86_64__) || defined(__i386__) #include +#endif #include #include #include