forked from openwrt/openwrt
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #177 from qosmio/main-nss
Main nss 29/11
- Loading branch information
Showing
148 changed files
with
9,805 additions
and
1,015 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
LINUX_VERSION-6.6 = .61 | ||
LINUX_KERNEL_HASH-6.6.61 = 418fc24df9190f1c3ed9906dc3b7651c2a2eae5c1cb9ab4a6348e20faf047c0b | ||
LINUX_VERSION-6.6 = .63 | ||
LINUX_KERNEL_HASH-6.6.63 = d1054ab4803413efe2850f50f1a84349c091631ec50a1cf9e891d1b1f9061835 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
include $(INCLUDE_DIR)/prereq.mk | ||
|
||
PKG_NAME ?= optee-os | ||
|
||
ifndef PKG_SOURCE_PROTO | ||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz | ||
PKG_SOURCE_URL_FILE:=$(PKG_VERSION).tar.gz | ||
PKG_SOURCE_URL = https://github.com/OP-TEE/optee_os/archive/refs/tags/ | ||
TAR_OPTIONS+= --transform 's/optee_os/$(PKG_NAME)/' | ||
endif | ||
|
||
PKG_BUILD_DIR = $(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION) | ||
|
||
PKG_TARGETS := bin | ||
PKG_FLAGS:=nonshared | ||
|
||
PKG_LICENSE:=BSD 2-Clause | ||
PKG_LICENSE_FILES:=LICENSE | ||
|
||
PKG_BUILD_PARALLEL ?= 1 | ||
|
||
$(eval $(call TestHostCommand,python3-cryptography, \ | ||
Please install the Python3 cryptography module, \ | ||
$(STAGING_DIR_HOST)/bin/python3 -c 'import cryptography')) | ||
|
||
$(eval $(call TestHostCommand,python3-pyelftools, \ | ||
Please install the Python3 pyelftools module, \ | ||
$(STAGING_DIR_HOST)/bin/python3 -c 'import elftools')) | ||
|
||
export GCC_HONOUR_COPTS=s | ||
|
||
define Package/optee-os/install/default | ||
$(CP) $(patsubst %,$(PKG_BUILD_DIR)/out/arm-plat-$(PLAT)/core/%,$(OPTEE_IMAGE)) $(1)/ | ||
endef | ||
|
||
Package/optee-os/install = $(Package/optee-os/install/default) | ||
|
||
define Optee-os/Init | ||
BUILD_TARGET:= | ||
BUILD_SUBTARGET:= | ||
BUILD_DEVICES:= | ||
NAME:= | ||
DEPENDS:= | ||
HIDDEN:= | ||
DEFAULT:= | ||
VARIANT:=$(1) | ||
PLAT:=$(1) | ||
PLAT_FLAVOR:= | ||
OPTEE_IMAGE:=tee-header_v2.bin tee-pager_v2.bin tee-pageable_v2.bin | ||
endef | ||
|
||
TARGET_DEP = TARGET_$(BUILD_TARGET)$(if $(BUILD_SUBTARGET),_$(BUILD_SUBTARGET)) | ||
|
||
define Build/Optee-os/Target | ||
$(eval $(call Optee-os/Init,$(1))) | ||
$(eval $(call Optee-os/Default,$(1))) | ||
$(eval $(call Optee-os/$(1),$(1))) | ||
|
||
define Package/optee-os-$(1) | ||
SECTION:=boot | ||
CATEGORY:=Boot Loaders | ||
TITLE:=OPTEE-OS for $(NAME) | ||
VARIANT:=$(VARIANT) | ||
DEPENDS:=@!IN_SDK $(DEPENDS) | ||
HIDDEN:=$(HIDDEN) | ||
ifneq ($(BUILD_TARGET),) | ||
DEPENDS += @$(TARGET_DEP) | ||
ifneq ($(BUILD_DEVICES),) | ||
DEFAULT := y if ($(TARGET_DEP)_Default \ | ||
$(patsubst %,|| $(TARGET_DEP)_DEVICE_%,$(BUILD_DEVICES)) \ | ||
$(patsubst %,|| $(patsubst TARGET_%,TARGET_DEVICE_%,$(TARGET_DEP))_DEVICE_%,$(BUILD_DEVICES))) | ||
endif | ||
endif | ||
$(if $(DEFAULT),DEFAULT:=$(DEFAULT)) | ||
URL:=https://optee.readthedocs.io | ||
endef | ||
|
||
define Package/optee-os-$(1)/install | ||
$$(Package/optee-os/install) | ||
endef | ||
endef | ||
|
||
define Build/Configure/Optee-os | ||
endef | ||
|
||
define Build/Compile/Optee-os | ||
+$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \ | ||
PATH=$(LINUX_DIR)/scripts/dtc/:$(PATH) \ | ||
CROSS_COMPILE=$(TARGET_CROSS) \ | ||
CROSS_COMPILE_core="$(TARGET_CROSS)" \ | ||
CROSS_COMPILE_ta_arm64="$(TARGET_CROSS)" \ | ||
CROSS_COMPILE_ta_arm32="$(TARGET_CROSS)" \ | ||
$(if $(CONFIG_ARCH_64BIT), CFG_ARM64_core=y CFG_USER_TA_TARGETS=ta_arm64, CFG_ARM32_core=y) \ | ||
PLATFORM="$(PLAT)" \ | ||
PLATFORM_FLAVOR="$(call qstrip,$(PLAT_FLAVOR))" \ | ||
$(OPTEE_MAKE_FLAGS) | ||
endef | ||
|
||
define BuildPackage/Optee-os/Defaults | ||
Build/Configure/Default = $$$$(Build/Configure/Optee-os) | ||
Build/Compile/Default = $$$$(Build/Compile/Optee-os) | ||
endef | ||
|
||
define BuildPackage/Optee-os | ||
$(eval $(call BuildPackage/Optee-os/Defaults)) | ||
$(foreach type,$(if $(DUMP),$(OPTEE_TARGETS),$(BUILD_VARIANT)), \ | ||
$(eval $(call Build/Optee-os/Target,$(type))) | ||
) | ||
$(eval $(call Build/DefaultTargets)) | ||
$(foreach type,$(if $(DUMP),$(OPTEE_TARGETS),$(BUILD_VARIANT)), \ | ||
$(call BuildPackage,optee-os-$(type)) | ||
) | ||
endef |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# | ||
# Copyright (C) 2024 Bootlin | ||
# | ||
# This is free software, licensed under the GNU General Public License v2. | ||
# See /LICENSE for more information. | ||
# | ||
|
||
include $(TOPDIR)/rules.mk | ||
|
||
PKG_VERSION:=2.10 | ||
PKG_RELEASE:=1 | ||
|
||
PKG_HASH:=88215a62291b9ba87da8e50b077741103cdc08fb6c9e1ebd34dfaace746d3201 | ||
PKG_MAINTAINER:=Thomas Richard <[email protected]> | ||
|
||
include $(INCLUDE_DIR)/kernel.mk | ||
include $(INCLUDE_DIR)/trusted-firmware-a.mk | ||
include $(INCLUDE_DIR)/package.mk | ||
|
||
define Trusted-Firmware-A/Default | ||
BUILD_TARGET:=stm32 | ||
BUILD_DEVICES:=$(1) | ||
DEPENDS:=+u-boot-$(1) +optee-os-$(1) | ||
endef | ||
|
||
define Trusted-Firmware-A/stm32mp1 | ||
BUILD_SUBTARGET:=stm32mp1 | ||
PLAT:=stm32mp1 | ||
MAKE_ARGS += BL32_EXTRA2=$(STAGING_DIR_IMAGE)/$(BUILD_VARIANT)-tee-pageable_v2.bin \ | ||
STM32MP_USB_PROGRAMMER=1 \ | ||
STM32MP1_OPTEE_IN_SYSRAM=1 \ | ||
ARM_ARCH_MAJOR=7 | ||
endef | ||
|
||
define Trusted-Firmware-A/stm32mp135f-dk | ||
$(call Trusted-Firmware-A/stm32mp1) | ||
NAME:=STM32MP135F-DK | ||
DTB_FILE_NAME=stm32mp135f-dk.dtb | ||
endef | ||
|
||
TFA_TARGETS := stm32mp135f-dk | ||
|
||
TFA_MAKE_FLAGS += \ | ||
ARCH=aarch32 AARCH32_SP=optee \ | ||
BL32=$(STAGING_DIR_IMAGE)/$(BUILD_VARIANT)-tee-header_v2.bin \ | ||
BL32_EXTRA1=$(STAGING_DIR_IMAGE)/$(BUILD_VARIANT)-tee-pager_v2.bin \ | ||
BL33=$(STAGING_DIR_IMAGE)/$(BUILD_VARIANT)-u-boot.bin \ | ||
BL33_CFG=$(STAGING_DIR_IMAGE)/$(BUILD_VARIANT)-u-boot.dtb \ | ||
DTB_FILE_NAME=$(DTB_FILE_NAME) \ | ||
STM32MP_SDMMC=1 \ | ||
TARGET_BOARD="" \ | ||
$(MAKE_ARGS) \ | ||
all fip | ||
|
||
define Package/trusted-firmware-a/install | ||
$(INSTALL_DIR) $(STAGING_DIR_IMAGE) | ||
$(CP) $(PKG_BUILD_DIR)/build/$(PLAT)/release/tf-a-$(BUILD_VARIANT).stm32 \ | ||
$(STAGING_DIR_IMAGE)/tf-a-$(BUILD_VARIANT).stm32 | ||
$(CP) $(PKG_BUILD_DIR)/build/$(PLAT)/release/fip.bin \ | ||
$(STAGING_DIR_IMAGE)/fip-$(BUILD_VARIANT).bin | ||
endef | ||
|
||
$(eval $(call BuildPackage/Trusted-Firmware-A)) |
Oops, something went wrong.