From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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-Google-Smtp-Source: AJdET5fPSm5hzdXUWtHtLXVutCcXSxn3ZO4qcZ1h8qeVWGeE2CnGmcC/ni6bkCR+UClWwX2+rFIpYw== 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 Cc: Daryl McDaniel , Jaben Carsey 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: [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: , X-List-Received-Date: Thu, 01 Nov 2018 15:36:49 -0000 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(+) 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 -- 2.11.0