-
Notifications
You must be signed in to change notification settings - Fork 120
/
optee-os_%.bbappend
42 lines (30 loc) · 1.14 KB
/
optee-os_%.bbappend
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
OPTEEMACHINE = "sam"
DEPENDS:append = " dtc-native"
SRC_URI = "git://github.com/linux4sam/optee_os-at91.git;branch=master;protocol=https"
SRCREV = "9ca99a29b95e7b07c4849d9578dd633a4aed00fb"
COMPATIBLE_MACHINE = "(sama5d27-som1-ek-optee-sd)"
OPTEE_SUFFIX ?= "bin"
OPTEE_IMAGE ?= "tee-${MACHINE}-${PV}-${PR}.${OPTEE_SUFFIX}"
OPTEE_BINARY ?= "tee.${OPTEE_SUFFIX}"
OPTEE_SYMLINK ?= "tee-${MACHINE}.${OPTEE_SUFFIX}"
do_install:append() {
#install core in boot
install -d ${D}/boot
install -m 644 ${B}/core/*.bin ${B}/core/tee.elf ${D}/boot/
install ${B}/core/${OPTEE_BINARY} ${D}/boot/${OPTEE_IMAGE}
ln -sf ${OPTEE_IMAGE} ${D}/boot/${OPTEE_BINARY}
}
PACKAGE_ARCH = "${MACHINE_ARCH}"
do_deploy:append() {
install -d ${DEPLOYDIR}
install -m 644 ${D}/boot/* ${DEPLOYDIR}/
install ${B}/core/${OPTEE_BINARY} ${DEPLOYDIR}/${OPTEE_IMAGE}
cd ${DEPLOYDIR}
rm -f ${OPTEE_BINARY} ${OPTEE_SYMLINK}
ln -sf ${OPTEE_IMAGE} ${OPTEE_SYMLINK}
ln -sf ${OPTEE_IMAGE} ${OPTEE_BINARY}
}
SYSROOT_DIRS += "/boot/"
FILES:${PN} += "/boot/"
FILESPATH =. "${FILE_DIRNAME}/optee-os/${MACHINE}:"