From patchwork Wed May 19 07:40:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sumit Garg X-Patchwork-Id: 442374 Delivered-To: patches@linaro.org Received: by 2002:a02:7a1b:0:0:0:0:0 with SMTP id a27csp1065285jac; Wed, 19 May 2021 00:41:08 -0700 (PDT) X-Received: by 2002:a17:903:1c3:b029:f4:9624:2c69 with SMTP id e3-20020a17090301c3b02900f496242c69mr2027105plh.51.1621410068389; Wed, 19 May 2021 00:41:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621410068; cv=none; d=google.com; s=arc-20160816; b=hY6gwea2l/j2EbKmx3HMmD76Tly9YeD479AF//RE4HuQ97N1rVgDxWKrzuQRLjYrZ/ H9gkQhUxn7O8HqWY+rh4CJW4qbemyst9Scmm962UuVMqEJjl+GRuQ0RUOkWJVhrOPhUr 4ZRp161rsvUxfqUtyYnDXUv/x/v4/Qto5OcBb9yxRV68Bh4BGmE4Rzu2YRvlB5hpRt/A mrckVNt317vlX0USvGmKsdbZjaxDDWJEv7MWQ5KFaguC9IkYSgCKolswksR13A77hmjE fm4lxyYn03zL14cTjD43d5cs4tztOM67CA1Llc0xLURWSB2Ji86IMuP4cl2f09e52EOL Y6bA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=zo0JOzDGs8pDpy4j4dUN9fl/CSXl6GtYMjYzY9Wdeus=; b=O962PNth1Cd4ut4rlLB3jum3/WB3ROr6jdldEUPywg0zihx5BwrwzxgeQV7R5e8tTI xblykWR/SYs3lPt/MHgwbNSmTtLRl4bijtuD1yG1QEiYz7SPvuTJi0KthTcr29zKqBlP xBHrPEw5ZVygFYn8Dr3KbqLmFOT1+rTf7pblOqjrPYCT6sgGXrVI7TSg2yoo5BR4i2Bg GKB4BPWDdKF8Mff1Q4u5Wo7HBwoUzM6fqmiY/hl6y9+tAbgxA8eFOqBWOE5uOMuvI0JU HZig0MyPE09JGW+Y2wW/w+mZxU5Z448/qwzw1Hv86tAkAZulFfbxjg4l9934qOwU2ey1 KDRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dO6Od1FU; spf=pass (google.com: domain of sumit.garg@linaro.org designates 209.85.220.41 as permitted sender) smtp.mailfrom=sumit.garg@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id f91sor2960913pjd.42.2021.05.19.00.41.08 for (Google Transport Security); Wed, 19 May 2021 00:41:08 -0700 (PDT) Received-SPF: pass (google.com: domain of sumit.garg@linaro.org designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dO6Od1FU; spf=pass (google.com: domain of sumit.garg@linaro.org designates 209.85.220.41 as permitted sender) smtp.mailfrom=sumit.garg@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=zo0JOzDGs8pDpy4j4dUN9fl/CSXl6GtYMjYzY9Wdeus=; b=dO6Od1FUgfwvw3jEwrwXmlpo+STwqfkkedQodgAiAsyF935Cw+yOtjdBopnpOE1CNF LcfVxNVLsL/xsk71KTBuHkFvH+7oF6CizP+OFmbhQKkyS+f2cxUcvFDCQpbz6BJ2XN3r 9qgTDfzj188ZgolBaSizdZrfrr3xlZpPvAWKoolbUQblDht4Xr/1o+rCzPq7eSD4xyIN u+lNcUWM0t69ggwLWGn580FPALR0m09fQWJAVP2rtEAkTIVlqhy2Qm3aREgZSowPtFon If9jSjp2/sUj56p7/vEDAz5GUta3gvzKyYBGe3Qsu+Cs+wXVqZUduhTPAx+OYMU0+E6+ aq9g== 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:mime-version :content-transfer-encoding; bh=zo0JOzDGs8pDpy4j4dUN9fl/CSXl6GtYMjYzY9Wdeus=; b=LjAw4Z5js6caSHBOfmOmU8TVw6HiMXDyy6+E5ushb37Lfk06uHkCmBcDQgaPZ+yD1J 1Alqikf0ibRGEF74RuMd+VxAB/mK7xXvaMhZhwrwrAg/kCMT2JbXr56tXH26xw/DbDDo EGuGQq986VJvyNiN/GpE2mL7+3BrqD1y+YNH6DgcF6CCvxiu51xPGieDUIRTVjgHpQLy wUOTWuDRyMeYWFhK1USnx1rDVeLUDiAuDegGGJwCvjX+EX5zdQYtdF4Vi/RubQNKxJ3x LlgX7mfObg7ssYpvh5meHrCvv0RSm9jZ2+AMkPsZUf77ziUCrrOnVTxoQs2vIInk3xAW 22WA== X-Gm-Message-State: AOAM5301+3/N/f9yb7v5v9oGewUMPlEsyOTDvdbO/7QrA55NrZQxdTvX N0UTH+NedQLj62VRM0ZMuw7aAvat X-Google-Smtp-Source: ABdhPJwkfEQlQ++Q/yRgBprMp0GhNVdJ+PHYsv5hK9CFFYskBtlDSlKftBpERUxx/U5S4uxAhZsFuQ== X-Received: by 2002:a17:90a:8c0c:: with SMTP id a12mr1121752pjo.85.1621410068019; Wed, 19 May 2021 00:41:08 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([110.226.53.223]) by smtp.gmail.com with ESMTPSA id v18sm14382914pff.90.2021.05.19.00.41.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 May 2021 00:41:07 -0700 (PDT) From: Sumit Garg To: meta-arm@lists.yoctoproject.org Cc: patches@linaro.org, Sumit Garg Subject: [PATCH] arm/qemuarm64-secureboot: Enable kernel TEE drivers Date: Wed, 19 May 2021 13:10:44 +0530 Message-Id: <20210519074044.3376104-1-sumit.garg@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Add a config fragment to enable kernel TEE drivers. Signed-off-by: Sumit Garg --- meta-arm/recipes-kernel/linux/linux-yocto/tee.cfg | 10 ++++++++++ .../recipes-kernel/linux/linux-yocto_5.10.bbappend | 5 ++++- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 meta-arm/recipes-kernel/linux/linux-yocto/tee.cfg -- 2.25.1 diff --git a/meta-arm/recipes-kernel/linux/linux-yocto/tee.cfg b/meta-arm/recipes-kernel/linux/linux-yocto/tee.cfg new file mode 100644 index 0000000..3de03bf --- /dev/null +++ b/meta-arm/recipes-kernel/linux/linux-yocto/tee.cfg @@ -0,0 +1,10 @@ +CONFIG_HW_RANDOM_OPTEE=y +CONFIG_TEE=y + +# +# TEE drivers +# +CONFIG_OPTEE=y +CONFIG_OPTEE_SHM_NUM_PRIV_PAGES=1 +# end of TEE drivers + diff --git a/meta-arm/recipes-kernel/linux/linux-yocto_5.10.bbappend b/meta-arm/recipes-kernel/linux/linux-yocto_5.10.bbappend index b9995e0..3c3d36a 100644 --- a/meta-arm/recipes-kernel/linux/linux-yocto_5.10.bbappend +++ b/meta-arm/recipes-kernel/linux/linux-yocto_5.10.bbappend @@ -14,4 +14,7 @@ SRC_URI_append_qemuarm64-sbsa = " \ " FILESEXTRAPATHS_prepend_qemuarm64-secureboot = "${ARMFILESPATHS}" -SRC_URI_append_qemuarm64-secureboot = " file://zone_dma_revert.patch" +SRC_URI_append_qemuarm64-secureboot = " \ + file://zone_dma_revert.patch \ + file://tee.cfg \ + "