From patchwork Wed Aug 2 14:03:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Nie X-Patchwork-Id: 109222 Delivered-To: patch@linaro.org Received: by 10.140.101.6 with SMTP id t6csp2820945qge; Wed, 2 Aug 2017 07:04:13 -0700 (PDT) X-Received: by 10.99.176.71 with SMTP id z7mr22167592pgo.78.1501682652691; Wed, 02 Aug 2017 07:04:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1501682652; cv=none; d=google.com; s=arc-20160816; b=PIyaOIOkrA3qo/RfvFbrIB7oEpmGw88WTX9nthoETQyfIXOLBk4fpfL03FfcUzmx+y gEPB233HT6MjlMtSC3thvzWsIBNAuAGWmOIA1ZCm8yWLTwdAZP92BWwMAsn5VdxZpq68 LfizW6KkEda/7KJL8py1hJmLymzglj9Z10i8bX8j3xzxXGjbEN5ZDL7RjmINnY5xErpj zUCZMJQ7JFeoYOhzdktDMPCrArxGRSw6kJsjCGLo1Dswc5vUf2Yxsd3luyh55nQUVLOF Oz7jq9vxD/lVc9FN/q8flm0z4XdpBax4k0eS0eDmQwI1zdAZ8n1bi7WB3F0ZZ8k/cXmD Kysg== 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:arc-authentication-results; bh=9+QVhKSlYTiOwPqHWPpzdnFiaCx9S8f9A0Cea5UR6Eg=; b=esNAggYDNSReubi7sMMyjfZXPGnpOqmw42ys5Fw5zAp1o68MqJu0xy4k/rV/gaVu/O 1wHrh0wq3rBxa4idZQG2pKtQGKD4M+yM/u6kfyXdTjL889eSQ+YHpq4PA4QUP6gKPZ5x tXuA8zBVd7rpE3UAcxX3Hud71aA5VxJ6v/47CtO69Oguu8AP8hNaObAP/UlyYhRb5LxM hV11DDmYulpU8o//l6dN8g+OLP1ZLJfTF1L4OUyQGio6oO0l9yRCsW9yXk92rm43e1HA XCFfHYDZSoftpu+kr0npeRGH59aUCvB7guNzXTb6lJQ+UxF9fDueABR9pIJpZ5x76Y8Y Ukjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.b=gXjFMNiK; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 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. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id v38si21356757plg.690.2017.08.02.07.04.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 Aug 2017 07:04:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) client-ip=2001:19d0:306:5::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.b=gXjFMNiK; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 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 A909D21DF9684; Wed, 2 Aug 2017 07:02:01 -0700 (PDT) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received: from mail-pg0-x236.google.com (mail-pg0-x236.google.com [IPv6:2607:f8b0:400e:c05::236]) (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 3151921DF9662 for ; Wed, 2 Aug 2017 07:02:01 -0700 (PDT) Received: by mail-pg0-x236.google.com with SMTP id y129so21607358pgy.4 for ; Wed, 02 Aug 2017 07:04:11 -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=GzF6ogk5W3DtQwa5yVHSyJZvqA3X4cUIj8ERVNWG6p8=; b=gXjFMNiKXWNtCEpM5rk+gwfYhpp71BfldqWmh0zYjhx00E98H4Ym9o+BCV2TFgxlwQ tqXDjmGL5l6HEG+y8yXSjFMBlUiLcxXcD97xmn/w4a0bXq7y2FYrBjrhyJdpibTaDXVj Vw/U58c4ADlm9VAotg4xAyoYotft2I0rj/lD0= 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=GzF6ogk5W3DtQwa5yVHSyJZvqA3X4cUIj8ERVNWG6p8=; b=A7i6KbCnPuvEdqxzZ4qjWBsnsqQIaFx8ADJk5dcTQiyIr2zRQ5DEr5oPss4Wd3gEG4 t8kbvG+UaNh3GmsmRwLg3WM7JIOPlTELxidquvBGxgwGy7/At11wKHyMZMNi1uck1uFT FwUmEZMtWgWJcx/hWisGRt4/hqe6f8Jl6D6NNOz9PFGrK8fVijZ4BV58Aih7Jhibbd9g M3jINNLLRX96p1xzSNeox02xhVz6CeM/JzeJnDaBWCFFycCbbzVYyP4CNV7O6x6bglcA l95LTFWKmstJ4DlfZGdZyeLmGwHfS164b6TPN+C+mqQS/GB5XmOBeKt2Y+wFqrlef8m+ ik5A== X-Gm-Message-State: AIVw113MjjTkuFviY52oSFwq803pHUljVIVqhq22Qc7vaDmZPREH6GIs Ywq1Eca6Rd25xbEC X-Received: by 10.84.211.151 with SMTP id c23mr24820382pli.372.1501682651513; Wed, 02 Aug 2017 07:04:11 -0700 (PDT) Received: from localhost.localdomain ([113.53.228.63]) by smtp.gmail.com with ESMTPSA id r25sm10554851pgu.7.2017.08.02.07.04.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 02 Aug 2017 07:04:11 -0700 (PDT) From: Jun Nie To: haojian.zhuang@linaro.org, leif.lindholm@linaro.org, ard.biesheuvel@linaro.org, edk2-devel@lists.01.org, linaro-uefi@lists.linaro.org Date: Wed, 2 Aug 2017 22:03:42 +0800 Message-Id: <1501682622-8223-3-git-send-email-jun.nie@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1501682622-8223-1-git-send-email-jun.nie@linaro.org> References: <1501682622-8223-1-git-send-email-jun.nie@linaro.org> Subject: [edk2] [PATCH v5 3/3] EmbeddedPkg: add Android boot build entry X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: jason.liu@linaro.org, shawn.guo@linaro.org MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" The device path specifies where to load android boot image. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jun Nie --- EmbeddedPkg/EmbeddedPkg.dec | 2 ++ EmbeddedPkg/EmbeddedPkg.dsc | 2 ++ 2 files changed, 4 insertions(+) -- 1.9.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel diff --git a/EmbeddedPkg/EmbeddedPkg.dec b/EmbeddedPkg/EmbeddedPkg.dec index 4cd528a..8ad2a84 100644 --- a/EmbeddedPkg/EmbeddedPkg.dec +++ b/EmbeddedPkg/EmbeddedPkg.dec @@ -80,6 +80,7 @@ gAndroidFastbootPlatformProtocolGuid = { 0x524685a0, 0x89a0, 0x11e3, {0x9d, 0x4d, 0xbf, 0xa9, 0xf6, 0xa4, 0x03, 0x08}} gUsbDeviceProtocolGuid = { 0x021bd2ca, 0x51d2, 0x11e3, {0x8e, 0x56, 0xb7, 0x54, 0x17, 0xc7, 0x0b, 0x44 }} gPlatformGpioProtocolGuid = { 0x52ce9845, 0x5af4, 0x43e2, {0xba, 0xfd, 0x23, 0x08, 0x12, 0x54, 0x7a, 0xc2 }} + gAndroidBootImgProtocolGuid = { 0x9859bb19, 0x407c, 0x4f8b, {0xbc, 0xe1, 0xf8, 0xda, 0x65, 0x65, 0xf4, 0xa5 }} [PcdsFeatureFlag.common] gEmbeddedTokenSpaceGuid.PcdEmbeddedMacBoot|FALSE|BOOLEAN|0x00000001 @@ -181,6 +182,7 @@ gEmbeddedTokenSpaceGuid.PcdAndroidFastbootUsbProductId|0xbeef|UINT32|0x00000023 gEmbeddedTokenSpaceGuid.PcdAndroidFastbootTcpPort|1234|UINT32|0x00000024 + gEmbeddedTokenSpaceGuid.PcdAndroidBootDevicePath|L""|VOID*|0x00000057 [PcdsFixedAtBuild.ARM] gEmbeddedTokenSpaceGuid.PcdPrePiCpuMemorySize|32|UINT8|0x00000010 diff --git a/EmbeddedPkg/EmbeddedPkg.dsc b/EmbeddedPkg/EmbeddedPkg.dsc index 16b368e..4a34e34 100644 --- a/EmbeddedPkg/EmbeddedPkg.dsc +++ b/EmbeddedPkg/EmbeddedPkg.dsc @@ -52,6 +52,7 @@ DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf + AndroidBootImgLib|EmbeddedPkg/Library/AndroidBootImgLib/AndroidBootImgLib.inf BaseLib|MdePkg/Library/BaseLib/BaseLib.inf BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf @@ -272,6 +273,7 @@ TimerLib|MdePkg/Library/BaseTimerLibNullTemplate/BaseTimerLibNullTemplate.inf } + EmbeddedPkg/Application/AndroidBoot/AndroidBootApp.inf EmbeddedPkg/Application/AndroidFastboot/AndroidFastbootApp.inf { # It depends on BdsLib that depends on TimerLib